JM Mega Menu have problem with new Store View

Hello I have a problem with JM Mega Menu in JM-Crafts

I have been following this video: https://www.youtube.com/watch?v=Wclpu44SjIA

I installed VietNamese Pack at http://www.magentocommerce.com/magen…ge-pack-1.html
It was ok

Then I created a new Store View Vietnamese
With below information
Attachment 38172

Then I configured Vietnamese Scope like this
Attachment 38173

Then I created CMS Blocks, CMS Pages in Default and Vietnamese Store View.

I created Menu Group Vietnamese with a lot of Item

I add flag to show in web site

So I can switch between default Store View and Vietnamese Store View easily with CMS Blocks, Pages, URL rewrite management

15 answers

Profile photo of Seoki Lee 1510.00 $tone July 8, 2014
Public

@ hovantaibk98,

After create new store, please re-index data on your admin (System/Index Management). It will resolve your site’s problem.

I’ve enabled Mega menu and re-index data on your admin, menu works fine now. Please check it.

#1
Profile photo of Ly Long Ly Long 0.00 $tone July 9, 2014
Public

Thanks for your help, but can I ask more about it

I follow this instruction: http://www.templatemonster.com/help/…-language.html

to avoid ‘___from_store’ query string from the urls when switch a different language

in /app/design/frontend/default/template/page/switch/languages.phtml find line 41 and change it from:

echo $_lang->getCurrentUrl()

To:

echo $_lang->getCurrentUrl(false)

Then go to System -> Configuration -> General -> Web in your Magento admin. Then Options -> Add Store Code to Urls -> Yes.

But it seem like don’t work in Magento ver. 1.9.0.1

The same for someone in that post too.

So, How should I do to avoid ‘___from_store’ query string from the urls when switch a different language?

#2
Profile photo of Seoki Lee 1510.00 $tone July 9, 2014
Public

Did you refresh cache on your backend? I’ve removed query string from the urls when switching to a different language by enabling Add Store Code to Urls and using rule

Code:

<a class="lang-flag <?php echo $_active; ?>" href="<?php echo $_lang->getCurrentUrl(false) ;?>" title="<?php echo $_lang->getCode(); ?>"><img src="<?php echo $this->getSkinUrl('images/flags/' . $_lang->getCode() . '.png');?>" alt="<?php echo $_lang->getCode(); ?>" /></a>

It works fine, please see screenshot: http://prntscr.com/40uk33

#3
Profile photo of Ly Long Ly Long 0.00 $tone July 26, 2014
Public

Did you refresh cache on your backend? I’ve removed query string from the urls when switching to a different language by enabling Add Store Code to Urls and using rule

Code:

<a class="lang-flag <?php echo $_active; ?>" href="<?php echo $_lang->getCurrentUrl(false) ;?>" title="<?php echo $_lang->getCode(); ?>"><img src="<?php echo $this->getSkinUrl('images/flags/' . $_lang->getCode() . '.png');?>" alt="<?php echo $_lang->getCode(); ?>" /></a>

It works fine, please see screenshot: http://prntscr.com/40uk33

Dear Lee,

Thanks a lot for your kind and quick support.
I have followed your instruction to refresh cache many time both Magento Cache and Cache Storege, and I also Enabling Add Store Code to Urls but I don’t understand why it still doesn’t work as following:
Attachment 38736

I have tried to solved this issue during the last 2 weeks but still can not fix it. Could you please take a look, or better to login to my site if necessary?

Thanks in advance for your kind help.
I look forward to hearing from you soon.

Have a nice weekend

#4
Profile photo of Seoki Lee 1510.00 $tone August 1, 2014
Public

Hi Tony,

I’ve updated on your site, I did edit file /app/design/frontend/default/jm_crafts/template/page/switch/languages.phtml, at line 40, replace this rule:

Code:

<a class="lang-flag <?php echo $_active; ?>" href="<?php echo $_lang->getCurrentUrl() ;?>" title="<?php echo $_lang->getCode(); ?>"><img src="<?php echo $this->getSkinUrl('images/flags/' . $_lang->getCode() . '.png');?>" alt="<?php echo $_lang->getCode(); ?>" /></a>

With:

Code:

<a class="lang-flag <?php echo $_active; ?>" href="<?php echo $_lang->getCurrentUrl(false) ;?>" title="<?php echo $_lang->getCode(); ?>"><img src="<?php echo $this->getSkinUrl('images/flags/' . $_lang->getCode() . '.png');?>" alt="<?php echo $_lang->getCode(); ?>" /></a>

Please check it.

#7
Profile photo of ALAIN DEMOUCHY 360.00 $tone May 19, 2015
Public

Hi,
To avoid ‘___from_store’ query string from the urls when switch a different language, I tried to replace code in \app\design\frontend\default\jm_travelgear\template\page\switch\flags.phtml by 

<a class="lang-flag <?php echo $_active; ?>" href="<?php echo $_lang->getCurrentUrl(false) ;?>" title="<?php echo $_lang->getCode(); ?>"><img src="<?php echo $this->getSkinUrl('images/flags/' . $_lang->getCode() . '.png');?>" alt="<?php echo $_lang->getCode(); ?>" /></a>

 
but the result is still not fully satisfactory!
I have always “?___from_store=0” after language name.
Any idea?
Thanks




#9
Profile photo of tuan le van 11570.00 $tone May 25, 2015
Public

 Hi admswiss ,
you go to System -> Configuration -> General -> Web in your Magento admin. Then Options -> Add Store Code to Urls -> Yes.
Then you refresh cache on your backend.
Regards,
Kan Lee
 

#10
Profile photo of ALAIN DEMOUCHY 360.00 $tone May 26, 2015
Public

Hi ,
Thanks for your answer!
Add Store Code to Urls -> Yes—-> done before posted my 1st message
Before changing code and / adding store code to Urls to yes / cleaning cache I had this ” …?___from_store=french&___store=german” and after modification only this “?___from_store=0”
Thanks for your help

#11
Profile photo of tuan le van 11570.00 $tone May 27, 2015
Public

Hi admswiss,
I have edited and updated  file at: /app/design/frontend/default/jm_travelgear/template/page/switch/flags.phtml and flags.bak.phtml  and your website works fine now.
Have a look and let’s me know how it goes.
Best regards,
Kan Lee

#14

This question is now closed

Written By

Comments