[英]Add to cart is not working with sub store in magento
I created a multistore using this link with reference. 我使用此链接创建了一个多线程参考。
My default site is working fine, but in my sub store Add to cart is not working, it returns 302 error. 我的默认网站工作正常,但在我的子商店 添加到购物车不工作,它返回302错误。
The problem is that cookies are not stored in your sub store ( http://arocos.com ). 问题是cookie不存储在您的子商店( http://arocos.com )中。
In your default site, cookies are stored. 在默认站点中,存储cookie。
Check the settings of the cookies in magento. 检查magento中cookie的设置。
https://magento.stackexchange.com/questions/68070/whats-the-correct-cookie-config-for-a-magento-site-split-across-multiple-instan https://magento.stackexchange.com/questions/68070/whats-the-correct-cookie-config-for-a-magento-site-split-across-multiple-instan
Plaese refer this steps also : Plaese也参考这个步骤 :
What we had to do is set System > Configuration > Web > URL Options, change Add Store Code to URLs to "Yes". 我们要做的是设置系统>配置> Web> URL选项,将添加商店代码更改为URL为“是”。 Then we were able to initialize the Mage::app() to the right store code and the add to cart url then correctly routes to the site that has the product.
然后我们能够将Mage :: app()初始化为正确的商店代码,然后添加到购物车网址,然后正确地路由到拥有该产品的网站。
Causes 原因
Javascript mistake. Javascript错误。 Most likely the problem is related to the javascript mistake on your page.
最有可能的问题与您网页上的javascript错误有关。 If you do not have any javascript errors, there's a couple of other things to look for.
如果您没有任何javascript错误,还有其他一些要寻找的东西。
Store URL. 存储网址。 Site can be accessed through adress like: eshop.com as well as www.eshop.com.
网站可以通过以下地址访问:eshop.com以及www.eshop.com。 If you install your store like eshop.com, then if you'll access your store via www.eshop.com, the add to cart wont work on the homepage.
如果您像eshop.com一样安装商店,那么如果您通过www.eshop.com访问您的商店,则添加到购物车将无法在主页上运行。 So here could be the root of the problem.
所以这可能是问题的根源。
Mixed Domains: Make sure that your product page is on the same domain as your Magento installation. 混合域:确保您的产品页面与Magento安装位于同一个域中。 SSL Certificate Problems: SSL errors might be caused by an incorrect environment setup, a bad server certificate, connection problems, certificate expiration etc.
SSL证书问题:SSL错误可能是由不正确的环境设置,错误的服务器证书,连接问题,证书过期等引起的。
Server-side problems. 服务器端问题。 Your hosting provider (especially if you're on a shared hosting) may have implemented any changes that lead to functionality drop.
您的托管服务提供商(特别是如果您在共享主机上)可能已实施任何导致功能下降的更改。 How to Fix
怎么修
Here are some tips and tricks on how to fix this and make your store sales live again. 以下是有关如何解决此问题并使您的商店销售再次上线的一些提示和技巧。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.