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
@ 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.
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?
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
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
@ hovantaibk98,
Please PM me your site’s url, admin and ftp credentials, I’ll help you check it.
Hi Lee,
I have sent the information to you:-) Kindly check and support.
Thanks very much for your great support.
Regards,
Tony Tai
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.
Great!! Thank you very much Lee Highly appreciate your perfect support on this.
Have a nice weekend.
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
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
Thank you Kan, it seems to be working well now!
This question is now closed