Sale percentage do not work, they show 0%

Solved21 replies3 participantsUpdated by Tony Rodriguez

XStore documentationProduct badges in XStore: Sale, New, Hot and Out of stock
  • Avatar: ziga32
    ziga32
    Participant

    I’m writing a follow up on this topic as something is not working as expected.
    https://www.8theme.com/topic/im-not-seing-sale-percentage-on-sale-label/#post-468927

    I used wc dynamic pricing and discount plugin, from xstore bundles.

    I set a category to 20% discount.
    https://cleanshot.com/share/M3klKFW4

    but I get this
    https://cleanshot.com/share/ZRbspd77

    21 Answers

    Avatar: ziga32
    ziga32
    Participant

    Another thing. I cannot set discount for a specific category for multiple languages.

    example
    SI: Cvetlična korita
    DE: Pflanzkübel

    I can find german products
    https://cleanshot.com/share/gQnGgxkK

    but not german category
    https://cleanshot.com/share/sN01lqr5

    If I switch to German language I can find category, but then SI category is deleted

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    Hello, ziga32,

    We have noticed that there is no active theme on the website you provided. Please activate a theme there, or grant us access so that we can do it for you.

    Best regards,
    8Theme Team

    Files is visible for topic creator and
    support staff only.
    Avatar: ziga32
    ziga32
    Participant

    The website is flamula.si

    Avatar: ziga32
    ziga32
    Participant

    sending
    Access

    Please contact administrator
    for this information.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    The “Sale percentage” feature works exclusively with the price and discounted price fields set directly in the product itself. This is why the percentage is not displayed – the plugin applies the discount to the product category fields without modifying the product data.

    We intended to create a small customization to resolve this issue; however, we encountered a problem: the FTP access to your website is no longer functioning. The provided credentials lead to an empty directory on the server via both FTP and SFTP protocols.

    Best regards,
    8Theme Team

    Avatar: ziga32
    ziga32
    Participant

    what do you mean? did u use below info?

    I managed to log in ith filezilla just fine

    Please contact administrator
    for this information.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    Hello, ziga32,

    We are using FileZilla and are encountering the following error, regardless of the protocol we use:

    Connection timed out after 20 seconds of inactivity  
    Error: Could not connect to server  

    Best regards,
    8Theme Team

    Files is visible for topic creator and
    support staff only.
    Avatar: ziga32
    ziga32
    Participant

    Please send your ip

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    Hello, ziga32,
    We have added it to the private content.

    Best regards,
    The 8Theme Team

    Please contact administrator
    for this information.
    Avatar: ziga32
    ziga32
    Participant

    both IP’s added to ftp allow whitelist.

    I added some snippet that shows correct percentage on the badges.
    https://cleanshot.com/share/fCkTKpbJ

    you can safely remove it. Works ok but discounts from WooCommerce Dynamic Pricing & Discounts do not apply to other languages.

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    Thank you for providing access. We have kept your code and made some changes to the theme files.
    Please let us know if the sale label is now working as you need.

    Best regards,
    8Theme Team

    Avatar: ziga32
    ziga32
    Participant

    hmm, what exaxctly did you do?
    It works the same as before, with my code
    https://cleanshot.com/share/1K7PwQ12

    If I delete my code it shows 0% again
    https://cleanshot.com/share/TY2SsqQq

    And I still can’t set discount to a category on other languages.

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    Hello, ziga32,

    Please enable the general discount so that we can check how it is displayed on the store page.

    Best regards,
    The 8Theme Team

    Avatar: ziga32
    ziga32
    Participant

    discount is enabled here.
    https://flamula.si/cvetlicna-korita/

    It correctly shows -20% with my snippet enabled in functions.php.

    I’m unable to give 20% discount on the seme category on DE, ES, HR and IT languages.
    I can add german products
    https://cleanshot.com/share/76X8PNgh

    but can’t add german category
    https://cleanshot.com/share/bljCtZm1

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    In this case, you need to contact the plugin developers, as our theme does not affect the availability of options in third-party plugin selectors
    Best regards,
    8Theme Team

    Avatar: ziga32
    ziga32
    Participant

    that plugin does not even support wpml I see… will seek a different one

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    Hello, ziga32,

    Please let us know once you find a suitable plugin.
    Best regards,
    The 8Theme Team

    Avatar: ziga32
    ziga32
    Participant

    I created my own plugin, works good with badges and on all languages 🙂
    https://cleanshot.com/share/T5x6MqhG

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    That’s great! If you encounter any issues with its compatibility with our theme, please don’t hesitate to contact us.
    Best regards,
    The 8Theme Team

    Avatar: ziga32
    ziga32
    Participant

    Thanks for the support! My topic “Sale percentage do not work, they show 0%” has been successfully resolved.

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff

    Dear ziga32,

    We really appreciate your time and engagement within the WordPress & WooCommerce community

    Your feedback drives every improvement we make in XStore — helping us deliver a smoother and more flexible experience with each update.

    Your input makes a real difference.

    Topic closed.
    The 8Theme Team

The issue related to '‘Sale percentage do not work, they show 0%’' has been successfully resolved, and the topic is now closed for further responses