Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Change Default URls (cart, account, etc.)
 
hotelwww2
Jr. Member
 
Total Posts:  11
Joined:  2012-11-29
 

Hi everyone.

I’m new in Magento and don’t speak english that great, but here I am, hoping to find some solution.

I need to translate some URL of my shop like “Cart, Account, Whilist, etc”.

Basically, I want to turn this:

http://myshop.com.br/index.php/customer/account/login/
http://myshop.com.br/index.php/checkout/cart/
http://myshop.com.br/index.php/wishlist/index/index/

into this:

http://myshop.com.br/index.php/login
http://myshop.com.br/index.php/carrinho
http://myshop.com.br/index.php/lista-de-desejos

I’ve already tried the Google, turned it upside down and didn’t find anything.

Does anyone knows a way to do that, or if it’s possible?

 
Magento Community Magento Community
Magento Community
Magento Community
 
VnEcoms
Sr. Member
 
Avatar
Total Posts:  121
Joined:  2012-09-13
Vietnam
 

This is easy,
You can manage this by go to Catalog->URL Rewrite Management
Click to Add URL Rewrite
Select Create URL Rewrite:Custom
fill the form like the attached image.

Now you just need edit your template to replace all old url to new url.

Image Attachments
url_rewrite.png
 
Magento Community Magento Community
Magento Community
Magento Community
 
AssociatedVOIP
Member
 
Total Posts:  44
Joined:  2012-01-28
 

You will need to create/edit the htaccess file in your root directory and insert url rewrite management there so it does not publicly show certain terms (like index.php) and to replace other terms (like cart).

Search Google for: htaccess url rewrites

 
Magento Community Magento Community
Magento Community
Magento Community
 
hotelwww2
Jr. Member
 
Total Posts:  11
Joined:  2012-11-29
 

Many thanks people, It helped me a lot!

easypdfinvoice, thanks for the tutorial, it couldn’t be better explained.

AssociatedVOIP, thanks for the tip, I’ll do it.

Topic solved!

 
Magento Community Magento Community
Magento Community
Magento Community
 
kamilborkowski
Member
 
Avatar
Total Posts:  54
Joined:  2010-02-01
 

If You with to translate any urls in Magento to any language You like without need to change anything in templates than I have made a module for that.
With it you can translate part of url - example:
http://www.example.com/checkout/cart
to
http://www.example.com/basket
or even
http://www.example.com/wishlist/index/configure/id/23
to
http://www.example.com/edit-wishlist/23
It’s not only allow entering translated url’s but also change links in templates (if it’s made with Magento style - getUrl method) - customer will see everwhere translated url’s.
It will be available at magento connect within few weeks (I’m waiting for store to sell it officially) but if anybody need this - just email me: poczta at kamilborkowski dot pl - I can sell it with discount smile

Module has also “test mode” - when enabled test mode that module will work on frontend only for logged in admin so You can test it safely.

 
Magento Community Magento Community
Magento Community
Magento Community
 
NoNameMD
Jr. Member
 
Total Posts:  22
Joined:  2010-07-23
 
kamilborkowski - 07 December 2012 01:24 AM

If You with to translate any urls in Magento to any language You like without need to change anything in templates than I have made a module for that.

Hi, is your module already available at Magento Connect? Couldn´t find ist…

 
Magento Community Magento Community
Magento Community
Magento Community
 
kamilborkowski
Member
 
Avatar
Total Posts:  54
Joined:  2010-02-01
 

Unfortunately it’s only available at my company store in Polish language. If anyone need this module, just contact me please.

 
Magento Community Magento Community
Magento Community
Magento Community
 
kamilborkowski
Member
 
Avatar
Total Posts:  54
Joined:  2010-02-01
 

If anybody need feature to translate magento default urls and changing links on frontend - my module is available at Magento Connect:
http://www.magentocommerce.com/magento-connect/catalog/product/view/id/18160/

 
Magento Community Magento Community
Magento Community
Magento Community
 
mauricioprado00
Member
 
Avatar
Total Posts:  63
Joined:  2009-03-11
Argentina
 
hotelwww2 - 30 November 2012 07:50 AM

Does anyone knows a way to do that, or if it’s possible?

I found other methods, it requires some minimal development skills I am attaching a diff patch, is basically adding a router in your extension and changing the mage_core_model_url::getRoutePath in there I created a method called _translatePath you should fill it with your own rewrites.

PS, I have updated the diff since I noticed that I was overwritting the cms router config.

File Attachments
change-urls2.txt  (File Size: 38KB - Downloads: 4)
 
Magento Community Magento Community
Magento Community
Magento Community
 
ashishkhadpe
Member
 
Total Posts:  58
Joined:  2011-08-22
 

Hi

Even i was looking for the solution on this.

Thanks
Parsys Media
Magento Development Company
Ahmedabad | Bangalore | Chennai | Gurgaon | Hyderabad | Kolkata | Mumbai | Pune

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top