aeneas Posted December 21, 2018 Share Posted December 21, 2018 Hi! I recently upgraded from 1.6 to 1.7.5 When activating the URL rewriting in "Traffic & SEO" the following message appears: Keyword "{id_product_attribute}" required for route "product_rule" (rule: "{category:/}{id}-{rewrite}{-:ean13}") It refuses to switch on url rewrite and I can't edit the URL scheme, it is just not there. Settings in old version (1.6) were as follows: Route to products: {category:/}{id}-{rewrite}{-:ean13} Route to category: {id}-{rewrite} Route to category which has the "selected_filter" attribute for the "Layered Navigation" (blocklayered) module: {id}-{rewrite}{/:selected_filters} Route to supplier: {id}__{rewrite} Route to manufacturer: {id}_{rewrite} Route to CMS page: content/{id}-{rewrite} Route to CMS category: content/category/{id}-{rewrite} Route to modules: module/{module}{/:controller} I would appreciate any ideas on how to solve this. Link to comment Share on other sites More sharing options...
JBW Posted December 24, 2018 Share Posted December 24, 2018 According to the message you are missing the id_product_attribute in your rule for product rewrite. Change to the default one should fix the issue: {category:/}{id}{-:id_product_attribute}-{rewrite}{-:ean13} Default one has .html at the end, but guess you can skip that. Link to comment Share on other sites More sharing options...
Tanatus Posted January 2, 2019 Share Posted January 2, 2019 On 12/21/2018 at 3:31 PM, aeneas said: Hi! I recently upgraded from 1.6 to 1.7.5 When activating the URL rewriting in "Traffic & SEO" the following message appears: Keyword "{id_product_attribute}" required for route "product_rule" (rule: "{category:/}{id}-{rewrite}{-:ean13}") It refuses to switch on url rewrite and I can't edit the URL scheme, it is just not there. Settings in old version (1.6) were as follows: Route to products: {category:/}{id}-{rewrite}{-:ean13} Route to category: {id}-{rewrite} Route to category which has the "selected_filter" attribute for the "Layered Navigation" (blocklayered) module: {id}-{rewrite}{/:selected_filters} Route to supplier: {id}__{rewrite} Route to manufacturer: {id}_{rewrite} Route to CMS page: content/{id}-{rewrite} Route to CMS category: content/category/{id}-{rewrite} Route to modules: module/{module}{/:controller} I would appreciate any ideas on how to solve this. As far as I know - this is the PS core feature and can't be changed in an easy way. In PS 1.7 product urls have products attributes added: will look like site/2-9-brown-bear-printed-sweater.html instead of site/2-bear-printed-sweater.html This "novelty" was pretty much discussed on this forum, try to search for it. Link to comment Share on other sites More sharing options...
aeneas Posted January 7, 2019 Author Share Posted January 7, 2019 Thanks for your answers, in PS 1.6 it was possible to edit those "slugs" but in 1.7 this feature seems to be missing completely. So right now it is simply impossible for me to turn on URL rewriting because of the error message. Link to comment Share on other sites More sharing options...
aeneas Posted January 8, 2019 Author Share Posted January 8, 2019 The issue has been solved by: https://github.com/PrestaShop/PrestaShop/issues/12048 Link to comment Share on other sites More sharing options...
Preskaribou Posted 6 hours ago Share Posted 6 hours ago and If I don't want to have the : {-:id_product_attribute} how is it possible ? 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