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