Answer the question
In order to leave comments, you need to log in
Can you give me some tips on Woocommerce?
Greetings.
I'm trying to figure out a few questions regarding woocommerce
1. there is a product and there are variations of it. for a product, the price is displayed in the range "from and to", but I need the price of the variation, which is the default, to be displayed. I need to display this both in the product card and in the category where product previews are shown. Maybe someone can suggest how to solve this?
2. The same thing with articles. The article for the product on the category page displays only the one that is set for the product, but not for the variation. And I need to display the article of the variation that is by default.
I really hope someone can advise. Well, or he will do it for a small $)
Answer the question
In order to leave comments, you need to log in
Make it real.
You need to dig into the wp-content\plugins\woocommerce\templates folder - you need to
find the files responsible for displaying the variable product (in the catalog and the card itself) -
through global variables (most likely global $product;) go through all the variations and pull out the necessary data .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question