Precentage Sale Bubble - by Randley - on WordPress WooCommerce support

This topic has 8 replies, 4 voices, and was last updated 7 years, 6 months ago ago by Max Mullins

  • Avatar: Crogers
    Randley
    Participant
    September 26, 2016 at 17:13

    Thank you for providing this. I enabled the show sale “percantage (which is misspelled in your admin btw) and only about half of the products show the percentage correctly.

    Please advise. Thanks.

    Please, contact administrator
    for this information.
    7 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    September 27, 2016 at 07:56

    Hello,

    Could you tell me what products come with incorrect percentage?

    Regards

    Avatar: Crogers
    Randley
    Participant
    September 27, 2016 at 18:46

    It’s on all the variable products and a couple single items products too. You can simply view them on the products page and see for yourself.

    Link in PM.

    Thank you!

    Please, contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    September 28, 2016 at 07:14

    Hello,

    Variable products don’t have percentage sale label because different variations could have different prices with different discounts and there is no only one percentage discount for it to display in label.
    Don’t see the problem with simple products. Could you provide me link to concrete products which have incorrect percentage?

    Regards

    Avatar: Crogers
    Randley
    Participant
    September 28, 2016 at 17:57

    Hi Olga,

    Yes, looks like it’s only the variable products. On September 21st, at 9:21 am, post #140272 here: http://screencast.com/t/ufD0MTbnmvf You told us that the variable products would be included and the best/highest percentage would populate in this case. I understand variable products have different prices with different discounts but it would be a serious disadvantage to anyone selling variable products not to (at least) show the best/lowest percentage. When people are shopping, it now looks like only my single product items are on sale but not my variable products (even though they’re the same discount).

    The link here has that php code to do this:
    http://www.wpstuffs.com/display-product-discountoffer-percentage-bubble-woocommerce

    I’m no PHP expert (by any means) but it seems like there’s not much difference to include this into the sale-flash.php file: http://screencast.com/t/popEYoWwZKl
    with some variation to this:
    http://screencast.com/t/veXg742VIda

    Please advise. Thank you.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    September 29, 2016 at 09:05

    Hello,

    We did not add the code for vaiable products because it slows down theme (to many quesries) when user has many variable products with different prices and different sales. In next udate we’ll just add the simple Sale lable for the variable products.
    If you want to show percantage discount for variable products you may use the code from the example that you provided in child theme.

    Regards

    Avatar: filiphdan
    filiphdan
    Participant
    May 20, 2017 at 16:14

    Ok so then thers no other way but to add the sale option, wich i did not want i prefered the % discount option…
    Is there anyway i can at least change the word SALE to something in my Language, like PROMO!

    Thanks

    Daniel

    Avatar: maxmullins
    Max Mullins
    Participant
    May 22, 2017 at 16:00

    Hello, @filiphdan

    Please open and edit/wpcontent/themes/xstore/framework/shortcodes/products.php:311. Than save it to the child theme saving path structure (child theme/framework/shortcodes/prouct.php)

    Regards,
    Max Mullins

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

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

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