开发者

magento does not create session when using add to cart button from different site

I a开发者_如何转开发m generating add to cart buttons from a mans site separate from magento. for some reason when you click the add the cart button, it does not recognize a session so the enable cookies page show. if you refresh the page and on afterward , it works. how can i activate the session when using a external add the cart button.


Without seeing the code it is hard to know precisely, but in general terms, you need to look at the procedure which checks the session and explicitly initialise the magento session when the button is clicked.

One thing to note: If the buttons are on another domain, you may have problems with the session being transferred from one to another, which will make PCI compliance a little more tricky.

My advice would be to take a look at the API to see how you can connect into your Magento application in a clean way.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜