luckysengoku Posted April 18, 2013 Share Posted April 18, 2013 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 More sharing options...
luckysengoku Posted April 18, 2013 Author Share Posted April 18, 2013 does anybody experiencing the same problem? Link to comment Share on other sites More sharing options...
NemoPS Posted April 18, 2013 Share Posted April 18, 2013 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 More sharing options...
luckysengoku Posted April 18, 2013 Author Share Posted April 18, 2013 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 More sharing options...
NemoPS Posted April 18, 2013 Share Posted April 18, 2013 It's hard to tell, have you modified the javascript someway? Link to comment Share on other sites More sharing options...
luckysengoku Posted April 18, 2013 Author Share Posted April 18, 2013 i don't think i ever played with the javascript. Just modify the layout. Link to comment Share on other sites More sharing options...
luckysengoku Posted April 18, 2013 Author Share Posted April 18, 2013 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 More sharing options...
NemoPS Posted April 18, 2013 Share Posted April 18, 2013 If you fixed it by removing that part, that was your problem Link to comment Share on other sites More sharing options...
luckysengoku Posted April 18, 2013 Author Share Posted April 18, 2013 yeah but it just weird because it seems to be one of the js core, wonder will it cause any problem? am i the only one that having this issue? Link to comment Share on other sites More sharing options...
Recommended Posts