Skip to content Skip to sidebar

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -
- 19:00 – 22:00 19:00 – 22:00 19:00 – 22:00 19:00 – 22:00 19:00 – 22:00 -

Supporter timezone: Asia/Kathmandu (GMT+05:45)

This topic contains 1 reply, has 2 voices.

Last updated by Subash Chandra Poudel 1 year, 11 months ago.

Assisted by: Subash Chandra Poudel.

Author Posts
August 21, 2023 at 1:06 pm #14264263

mathleaks

We're having issues with updating our WooCommerce products and displaying recurring price information on our site. We noticed that the issue might be related to WPML.

We first noticed the issue that on our checkout page on our SE (Swedish) site the "Recurring total" field is not shown:

hidden link

But it is shown on our US site (see panel to the left):

hidden link

I could reproduce this on my local setup and while debugging I noticed on my breakpoint that the product had `next_payment_date` set to `0` and `trial_end_date` set to `"1970-01-01 00:00:00"` which seem to explain why it is not rendering the "checkout/recurring-totals.php" template.

I then tried to update the product trial length in wp-admin and see if that did any difference. I then noticed that when I changed trial length to 2 and trial period to weeks and updated the product it had switched back to days after page reload. No matter what I did I could not update the product trial period which seem to indicate that there is some deeper technical issue.

We have a very similar setup on US like we do on SE (same codebase for example, same plugins and versions etc.), and on US it works fine.

While debugging I also tried disabling plugins to see if anything interfered, I then noticed that disabling our WPML plugins ("WPML Multilingual CMS" and "WPML String Translation") made the issues go away. So the issue seem related to the WPML plugins. I tried updating the plugins to the latest version but it made no difference (the debug info shows an older version but it just has not updated yet, I tried it on my local environment).

We would appreciate if you could take a look at our site and help us debug this issue.

mathleaks.se-vs-mathleaks.com-checkout.png
Screenshot 2023-08-21 at 14.31.39.png
August 23, 2023 at 12:44 am #14274137

Subash Chandra Poudel

Hi there,

From what I understand from your debug info I see that the site uses different domains per language setup and hidden link is the English translation of hidden link created with WPML. Please correct me if I am wrong.

On your site as I see you are using WooCommerce and WooCommerce Subscriptions plugins to support the e-commerce and subscription product. However, I don't see the WPML WooCommerce Multilingual plugin on your site that is required to properly support WooCommerce translation.

Can you please setup WooCommerce Multilingual ( WCML ) as explained in the documents linked next and see if the issue then gets resolved?

https://wpml.org/documentation/related-projects/woocommerce-multilingual/

https://wpml.org/documentation/woocommerce-extensions-compatibility/translating-woocommerce-subscriptions-woocommerce-multilingual/

Regards,
Subash

The topic ‘[Closed] WooCommerce product trial error when using WPML’ is closed to new replies.