In Woocommerce, I have a report in the admin area that tallies up products sold.There are only 5 products sold on the site but there are 1 or 2 variations on some. The report works great but ignores the variations. I need to retrieve the attribute value from items ordered to display the data accurately. How do I do this?
Tag: product
Display lowest variation price and discounted percentage in WooCommerce
Based on this post : Displaying the lowest variation price of variable products And this topic : Display the discounted percentage near sale price in Single product pages for WC 3.0+ I’ve been trying to show everywhere on my website the lowest variation price with the associated discount %, for variable and non variable products. Here is the current code
Get the count of newly published product (today) in WooCommerce [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago. Improve this question I have a WooCommerce site where products are considered as trade/deal. Therefore, when someone take a trade (buy a product),
Display woocommerce product dimensions in separate lines
I found the way to display the dimensions in separate lines by copy product-attributes.php file to my child-theme and replace: has_dimensions(…
Replace WooCommerce attribute labels by a custom image for each
I am working on project and I need some group help. I am using woocommerce product system and on shop archive page product I am showing attribute-label: attribute-value (just like text). attribute-…
Set variations default attributes values for a variable product Programmatically
I’m building a site where WooCommerce Variable products (with Products Variations) are inserted programmatically. I have followed this tutorial successfully: Insert WooCommerce Products & Variations Programmatically I need just something that is missing: How to set variations default attributes values for a variable product? Is it possible? Answer 1). You will need to insert in your json data for each
Displaying full product description on product lightbox
Is there a WooCommerce add_action to display the full product description, this is the text found in the main text edit window (not the Product short description) After a quick google search I was …
Unset product tabs for specific product categories in woocommerce
I am using the code coming from this answer: Hiding tabs only for some products in WooCommerce single product pages Here is that code: This code works fine to unset or hide tabs from specific products. Instead I would like to unset or hide tabs from specific product categories. How can I do it for product categories? Answer As the
Change product prices via a hook in WooCommerce 3+
IN WooCommerce, I need to multiply all product prices by a number. So I have used the following (via a plugin): But, that doesn’t work for variation products. I have tried the following hooks with no luck: The only one that works half way is this one: But that just changed the overall price, not the selected variation price. See
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