New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keyword "{id_product_attribute}" required for route "product_rule" #12048
Comments
Hi @Goalfair, In the SEO&URLs page, in the Schema of URLs part, you can find the route to products: |
Related to #12026 |
This whole section is missing in 1.7 (it was there in 1.6). The following sections are present in menu item "traffic & seo": I do not have a "Schema of URLs", presumably because I can not turn on the "URL rewrite"? |
@Goalfair, in your case "Friendly in disabled. PS: PREFIX is the prefix of your tables, it could be for example ps. Then you need to add |
The command did not work, however I looked up the entry manually and changed it from 0 to 1. Now the "Schema of URLs" section is available in "Traffic & SEO", and after changing the "Route to products" to The last thing I had to do (just if someone else experiences a similar problem) was to use the same URL for "Shop domain" and "SSL domain". Previously the "Shop domain" had a www in front of it and the "SSL domain" did not, which meant when enabling "url rewrite" all the images would not be displayed (because of wrong URL). |
@Goalfair, thanks for your feedback. |
This generates duplicated content... it's bad for SEO. |
THis genrates internal Redirections 302, to the URL with the attribute ID. |
After otherwise successful migration from PS 1.6 to 1.7.5 when turning on "URL rewriting" (in "Shop Parameters - Traffic & SEO") I get the following error message:
Keyword "{id_product_attribute}" required for route "product_rule" (rule: "{category:/}{id}-{rewrite}{-:ean13}")
I can't switch on url rewrite because of that and I can't edit the URL scheme either, it is just not there.
I am using default prestashop modules and classic template.
Rewrite 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}
Would it help if I change the "Route to products" to
{category:/}{id}{-:id_product_attribute}-{rewrite}{-:ean13}
before upgrading from 1.6 to 1.7?
How to change that after the upgrade?
Additional information
PrestaShop version: 1.7.5.0
PHP version: 7.2.13
The text was updated successfully, but these errors were encountered: