Jump to content

Keyword "{id_product_attribute}" required for route


aeneas

Recommended Posts

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

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

  • 2 weeks later...
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

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

  • 5 years later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...