designeren Posted November 15, 2012 Share Posted November 15, 2012 (edited) Setting up a Prestashop with multistore functionality together with multilingual support. This means that Prestashop from default would define my URL as: domain.com/store/lang => domain.com/uk/ja (UK store with Japanese language) However I would really appreciate my URLs to have both store and language at one level: domain.com/store-lang => domain.com/uk-ja I figured out that this might be possible through either .htaccess or the dispatch.php file. However can't seem to get it working. And I would also appreciate a solution where it is not too hacky and harcoded many places. I hope someone might have tried this before or maybe able to think of any possible solution Edited November 15, 2012 by designeren (see edit history) Link to comment Share on other sites More sharing options...
designeren Posted November 16, 2012 Author Share Posted November 16, 2012 This is driving me crazy. I hope someone can help! Link to comment Share on other sites More sharing options...
Soek22 Posted November 17, 2012 Share Posted November 17, 2012 I am in the same situation. I also need language and store at same level, so when french is selected you go to the french store, and when spanish is selected you go to the spanish store. Link to comment Share on other sites More sharing options...
designeren Posted November 20, 2012 Author Share Posted November 20, 2012 Its not exactly the same situation. I would just really like the URLs to become: /store-language and not /store/language. I figured out that the Dispatcher.php class is annoying even when I am trying to edit the .htaccess. Is there simply not any easy way to do this? I think it is not exactly good for SEO either? Link to comment Share on other sites More sharing options...
Trip Posted November 20, 2012 Share Posted November 20, 2012 If you really need that I would try to setup uk-ja as Physical URI .. You than have to disable all other languages for that shop so that only japanese language is ascociated .. look under Localization> Languages > Edit Shop association That is basically how that should work. Hope that helps, regards, trip Link to comment Share on other sites More sharing options...
Trip Posted November 20, 2012 Share Posted November 20, 2012 For Soak22. You setup 2 stores in the way I mentioned above. Everyone has one language ascociated and than you maybe make static links to the shop or try to achive the switch with a custom module/hack. I doubt that it this is implemented by default. With the approach one shop/one language the default ps language switcher logically will not work. Anyway, afaik there were some problems fixed with multistore stock management. I would test that before if it is working as expected.. if not wait for the next version which is hopefully released soon. Can't wait to use these features too ... look e.g. at http://forge.prestashop.com/browse/PSCFV-5552 Best regards, trip Link to comment Share on other sites More sharing options...
Soek22 Posted November 20, 2012 Share Posted November 20, 2012 Thanks for everything. Link to comment Share on other sites More sharing options...
designeren Posted November 21, 2012 Author Share Posted November 21, 2012 Thanks for the answer. Not exactly what i want, i actually support multilingual on each store. However decided I just need to go with the /store/lang. Link to comment Share on other sites More sharing options...
Trip Posted November 21, 2012 Share Posted November 21, 2012 Hi designeren, if you set my approach up in a propper way it is basically one store with multi language support. The customer will not see a difference. I needed a couple of days to play and understand the full concept and is pretty nifty although, as a new feature, maybe with some bugs and I am not sure if features like 'sharing carts' in a shop group already work which is mandatory your case. As you connect the different shop instances in a shop group it is basically one shop (for the customer) but whith a lot more freedom than packing it all into one single shop instance. Downside, the learning and testing curve is slightly higher but anyway I do not want to convince you. I just recommend to dive deeper into the subject if you want maximum flexibility for the future. Best regards, trip Link to comment Share on other sites More sharing options...
Recommended Posts