This is a simple guide on how to add test products and orders dynamically to your WooCommerce shop. This functionality can be useful to test the limits of your website setup and of your server by allowing you to add 1000s of products and orders automatically.
If you are looking to add a product to the cart as soon as a specific page is loaded, we can do the following:
Clients are often looking to customise the checkout field on their WooCommerce shop. This can be done using the “woocommerce_checkout_fields” filter.
Imagine the scenario where we have 2 coupons, one (5off) that gives $5 discount to the total client order, as well as a coupon (10off) that gives $10 discount to the total client order. When the user inserts any of the coupons in, we want the $10 off coupon to apply only if the total …
Sometimes you might want to change the “add to cart” text of the buttons on your WooCommerce setup. This is very easy to do, and all you need is to copy-paste this snippet inside the functions.php file of your theme (or child theme)
If you are looking to remove the Add to Cart button in WooCommerce and replace it with a custom button then this short snippet is for you.
Trying to find the WooCommerce orders information in the database could be a daunting task for a newbie, but it’s actually easier than you might think.
Here you will find a complete list of WooCommerce specific hooks, organised by page and order.