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.
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?
The topic ‘[Closed] WooCommerce product trial error when using WPML’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.