how to make opencart multi-store share same cart and other?

十年热恋 提交于 2019-12-12 00:23:08

问题



my website information : opencart 2.0.2

vqmod :current last.


databese information:

store 1 and 2 no database.its redirect default site.(with config.php)


htaccess :

default Store : same, store 1:same, strore 2 :same


admincp: admincp server setting : Use Shared Sessions activated.

(SEO URLs Active : yes)

ı want to share cart and logins ı wait for this 4 month help me please


回答1:


Easy Solution,

  1. OPEN FILE: system/library/session.php
  2. FIND LINE: session_set_cookie_params(0, '/');
  3. APPEND : session_set_cookie_params(0, '/','.DOMAIN.COM);

Make sure to include the period "." before DOMAIN.COM

That's it... Now login sessions started on www.domain.com is shared with www.sub.domain.com



来源:https://stackoverflow.com/questions/32998968/how-to-make-opencart-multi-store-share-same-cart-and-other

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!