Post by dhavalpateloo7 » Tue Jan 02, 2018 1:35 am

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


Posts

Joined
Sun Apr 23, 2017 9:42 pm

Post by straightlight » Tue Jan 02, 2018 2:06 am

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

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by dhavalpateloo7 » Sun Feb 04, 2018 2:50 pm

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


Posts

Joined
Sun Apr 23, 2017 9:42 pm

Post by straightlight » Sun Feb 04, 2018 11:58 pm

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.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: Semrush [Bot] and 100 guests