Sale percentage showing incorrectly after update

This topic has 3 replies, 2 voices, and was last updated 5 years, 1 months ago ago by Olga Barlow

  • Avatar: Kristjan_Rebane
    Kristjan
    Participant
    November 17, 2019 at 20:20

    The sale percentage is calculated incorrectly after the update. What I can see is that sale-flash.php file was removed, if I add it back in, then on the shop page the calculation is correct.

    2 Answers
    Avatar: Kristjan_Rebane
    Kristjan
    Participant
    November 17, 2019 at 20:55

    woo.php
    $element_options[‘regular_price’] = (int)$product_object->get_regular_price();
    $element_options[‘sale_price’] = (int)$product_object->get_sale_price();

    I guess (int) should not be used here.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    November 18, 2019 at 13:50

    Hello,

    1) sale-flash.php file should be removed.
    2) Replace (int) by (float). Or if you provide FTP access to your site we’ll be able to fix it for you. Also, fix will be included in the next theme update.

    Regards

  • Viewing 3 results - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.