Wednesday, August 8, 2012

Magento : sharing the cart between stores

The first thing enable the Use SID on Frontend at
System→Configuration→Web→Session

Then replace following code in start() method of Mage_Core_Model_Session_Abstract_Varien
if (isset($_SESSION)) {
            return $this;
        }

with
if (isset($_SESSION) && !isset($_GET['SID'])) {
            return $this;
        }

1 comment:

  1. hello

    can you please share more detail about sharing multistore with single cart , i am using one root category for all stores

    ReplyDelete