xyphocles Posted September 5, 2014 Share Posted September 5, 2014 (edited) Hi! I am trying to set up a multi-store abc.com/en (main store) and abc.com/partner/en (rebranded store) I have multistore turned on. physical path to both sites is / store url is http://abc.com/ and http://abc.com/partner/, ssl url is blank (no SSL) Both stores work fine to display product, the main site works fine to add to card & checkout, but I am experiencing a strange error when adding to cart on the 'partner' site. In particular, it pops up a modal dialog box saying "impossible to add product to the cart, textStatus:ParseError" and showing the html content of the home page. In particular, the weirdness happens in the ajax requests: From the WORKING (abc.com) site the add to cart click generates this request: Request URL:http://abc,com/?rand=1409829917734 Request Method:POST Status Code:200 OK Referer:http://abc.com/en/category/product.html Form Data controller:cart add:1 ajax:true qty:1 id_product:1 token:ee00eb2c206b0750b6edbfb66d5b08d0 Response Header STATUS: 200 (OK) Response Data: valid JSON with product and shipping data All is good and proper in this scenario. From the PROBLEM (abc.com/partner) site the add to cart click generates this request: Request URL:http://abc,com/?rand=1409917734829 Request Method:POST Status Code:302 Moved Temporarily Referer:http://abc.com/partner/en/category/product.html Form Data controller:cart add:1 ajax:true qty:1 id_product:1 token:6edbfb66d5b08d0ee00eb2c206b0750b Response Header STATUS: 302 (Moved Temporarily) Location:http://abc.com/en/ Obviously, when the second request redirects to the home page, the resulting response contains no parseable JSON data. Can anyone hint what would be the problem here? I have tried different variations of inputs in the multistore domain fields, I have turned off all caching and CCC, but no luck! Many thanks! PS: Sorry for the cryptic domains - I am happy to share the actual sites by PM before they go live/public. Edited September 5, 2014 by xyphocles (see edit history) Link to comment Share on other sites More sharing options...
trevorgilligan Posted November 21, 2016 Share Posted November 21, 2016 having similar problem... any solutions? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now