You get a bonus - 1 coin for daily activity. Now you have 1 coin

How to assign a clean URL to all products in OpenCart based on product name

Practice




How do you assign a nice URL to all products based on the product name in OpenCart?
run this little query in the mysql editor
select, replace, and insert in a single query

INSERT INTO MyName_url_alias( keyword, query )
SELECT REPLACE( model, ' ', '-' ) , CONCAT( "product_id=", product_id )
FROM `MyName_product`


replace MyName with your own)))
and you'll be happy! ::king.gif::

Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Databases - MySql (Maria DB)"

Terms: Databases - MySql (Maria DB)