AbanteCart Community
Shopping Cart Operations => Support => General Support => Topic started by: Ollie on September 16, 2014, 11:50:03 PM
-
I'm getting an "Unknown Ajax Error" when adding to cart from this category page in French: http://fr.assistech.com/store/magnifiers (Fr. "ajouter au panier" for adding to cart)
I tried the workaround provided by Abolabo at http://forum.abantecart.com/index.php/topic,2473.0.html , but it did not work for me.
I noticed this problem only happens when I'm in a language subdomain such as "fr" for French or "es" for EspaƱol. If I switch to English --> http://assistech.com/store/magnifiers , the error is gone. However, if I select English from the language dropdown menu, it adds an "en" prefix to the URL, therefore causing the same error.
Please note: I'm not using the built-in translator that comes with Abantecart. I use a third-party solution that requires adding a language prefix to the URL.
I appreciate if anybody could tell me what needs to be done to fix this error. Thank you!
-
did you tried to fill missing descriptions for product options (global attributes) for other languages? i mean subform on language edit page. If yuo created some attribute and fill some description for it in english and then added new language you should to set descriptions for new language.
-
did you tried to fill missing descriptions for product options (global attributes) for other languages?
No, I haven't tried that. How do I get to global attributes for other languages? Please tell me step by step. Thank you.
-
admin menu system->localization->languages. Choose new language -> edit. Look at second form "Load missing language data".
-
I went to localization and selected Turkish. Under "Load missing language data" I typed in "English" as the source language, then clicked "Load". Then I cleared my cache files both in Abantecart and my browser. I tested a page in Turkish, but I keep getting the same error.
-
give me url of product that you tried
-
give me url of product that you tried
Here it is: http://tr.assistech.com/store/magnifiers
-
you have issue with cookies. Abantecart set cookie for your domain, but you created a lot of subdomain such as ru. fr. es. etc that have it's own cookie scope
-
you have issue with cookies. Abantecart set cookie for your domain, but you created a lot of subdomain such as ru. fr. es. etc that have it's own cookie scope
How can I get his resolved?
-
i see 2 solutions:
- turn off subdomains for localization version of site
- add "hardcoded" domain into cookie set
(open file public_html/core/lib/session.php and replace $path = dirname($_SERVER[ 'PHP_SELF' ]); to $path = "assistech.com"; at line 60)
-
i see 2 solutions:
- turn off subdomains for localization version of site
- add "hardcoded" domain into cookie set
(open file public_html/core/lib/session.php and replace $path = dirname($_SERVER[ 'PHP_SELF' ]); to $path = "assistech.com"; at line 60)
Are these solutions mutually exclusive or part of the same solution? I need the subdomains in order for the 3rd party translation to work properly, which means turning off subdomains is not an option. What do you suggest?
-
yes. cookie for domain cover all subdomains
-
yes. cookie for domain cover all subdomains
Sorry, your answer is not clear. I asked if the proposed solutions are mutually exclusive or two steps for the same solution. You gave me a yes answer. Yes to what? Please clarify. How can I keep the subdomains and get rid of the Ajax error? What happens if I add "hardcoded" domain into cookie set? Will it get rid of all subdomains? That's not clear to me. I appreciate an answer all my questions. I don't want to implement anything unless I know for sure what I'm doing. Thank you.
-
I found a workaround to get rid of the Ajax error. Under System > Settings > Checkout, I disabled "Same Page Add To Cart". Product is now being added to cart and I'm directed to the Shopping Cart page without any Ajax error.