Home Forums WoodMart support forum Free Gifts WPML Issue

Free Gifts WPML Issue

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #688308

    nicholas-3663
    Participant

    Hello,

    I’m having a similar issue to this thread: https://xtemos.com/forums/topic/free-gift-is-not-adding-to-the-list/
    When this thread was posted I had the issue again but it was fixed using your patch. We disabled gifts after a while and now after trying to enable them again it doesn’t work.

    The website is currently running on the latest version of woodmart and wordpress. I can add the free gifts to cart in the default language (English) without any issues. If I switch to the secondary language, I can see the free gifts translated correctly and when I click “Add to cart” I get a notification that the gift has been added to my cart but it does not show up.

    The only way to get free gifts to work is if I enable translation for Free Gifts, create a translated version of the gift rule but then I see each gift item twice.

    If I disable translation for Free Gifts, and add the secondary language product names, it also works but again I see double products.

    Should translation be enabled by default for Free Gifts or not?

    #688493

    Artem Temos
    Keymaster

    Hello,

    Could you please disable all plugins that are not related to our theme and provide us your admin access so we can check it?

    Thank you in advance

    #688977

    nicholas-3663
    Participant

    Hello,

    I have sent the logins.

    #689057

    Artem Temos
    Keymaster

    We just tested this on your website and it works correctly. Here is a video

    • This reply was modified 2 weeks, 1 day ago by Artem Temos.
    #689079

    nicholas-3663
    Participant

    Hello,

    If you check in your video the gift products are showing up twice because of the translation.

    #689120

    Artem Temos
    Keymaster

    Could you please send us your FTP access information so we can troubleshoot the issue?

    #689133

    nicholas-3663
    Participant

    Logins sent.

    #689281

    Artem Temos
    Keymaster

    Hello,

    On your test site, we configured the correct operation of free gifts with WPML. To make this work on your main site, you first need to apply patch 689275, then in the WPML settings select Not translatable for Free Gifts – https://monosnap.ai/file/SMrMIekAH7vd1zYIpZk1Fctu98x6HM
    – and delete all translations for the free gift rules.”

    #689285

    nicholas-3663
    Participant

    Hello,

    If I apply the patch the site gives a critical error:

    2025/10/06 12:43:08 [error] 1170188#1170188: *145260 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Call to undefined function XTS\Modules\Free_Gifts\woodmart_include_files() in /home/XXXXXXX/public/wp-content/themes/woodmart/inc/integrations/woocommerce/modules/free-gifts/class-main.php:32

    #689288

    Artem Temos
    Keymaster

    Sorry, we removed the old one and created new patch – 689286

    #689316

    nicholas-3663
    Participant

    Working perfect. As always thank you for the quick fix.

    #689319

    Artem Temos
    Keymaster

    You are always welcome. Feel free to contact us if you have any further questions.

Viewing 12 posts - 1 through 12 (of 12 total)

The topic ‘Free Gifts WPML Issue’ is closed to new replies.