Wrong price with WC functions
-
Hello,
With some existing bundled products I have changed the prices of the simple products inside the bundle. With $product->get_price() and $product->get_regular_price() it shows the old price of the bundle. And with $product->get_price_html() it shows the new price of the bundle. Also in the shopping cart it shows the correct new price. But some other functions in my site uses the get_price() and/or the get_regular_price() functions. And now those functions aren’t working propperly. See photo 1.
See also de settings of the products: bundle products options tab and general product options tab.
If I check the “disable auto calculate price” and save the product. And later remove the “disable auto calculate price” it shows the correct price with all functions. See photo 2. But this is not a solution for me, because I have over 100 bundled products.
Can you help me solve this problem?
The topic ‘Wrong price with WC functions’ is closed to new replies.