Jump to content

Problem with product page size attribute


Recommended Posts

Hi Presta Team,

 

I got a situation when user want to pick a size, it always go to the last size. It seems like there is an error about the attribute.

 

please check the link below :

http://pazzion.co.id/index.php?id_product=8&controller=product&id_lang=1#/color-/-

 

example :

user want to pick size 36, it directly go to the last size 40.

 

I am using PS 1.5.3.1.

 

Can someone help me here?

 

 

Thanks a lot

Link to comment
Share on other sites

You have some kind of javascript ptoblem. Something re-selects the last element when the radio change. Can you try and change te radio type to dropdown for this attribute, and see if it solved it? Then, we can make more accurate suppositions. Are you using any attribute-related third party module? Is the theme you're using compatible with your ps version?

Link to comment
Share on other sites

Thank you for the reply.

 

i already tried dropdown options but it is the same, still change to the last size.

 

i am not using any third party module, and actually it is the default theme that i already modified. If i made a mistake about the code can you tell me which part is it?

 

Thank you

Link to comment
Share on other sites

I just modified the javascript at themes/default/js/product.js

 

i removed :

 

$('#attributes select, #attributes input[type=hidden], #attributes').each(function(){

tab_attributes.push($(this).val());

});

 

at line 662.

 

Will it cause any problems? cause now i think it fixed the problem i had, i can pick the size and not redirect to the last one.

Link to comment
Share on other sites

×
×
  • Create New...