• Resolved asiye61

    (@asiye61)


    Can someone please help me?
    I want to add this class: “notranslate” to Woocommerce prices.
    I don’t know where to put this? I tried looking up on functions.php and I think everywhere else…
    But I can’t find it..

    The reason why I want to add this is because Google changed something and now doesn’t translate the prices in to Dutch!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author edo888

    (@edo888)

    Hi,

    It really depends on your theme, so I cannot provide specific information about it.

    I suggest you to talk to your theme developer. If they do not have WooCommerce specific pages, then you can try with WooCommerce support. Maybe they will add notranslate by default in their plugin for prices.

    Thanks! ??

    Thread Starter asiye61

    (@asiye61)

    Hi Edo888 thank you for your answer!
    I also askey Gtranslate chat and the lovely lady helped me 90%!

    With this code in at the bottom of Footer.php I can see the prices!

    <script type=”text/javascript”>
    jQuery(document).ready(function() {
    jQuery(“.woocommerce-Price-amount,.product-total”).addClass(‘notranslate’);
    });
    </script>

    But it doesn’t work on the check out page.
    They will try to code it for me!

    I hope I will get the answer soon so I can share the code here!

    Plugin Author edo888

    (@edo888)

    Hi,

    I’ll need to see your website to provide you a more specific CSS selector so you can add it as well. You can also continue communication with our support.

    Thanks! ??

    Thread Starter asiye61

    (@asiye61)

    Thank you Edo888!

    This is the website:
    https://asiyedesigns.nl/checkout/
    https://asiyedesigns.nl/

    And I designed the snippet a little bit different now:

    <script type=”text/javascript”>
    jQuery(document).ready(function() {
    jQuery(“.woocommerce-Price-amount”).addClass(‘notranslate’);
    });
    </script>

    <script type=”text/javascript”>
    jQuery(document).ready(function() {
    jQuery(“.woocommerce-page.woocommerce-checkout form”).addClass(‘notranslate’);
    });
    </script>

    Plugin Author edo888

    (@edo888)

    Hi,

    Your website is not publicly accessible, please continue communication with our live chat, we will need access to check it for you.

    Thanks! ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to add “notranslate” to prices?’ is closed to new replies.