I’m trying to send price, name and id of each item in the order, plus an extra static value to a single js variable formatted in this way, items = eventID::price::name|eventID::price::name|eventID::…
Tag: woocommerce
WooCommerce cart subtotal: Display ‘free’ instead of ‘0,00’
i am searching for a solution to display ‘free’ instead of €0,00 in the WooCommerce Cart/Checkout. I know, there is a snippet for the Single Produkt itself, but is there a possibillity to change the …
Change specific payment gateway title in WooCommerce
I need to change the Woocommerce payment gateway names, not the ones hat are displayed on the frontend(this can easily be achieved in the settings) but the inernatl titles Woo is using. In class-wc-…
Get data from apply_filters(‘prefix_xml_feeds_productname_variant’) function in WooCommerce
I’m totally new to WordPress and WooCommerce, so apologies for the poor explanation. I have this code: And need to display $vars->ID in my function: So I got: How can I access $vars variable value in my callback function? Answer As you can see apply_filters( ‘prefix_xml_feeds_productname_variant’, $text, $product_item->ID, $vars->ID ); contains 3 parameters So you could use it like More
Disable free shipping for specific coupon codes in WooCommerce
I am trying to remove the free shipping option in Woocommerce when someone uses a specific coupon code. I found this question which is very relevant to my question. The answer bellow seems really …
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 …
Importing Custom Taxonomy Through CSV into WooCommerce
I have created two custom taxonomies using the CPT UI plugin named Designers (rug_designers) & Product Lines (product_line). I am working on importing products via a CSV into WooCommerce using the built-in WooCommerce importer tool (not the Product CSV Import Suite). I was able to follow this guide to register the Custom Columns in the import with automatic mapping, however,
Save product custom field value as custom order item meta in WooCommerce
I have problem with custom field in woocommerce (latest version). I need your help. My code function completed_order($order_id) { $order = wc_get_order( $order_id ); $customer_id = $order->…
How to display description on Woocommerce featured products?
I trying to add the the product description to all my related products. This is the code I have from content-single-product.php template file: <?php /** * Hook: …
Get a list of siblings term ids from current product category in WooCommerce
I want to retrieve a list of term Ids based on the current category ID. At the moment I’m using the following code: $product_cat_items = get_queried_object(); $product_cat_id = $product_cat_items-…