How to add a manufacturer in magento at the product url?

How to change magento so that:

{site}/category-name/sub-category/product-name 

becomes

{site}/category-name/sub-category/manufacturer/product-name 

Where is the standard attribute of the manufacturer Magento?

Thank:)

+3
source share
3 answers

You will need to overwrite system overwrites for this. You can either expand the class that creates the product overwrites in the first place (this probably happens somewhere in the product controller on the administrator’s site), or create an event observer that updates the rewritable files after the product is saved.

+1
source

.. , , . , , URL- (, , ). , URL- ( "some-product-name.html" ) - "manufacturer-name/some-product-name.html". , , , .

, !

,

0

, ?

:

root -> subcategory -> manufacturer-subcategory -> product

?

, , , .

0

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


All Articles