Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create a direct link to a Magento product via Product ID

I would like to place a direct link to a magento product without using to pretty urls. Instead of something like this "http://store.d3scene.com/rift-60-days-pre-paid-time-card.html" I would like it to be "http://store.d3scene.com/product/list/id/187/" - or something similar.

Is that possible?

like image 247
Hendrik Avatar asked Oct 13 '11 00:10

Hendrik


1 Answers

Yes it is. Keeping in mind that most Magento systems are heavily customized and this might not work for your particular installation, use URLs in the form of

http://commercebugdemo.pulsestorm.net/index.php/catalog/product/view/id/27
http://commercebugdemo.pulsestorm.net/index.php/catalog/product/view/id/[ID HERE]

If you're ever wondering about details for a stock Magento page, you can use the free Commerce Bug demo page to find your page, and the use the Controller/Request tab to inspect the path information. (Disclaimer: I own the company that sells the Commerce Bug extension)

You could also turn off URL rewrites in Magento and Magento will generate "not pretty" URLs.

like image 160
Alan Storm Avatar answered Sep 22 '22 19:09

Alan Storm