Jump to content

how to disable url change # when selecting product attribute


m8r-lhgra4

Recommended Posts

how to disable url change (addition of #attribute-value-name) when selecting product attribute

version 1.6.0.9

 

I've followed some of the previous posts' solution and comment out the following from product.js

for (i in attributesCombinations)
for (a in tab_attributes)
if (attributesCombinations[i]['id_attribute'] == tab_attributes[a])
request += '/'+attributesCombinations[i]['group']+'-'+attributesCombinations[i]['attribute'];
request = request.replace(request.substring(0, 1), '#/');

but i'm unable to change attribute value after this. the value always jump back to the default value.

Link to comment
Share on other sites

  • 1 year later...
  • 3 months later...

Did someone solved the addition of '#/' in the end of product url for PS1.6. With Url Canonical redirect, if the customer selects an attribute other than thte default, it then redirects and reloads the product page and customer cannot select an atttribute other than the default one!!!!

Link to comment
Share on other sites

Did someone solved the addition of '#/' in the end of product url for PS1.6. With Url Canonical redirect, if the customer selects an attribute other than thte default, it then redirects and reloads the product page and customer cannot select an atttribute other than the default one!!!!

did you've solved the problem? It happened to me the same but the code of the other topic resolve my problem

 

Link to comment
Share on other sites

  • 11 months 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...