Skip to content
Advertisement

Tag: woocommerce

How to change woocommerce category id?

I want to change category id in woocommerce table. Example: change id=5 to id=20. I don’t want to delete my categories in my wordpress panel, just change that id from database. Answer why not just go to phpmyadmin and change it? This of course can cause conflicting issues if id=20 is already assigned and its not what you want

Display custom order meta data value in email notifications WooCommerce

Based on the following code Add a custom checkbox in WooCommerce checkout which value shows in admin edit order I tried to add my_field_name to order confirmation email. As I understand I have to use woocommerce_email_customer_details. So I came to this solution, unfortunately without the desired result. Answer You have some minor mistakes, via the if condition “$email->id == …”

Advertisement