paciocco Posted February 29, 2012 Share Posted February 29, 2012 Hello all. I have entered attribute information for all of my products so that there are three different quantity sizes (single item, 5 pack, 20 pack) for each product, and the appropriate drop down box does appear on the product page. However choosing one of the options in the drop down menu has no effect. If 5 pack is chosen (20 pack is default) the price doesn't change as it should and adding the product to the cart adds the default attribute. Firebug shows this error if I try to change the option in the drop down menu: "productAvailableForOrder is not defined" Ideas where I've gone wrong? Example page with error: http://cigarloversun...es-natural.html Link to comment Share on other sites More sharing options...
tomerg3 Posted February 29, 2012 Share Posted February 29, 2012 Looks like a problem with your theme. productAvailableForOrder should be defined in product.tpl You can either compare your product.tpl to a default one from your PS version, and copy that variable. Or delete that part of the code (that trows the error in product.js). The first option is much better, just remember to clear your smarty cache after changing the .tpl file. Link to comment Share on other sites More sharing options...
paciocco Posted March 2, 2012 Author Share Posted March 2, 2012 Thanks for the help Tomer, really appreciate it. I couldn't find the specific error, so I just swapped out my theme's product.tpl for the original prestashop one, and that worked a trick. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now