Flags URL

hi,

I have a multilingual shop and I have entered a translated URL path to each configurable product.
Then of course, on the front-end, clicking others language flags when you are in a product page gets you to the 404 error page because the product’s URL path is different in the other languages.

So, I need to redirect the flags to the concerned home pages : anywhere you are in the website, a click to any of the other flags has to bring you the chosen language homepage.

How to do this ?

Sini54

1 answer

Profile photo of Sherlock 0.00 $tone March 7, 2014
Public

Go to the app/design/frontend/default/jm_megamall_fr/template/page/switch/flags.html file you would see

PHP Code:

  <?php echo $_lang->getCurrentUrl() ?>


just change it to

PHP Code:

  <?php echo $_lang->getBaseUrl() ?>


I hope this helps !

#1

Please login or Register to Submit Answer

Written By

Comments