Create a direct link to Magento product through product identifier

I would like to put a direct link to the magento product without using 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 it possible?

+6
source share
3 answers

Yes it is. Keeping in mind that most Magento systems are highly tuned, and this may not work for your specific installation, use the URLs in the form

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 are ever interested in learning more about the Magento page in stock, you can use the free Commerce Bug demo page to find your page, and use the Controller / Request tab to check the path information. (Disclaimer: I have a company that sells the Commerce Bug extension)

You can also disable URL rewriting in Magento, and Magento will generate "not so" URLs.

+15
source

You almost had it. It should be like

 http://store.d3scene.com/product/1729 

and you can do similar categories

 http://store.d3scene.com/category/1729 

You can see some URL rewrites used by magento in the following database table.

 core_url_rewrite 
0
source

For product 187 you can use

http: // localhost / magento / catalog / product / view / id / 187

So far, the visibility parameter for product 187 is set to "Catalog". It must be either "Directory" or "Directory, search."

Visibility for products is set on the screen "Administration-> Products-> Catalog-> edit product.

0
source

Source: https://habr.com/ru/post/899180/


All Articles