This thread is resolved. Here is a description of the problem and solution.
Problem: The client is using the Astra theme with WooCommerce and WPML for a multilingual site with English and German languages on separate domains. The 'Slide In Cart' feature works in English but not in German; instead of sliding in, the page reloads. Solution: We recommend the following steps to address the issue: 1. Navigate to the folder
with the updated version available. 3. After replacing the file, check the functionality of the problematic products on the front end.
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, we highly recommend opening a new support ticket. Additionally, please check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. For further assistance, you can also visit our support forum at WPML Support Forum.
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.
Hi, I'm working with Astra theme, WooCommerce and WPML. I've 2 languages, EN and DE, they uses 2 different domains:
hidden link
hidden link
Astra theme Add to Cart button setting is set to "Slide In Cart" (this shows a sliding cart when the user click the Add to Cart button on product page).
It works fine in the primary language EN, but it doesn't work for the secondary language DE, it reloads the page.
I've recently spoken with Astra support, this their answer:
These headers need to be added to the response of the 'hidden link' endpoint.
If you're using Apache, you can add these headers to your `.htaccess` file:
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "hidden link"
Header set Access-Control-Allow-Methods "POST, GET"
Header set Access-Control-Allow-Headers "Content-Type"
</IfModule>
However the CORS policy error won't affect the Add to cart functionality on secondary language, I suspect it's the issue how your secondary language is configured within WPML plugin. Have you tried to report the issue to WPML Support?
Hi, thank you. I've installed Astra and Toolset. I've configured the sliding cart and I've created 3 products.
I've also created 2 Toolset content templates for a single product where I placed the Toolset a heading block for the title and the Toolset "Add to cart button" block. The template are identical the only difference is:
Template 1 - this template has a german translation
Template 2 - this template hasn't a german translation
I assigned Template 1 to Prod 1 – template 1
I assigned Template 2 to Prod 2 – template 2
I haven't assigned any template to Prod 3 Astra, it uses the default Astra template
What I noticed is that the sliding cart works fine for all the products in the EN version.
Then I found that it works fine for Prod 2 and Prod 3 Astra in the DE version, but it doesn't work for Prod 1 in the DE version.
You can see all the 3 products here: hidden link
There is a bug related to the Toolset Template translated version.
Thanks for your patience. Our compatibility team has found a workaround for the case. Please check the following steps:
1- Open the (Open .../wp-content/plugins/woocommerce-views/library/toolset/wocommerce-views/) folder
2- Replace the (Class_WooCommerce_Views.php) file with this one (hidden link)
3- Check the problematic products on the front end
I've applied the above steps to the sandbox site. Please check if the product works correctly. (hidden link)