I have two pages in my store one in spanish and other in english.

I have the shortcode put, but when i changed between pages the URLs changes like this: http://tienda.mabaonline.com/en/?___from_store=es

I want this http://tienda.mabaonline.com/en How I can change it?


Firstly go to admin panel System -> Configuration Under Configuration -> Web -> Url options and change Add Store Code to Urls to ‘Yes’.

Then change template file app/design/frontend//default/template/page/switch/languages.phtml

search for this:

<a href="<?php echo $_lang->getCurrentUrl() ?>

and change it to this:

<a href="<?php echo $_lang->getCurrentUrl(false) ?>
  • No it doesn't work :S May 28 '15 at 12:31
  • you did it the right way?
    – vasilisdmr
    May 28 '15 at 12:34
  • I'll did it like this: Type:custom store:English ID path: en/?____from_store=es Request Path: en/?____from_store=esTarget Path: http://tienda.mabaonline.com/en May 28 '15 at 12:41
  • no use the names of each home page not that. i updated my answer, check it out.
    – vasilisdmr
    May 28 '15 at 12:43
  • 1
    Okay I'm gonna try May 28 '15 at 13:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.