magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.52k stars 9.31k forks source link

Minicart : duplicate micart cart item display in multiple project's minicart on same local server. #4118

Closed parthviroja closed 8 years ago

parthviroja commented 8 years ago

I have install 2 project (Magento-CE.2.0.0) on my local server.

When i open project("demo"), and add 2 item in cart (minicart render with 2 item perfectly).

When i open project("test") (minicart display 2 item of project(demo).

I think issue with session / cache..

Anybody knows how i can fix / solve this problem ?

ishakhsuvarov commented 8 years ago

@parthviroja Do you have same domain for both projects? Mini cart contents are cached in browser's localStorage per domain.

parthviroja commented 8 years ago

Yes, i m working on same local server Ex: 192.168.0.100/<project 1> , 192.168.0.100/<project 2>.

Any way to solve this issue ? , i am working as magento 2 extension developer, just guide me than i will try to fix this issue..

ishakhsuvarov commented 8 years ago

@parthviroja Looks like you are experiencing this issue because mini cart contents are cached inside browser's localStorage per domain. Try using some local domains for each Magento installation to solve this.

parthviroja commented 8 years ago

Thanks @ishakhsuvarov