D
D
DMax9212018-11-21 18:14:36
WordPress
DMax921, 2018-11-21 18:14:36

Discounted price is not displayed in variable products, how can I fix it?

Hello, please tell me where I went wrong ... I
create a variable product, and in one variation I set the regular price, and in the "Discount price" field I already put the discount price.
But in the product card, the old price is displayed and not the new one.
And when the product is added to the cart, the price in the cart is new...
What did I do wrong, or is it supposed to be like this??

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Shatrov, 2019-06-08
@denydenyden

global $product;
$product->get_price_html()

Should help!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question