Jump to content
stennnn

Error with product attribute - Friendly URL

Recommended Posts

Hello guys,

 

I am really struggling here with a problem with the links of my website. It's not online yet, it's on localhost. 

I have friendly URL's on, and I have this for the product schema:

{category:/}{id}-{id_product_attribute}-{rewrite}.html

This is the default one. The problem is whener I open a product without attributes, it doesn't load the page, giving me an error 404.

For example:

http://localhost/top-garden/cigarros-eletronicos/76-326-ego-aio-joyetech.html#/44-cor-preto

This works fine because I've some attributes on the product.

But if I choose one product without attributes, the link appears like this and gives a 404 error:

http://localhost/top-garden/cigarros-eletronicos/77--pack-5-resistencias-bf-ss316-06ohm-joyetech.html

But, if I add a zero on the attribute it works...

Shouldn't it detect by itself and change?

http://localhost/top-garden/cigarros-eletronicos/77-0-pack-5-resistencias-bf-ss316-06ohm-joyetech.html

 

There is also one issue that started today which is, whenever I change the language, the link appears like this when it shouldn't. On the default language:

"localhost/top-garden/pt"

When I choose another language:

"http://localhost/top-garden/en/?controllerUri=index"

How do I fix this?

 

Thank you so much,

Hugo

Share this post


Link to post
Share on other sites

Ohh,

When the Friendly URL is off, everything works like a charm...

Thanks

Share this post


Link to post
Share on other sites

I manage to find the problem. The path was incorrect.

{-:id_product_attribute} instead of {-id_product_attribute}.

 

Sorry to bother you all,

Thanks

Share this post


Link to post
Share on other sites

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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More