Add, update or remove product custom field in WooCommerce

I use the following lines to save a Value to the database. I have one question regarding this code, when I delete input it still keeps it. The only way to delete that is to put (space) as input. $…

WooCommerce programmatically created product ignores prices sorting filter

I have following function to create new woocommerce product on the frontend. parse_str($_POST[‘form_data’], $form_data); $insertPost = array( //’ID’ => $post_id, ‘post_title’ => …

Sort by custom meta value doesn’t work in WooCommerce products sort by

I’m trying to add a sorting option for woocommerce products’s list. The goal is to sort products by a meta value with meta key called _rating. For now I generate this meta value with a function …

Product variation and parent variable product objects in WooCommerce hook

I developed a custom delivery time info for variations. But for some reason, I can’t get the parent product id of the variation to use it in my function. I tried the following – if I set $id straight …

WooCommerce – Turning the product tag cloud into a complex refine feature

QUESTION: How am I able to combine these two blocks of code so they work as one? I do not require any shortcode solutions, I prefer the function format used in the first block of code, however the …

How can I show individual stock quantities for variable products on the product page in WooCommerce

I am trying to show each variable products stock quantity on the single product page in WooCommerce. I have managed to show all the stock quantities for all the variations using the below code from …

Display shipping class name on WooCommerce single product pages

Need to display the product shipping class to product page! any ideas why this is not working? add_action(‘woocommerce_single_product_summary’, ‘display_product_shipping_class’, 15 ); function …

Display the WooCommerce product price (with discount) in a custom template

I need to display a product in a specific template. Here is the template code:

How to show all images in WooCommerce product description

I want to replace my product description by my description + all product images (include variation product images) in single product page. I can do that with Magento but now when change to Woocommerce …

Change order status for virtual, downloadable, free or backorder products in WooCommerce

i try to slightly modify with +1 check for plugin located here So , for all Virtual Downloadable Free (price=0,00) & on Backorder products I want Woocommerce to set order status ‘Processing’ the …