H
H
Httdientee2021-12-23 13:58:32
WooCommerce
Httdientee, 2021-12-23 13:58:32

Can't get woocomerce variation prices?

$product->get_variation_price( 'min', true );
After inserting this code in the catalog, everything breaks and all products are not displayed, it stops at the first one (and then it will break), that is, it turns out that nothing is reproduced after this code.

But it is correct, I use it in the product card - and there I get the minimum price, what's the problem in general? There is something in the global $product directory, it is used to display some information, but get_variation_priceit doesn’t specifically work

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question