-
This repository includes different functions and solutions that I develop for specific Woocommerce problems mentioned in stackoverflow posts.
-
or you can call it as "Remembrall repository".
-
Each folder includes:
- Link - of stackoverflow post
- Description - of the problem
- Code - tested and accepted solution for given problem
- All solutions (codes) goes to functions.php file of your theme or child theme (which is better).
Append product SKU's to product titles programmatically
Pass a parameter from URL to Woocommerce checkout page and get this value in the order details
Show only the max price (instead of min to max price range) of variable products
Reduce stock of parent product when a variable (child) product is sold
Custom button for Cart Page to add a particular product to cart, refreshing the cart and recalculating the totals
Retrieve the shop coupon codes applied to the orders and display them. A simple report for Coupons&Orders
Edit and customize the admin reports page using hook, run your code when this page is clicked or disallow others to see Woocommerce reports
Generate a Coupon that for users (customers) that registered recently (last 14 days) and have no orders for now. Coupon is generated once and it updates itself automatically.
Add a new column to or Edit an existing column on Woocommerce Admin Order List Page or Edit Preview Section of Orders
Check if the input number is a valid Order Number or not
Programmatically creating/updating product ids that a coupons can be used with - using update_post_meta(x, 'product_ids', x)
Add conditionally a custom checkout field to shipping section in WooCommerce
Verify & Check user email when a coupon is applied without using standart email restriction on coupon creation
Stop WooCommerce For Reducing Stock On Abandoned Admin New Order
Show stock on single product pages only for logged in users.
If Product Title Contains An Existing “Brand”, Add this Brand as attribute to product - Woocommerce.