Price Not Calculated in Translated Language for WooCommerce Product Add-Ons

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

  • Avatar: mahdar
    MAHDAR
    Participant
    August 8, 2025 at 22:59

    Hello, I hope you’re doing well.

    I’ve encountered a strange problem.

    When I translate the strings of the WooCommerce Product Add-Ons plugin, the price of the item is not applied in the translated language.

    For example, the add-on price is $150 and the product price is $100. In the original language, there’s no issue and the price is applied correctly, but in the translated language, it doesn’t get applied.

    I checked this with the Storefront theme, and there was no problem — it worked fine in both languages.

    I recorded a video for better understanding, please take a look.

    I also created a test subdomain so we can solve the issue.

    Thank you.

    Please, contact administrator
    for this information.
    5 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 9, 2025 at 07:16

    Hello @MAHDAR,

    We kindly ask you to deactivate the AJAX “Add to Cart” option (https://prnt.sc/r2cDYpTdDRg1) and then review the result.

    Please note that in the Storefront theme, this feature is disabled globaly on the single product page to ensure that the add-on pricing functions correctly. Additionally, third-party plugins may conflict with this option, so it may be necessary to keep it disabled to maintain better compatibility.

    Thank you for your attention to this matter.

    Best regards,
    The 8Theme Team

    Avatar: mahdar
    MAHDAR
    Participant
    August 9, 2025 at 08:41

    Thanks for your guidance,

    Look, I disabled Ajax and it worked.

    But is it possible to have Ajax enabled as well?

    Because in the link below, which is the untranslated version, the add-on price is calculated even with Ajax enabled:

    https://test.fendo.ch/en/product/black-deer-leather-sneaker-shoe/

    But in the page below, which is the translated version, it no longer calculates it:

    https://test.fendo.ch/product/schwarzer-sneaker-aus-hirschleder/

    And this plugin I’ve installed is among the best:

    https://woocommerce.com/products/product-add-ons/

    What’s your opinion?

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 9, 2025 at 08:57

    Dear @MAHDAR,

    We hope this message finds you well.

    It appears that the filters of add-on are not being applied correctly on the translated version of the site. To resolve this issue, we recommend either disabling the Ajax “Add to Cart” functionality to ensure proper operation across multiple languages, or duplicating the content of the Cart page from the original (non-translated) version to the translated version. We have noticed that the content differs between these pages, which may be contributing to the issue.

    Thank you for your attention to this matter.

    Best regards,
    The 8Theme Team

    Avatar: mahdar
    MAHDAR
    Participant
    August 9, 2025 at 13:02

    Thank you for your guidance.
    I synchronized the original version with the translated one, but the issue still persists.
    I want the Ajax mode to be enabled for the “Add to Cart” function.
    Is there any solution for this?

    The strange thing is that as long as the WooCommerce Product Add-Ons text is not translated via WPML String Translation, everything works fine in both languages.
    But once it is translated, it stops working in the XStore theme when Ajax is enabled.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 11, 2025 at 08:07

    Hello @MAHDAR,

    We hope this message finds you well.

    We have thoroughly investigated the issue you reported. Unfortunately, we were unable to identify a definitive solution at this time. As a result, we recommend keeping the Ajax option disabled in the Theme Options to ensure proper functionality across both languages.

    Thank you for your understanding.

    Best regards,
    The 8Theme Team

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