Page 1 of 1
auto pop-up dropdown list of my sub-domain multi stores on main store to save it in cookies
Posted: Tue Jan 02, 2018 1:35 am
by dhavalpateloo7
I am running multi store city wise on Opencart. I want to have a dropdown list of my stores on main store. So, visitors can select their city and they should be redirected to that store and will be saved in cookies. So, next time when they visit my website they should be automatically diverted on their past selection of city.
My store is
www.orgoearth.com multi stores are
www.city.orgoearth.com for example
www.vadodara.orgoearth.com
Re: auto pop-up dropdown list of my sub-domain multi stores on main store to save it in cookies
Posted: Tue Jan 02, 2018 2:06 am
by straightlight
No OC version provided. Although, I would not recommend storing cookies based on users preferences, especially to centralize a store setting which is also a reason why the core does not have this solution implemented due to security reasons. Detailed reasons can be found on the following post regarding SSL / Non-SSL protocol with cookie usage regarding security considerations:
https://stackoverflow.com/questions/493 ... okies-work
Re: auto pop-up dropdown list of my sub-domain multi stores on main store to save it in cookies
Posted: Sun Feb 04, 2018 2:50 pm
by dhavalpateloo7
Thanks Straightlight,
But, I want to have a autopopup dropdown list of multi store to redirect visitors as per their store selection.
Can I have a separate page which load first before main store loads and where visitors can choose their store?
Thanks in advance
Re: auto pop-up dropdown list of my sub-domain multi stores on main store to save it in cookies
Posted: Sun Feb 04, 2018 11:58 pm
by straightlight
I would rather recommend the use of a static modal to click the store with radio buttons. Then, once checked, the site would actually redirect to that store. This type of methodology is used by many Internet Service Providers for their clients / visitors. This method does not require cookie use but simply a session super global once redirected which can be accomplished with a simple extension.