In previous versions of Woocommerce, an email notification was sent automatically when an order was changed from pending status to cancelled status (In my case, this happens after an allotted time set in the inventory section of the admin). In WooCommerce 3.0.8 they have removed this automation and labelled as a fix: https://github.com/woocommerce/woocommerce/blob/master/CHANGELOG.txt And the pull request is here: https://github.com/woocommerce/woocommerce/pull/15170/files
Tag: woocommerce
Product category linked terms list related to current product in WooCommerce
I’ve found online a snippet of code that currently lists all categories on this WooCommerce website. How to I make it specific to show the category related to the product they are viewing? Here is the code that I’ve tweaked: Answer There is a more much simpler way: To display it as coma separated string (with a product category links
Update all variations prices of a variable product in Woocommerce
I need to get all variation id and update price in loop. Simple query and loop looks like: I think not working this: or this: Answer First in your code ‘ or ’ should be replaced by ‘. Also if used $post-ID should be replaced by $post->ID Depending on where and how you are using this code, you should try
Saving the value of a custom field phone number in WooCommerce My account > Account details
Trying to add a field for Woocommerce billing_phone to the my-account/edit-account/. It is present within the update address pages but when adding to the form-edit-account.php it does not update. Currently adding by following the same code as the other fields, such as first_name: Image of form with billing_phone being shown as a value: But upon updating with new number it
Custom conditional redirections after WooCommerce checkout payment
I use Lirox One theme on Wordpress with WooCommerce. I want make custom redirections after payment: If a customer buy product ID 333, It will be redirected to product 444 (for example). I have make some custom code but it doesn’t works, I get an error 500 (and debug is empty). What I am doing wrong and how can I
Get WooCommerce featured products with a custom shortcode
I tried to get array of featured products to use theme in my own plugin with jquery slider I have made this function and get attrs from class-wc-shortcodes.php but no results what I must add or change to get it works I use it now as shortcode in welcome page just for testing Answer There was some errors in your
Change WooCommerce variable product title based on variations
I’ve coded in a custom select box to a group of my products that changes the price based on the user’s selection. It works well, but now I need to change the product title too based on their selection. Basically if option 1 is chosen, the product name stays the same. But is option 2 is chosen, I need to
how to get particular product quantity from the cart page in the woocommerce
With this code: foreach ( WC()->cart->get_cart() as $cart_item ) { $quantity = $cart_item[‘quantity’]; echo $quantity; } I can get the quantity of all the products added in cart but I …
User Role Select on Woocommerce Registration Stopped Working
I use a drop down menu to select between two user roles on my Woocommerce registration form. After updating to Woocommerce 3.0.8 the drop down menu stopped working and I cannot figure out why. Below is the code I’ve been using. Any ideas? Answer I decided to scrap the old code and replaced it with the following code and it
WooCommerce 3.x – Hide category of product
I would like to know if anyone has a clue on how to hide a specific product category all around my website. Means on the “shop”, “related product” and the “search” of my Wordpress WooCommerce website. For the “shop” pages I have done (and it’s working) the following: For the search I tried the following but it doesn’t work: add_filter(‘pre_get_posts’,’exclude_category_from_search’);