Marketer Posted January 15, 2019 Share Posted January 15, 2019 Hi, I have Presta 1.7 and using products with attributes. For example URL structure looks like this: www.myshop.pl/345-computer-name-291#/926-additional-hdd-yes/os-windows-10/additional-speakers-logitech-yes URL structure setup: {category:/}{id}-{rewrite}{-:id_product_attribute} "345" is ID, and "291" is a ID product attribute. When I deleted all things after "291", I get this kind of URL: www.myshop.pl/345-computer-name-291 ... and it works, because "291" it is a unique attributes compares number which redirecting to unique attributes combination to this product. So, I would like to get this short URL. Is it possible to get this effect somehow? Maybe using .htaccess? It is very important for me. Thank you for any help. Link to comment Share on other sites More sharing options...
tdsoft Posted January 16, 2019 Share Posted January 16, 2019 Yes, you can remove id, you only keep product_id in start of URL, it will works Link to comment Share on other sites More sharing options...
Marketer Posted January 16, 2019 Author Share Posted January 16, 2019 @tdsoft Thank you for your answer, but I'm not sure, did I understand you well. You mean that I should delete {id_product_attribute}? Isn't it required parameter with "*"? Link to comment Share on other sites More sharing options...
tdsoft Posted January 17, 2019 Share Posted January 17, 2019 www.myshop.pl/345-computer-name-291#/926-additional-hdd-yes/os-windows-10/additional-speakers-logitech-yes >> It still open product page id = 345 -> after open this page, combination id = 926 will be SELECTED www.myshop.pl/345-computer-name-291 >> It still open product page id = 345 -> after open this page, DEFAULT combination will be SELECTED Link to comment Share on other sites More sharing options...
Marketer Posted January 17, 2019 Author Share Posted January 17, 2019 I understand, what you mean, but: 1. How can I change it in Prestashop. I do not want situation in which Prestashop is generating this long URL with attributes. 2. I would like to have just one product with main, default combination in each category - not every combination as separate product. I should have for example 20 products in categories XYZ, but I have 143 products, because of combinations. Is it posible to do something with that? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now