Closed jan1980 closed 8 years ago
Sorry, I had to enable WooCommerce Multilingual :) ouch! Now it's working fine.
Although an error message appears when adding donations to the cart from a language other than the primary (I created 1 Project and translated it to the secondary languages):
Donation has been removed from your cart because it can no longer be purchased.
Normally, when we click on Add Donation, we are redirected to the Cart Page -if we have selected it on the Settings screen-.
However, this redirect will bring us to the site's primary language Cart Page.
For example, if my site is in english (primary) and spanish (secondary), and I'm doing a donation from a spanish page, I'll end up in the english Cart Page /cart/ instead of /carrito/
If I look at the HTML source code, I can see the ajax points to the wrong cart_url. I guess this has to do with the "Redirect User To" setting, that will default to the primary language Cart url only.
How can we change it so it picks the URL according to the language people makes the donation from?
Somewhere on the code we would be able to add some conditional.
Note: I'm using last versions of WPML and WooCommerce Multilingual.