WooCommerce discount badge icon translation or side-text removal

This topic has 14 replies, 3 voices, and was last updated 4 months, 1 weeks ago ago by Jack Richardson

  • Avatar: nedim
    luzactual
    Participant
    November 19, 2024 at 12:12

    Hello, recently after the last XSTORE Core update the discount badges (ie for 20%) changed from “20%” to “UP TO 20%” .. How can we remove this text or translate it? I have walked all theme upside down and didn’t find the righte place to do it. More info: this only happens with products with variants… Thanks!

    13 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    November 19, 2024 at 12:59

    Hello,

    Thank you for reaching out to us.

    Could you please provide temporary wp-admin access?

    To grant WP-Admin access, please proceed to create a new user account with an administrator role through your WordPress Dashboard. Once the account is established, you may securely transmit the username and password to us via the Private Content section designated for this purpose.

    Best Regards,
    8Theme’s Team

    Avatar: nedim
    luzactual
    Participant
    November 19, 2024 at 13:38

    Hi! Thanks for the support. Find access data in private area.

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    November 19, 2024 at 13:56

    Hello,

    Please check how it works now.

    We’ve added a link to the Private Content area.

    Best Regards,
    8Theme’s Team

    Please contact administrator
    for this information.
    Avatar: nedim
    luzactual
    Participant
    November 19, 2024 at 17:14

    It’s OK now but only a thing left to ask: I’ve tried before to find the string UP TO and didn’t show up… is it a dynamic thing (string, code, placehoder) perhaps or there’s an UP TO translated to a blank space right now???

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    November 20, 2024 at 15:04

    Dear @luzactual,

    We hope this message finds you well.

    The string in question, “Up to %” has been present in the translations for quite some time and is available for translation or removal of the “Up to” prefix, as shown in the following screenshot: https://prnt.sc/zcABlHvf_bw_. This change has already been implemented on your website.

    The reason you may not have been able to locate this string recently is due to a lack of synchronization of your translations. This has resulted in older versions of the strings being retained, similar to cached versions.

    Thank you for your attention to this matter.

    Best regards,
    Jack Richardson
    8Theme Team

    Avatar: nedim
    luzactual
    Participant
    August 5, 2025 at 13:03

    Hello. Recently we had to restore a backup due to a failed Woocommerce upgrade and the site has came up again with this issue: same thing. I went to Woocommerce and Xstore translation in Loco Translate seeking for “up to %s” and found some already translated, did a sync in each language package, cache cleaning and no results. Can you guess where is the new old problem? Thanks!

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 5, 2025 at 13:56

    Hello @luzactual,

    We hope this message finds you well.

    Could you kindly provide us with the URL of the product in question and screenshots, video so that we may review it in detail? Additionally, please update the necessary information on your dashboard to allow us access to the translation settings.

    Best regards,
    The 8Theme Team

    Avatar: nedim
    luzactual
    Participant
    August 5, 2025 at 16:44

    Hello Jack, thanks. Here’s a link with a product and a discount tag with the string “up to” (“hasta” in spanish) we want to remove and in private the dashboard access.

    https://luzactual.com/tienda/iluminacion-tecnica/tira-led-10w-230vac-regulable-dim-ip65-rollo-20-metros/

    Please contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 6, 2025 at 07:46

    Hello @luzactual,

    We hope this message finds you well.

    We would like to inform you that the solution has been implemented using a custom CSS snippet. Kindly check and let us know if everything is working as expected.

    Best regards,
    The 8Theme Team

    Avatar: nedim
    luzactual
    Participant
    August 6, 2025 at 11:13

    Hi! Sorry bur I can’t see it on this URL

    https://luzactual.com/tienda/iluminacion-tecnica/tira-led-10w-230vac-regulable-dim-ip65-rollo-20-metros/

    I have emptied cache in WP and also emptied cache in browser and still showing “hasta” … last time it was solved through a translation by simply not translating the string and placing an empty space but this time I’m not able to get it through..

    This CSS you added … is in appearance / theme / xstore? or is it somewhere else?

    Thanks

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 6, 2025 at 11:25

    Hello @luzactual,

    We hope this message finds you well.

    Kindly review the following details:
    https://prnt.sc/IjUDEgQqLsNL
    https://prnt.sc/iA0mt2K7mHeJ

    Please note that we have implemented a temporary solution using custom CSS, as we currently do not have FTP access to your account. If you are able to provide FTP access, we kindly ask that you share the credentials via private content. With access, we will be able to explore a more permanent solution using PHP, without relying on CSS modifications.

    Thank you for your cooperation.

    Best regards,
    The 8Theme Team

    Avatar: nedim
    luzactual
    Participant
    August 6, 2025 at 11:57

    OK this works on Chrome as I see but may not work properly in other browsers (still showing HASTA in Firefox and perhaps others) besides there are some other places HASTA appears (check image) and could be fixed through Loco Translate. Is there definitely no other way to do this through translations? If you check this chat above: by 2024 it could be done but somehow I cant repeat it now. Thanks a lot!!!

    Files is visible for topic creator and
    support staff only.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 6, 2025 at 12:40

    Hello @luzactual
    Please, check now. We improved the CSS code:

    .product-type-variable .images.woocommerce-product-gallery .onsale.with-percentage, .product-type-grouped .images.woocommerce-product-gallery .onsale.with-percentage {
        text-indent: -7ex;
        word-spacing: 0.7ex;
        overflow: hidden;
    }
    
    .product-type-variable > .content-product .onsale.with-percentage,
    .product-type-grouped > .content-product .onsale.with-percentage {
        text-indent: -7.3ex;
        word-spacing: 0.7ex;
        overflow: hidden;
    }

    As we previously wrote in next reply (https://www.8theme.com/topic/woocommerce-discount-badge-icon-translation-or-side-text-removal/#post-452000), we implemented the solution using CSS code as we don’t have the FTP access.

    Please note that we have implemented a temporary solution using custom CSS, as we currently do not have FTP access to your account. If you are able to provide FTP access, we kindly ask that you share the credentials via private content. With access, we will be able to explore a more permanent solution using PHP, without relying on CSS modifications.

    Kind regards, Jack Richardson
    The 8theme’s team

  • Viewing 14 results - 1 through 14 (of 14 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.