ranjsarraj Posted April 1, 2014 Share Posted April 1, 2014 Hi there both product.js and var productAvailableForOrder is loaded as they should but when I goto http://amabox.com/home/5041-test-image-attribute.html and change the attribute (which should effect the price, Quantity, etc) it gives me Uncaught ReferenceError: productAvailableForOrder is not defined in the debugger and no info got updated I hope someone got the answer Best Ranj Link to comment Share on other sites More sharing options...
NemoPS Posted April 2, 2014 Share Posted April 2, 2014 Can you check that productAvailableForOrder is defined inside product.tpl? var productAvailableForOrder = {if (isset($restricted_country_mode) AND $restricted_country_mode) OR $PS_CATALOG_MODE}'0'{else}'{$product->available_for_order}'{/if}; Link to comment Share on other sites More sharing options...
ranjsarraj Posted April 2, 2014 Author Share Posted April 2, 2014 Yes :-( As I said, the code is there and it set to 1 in the source-code :-( Link to comment Share on other sites More sharing options...
NemoPS Posted April 2, 2014 Share Posted April 2, 2014 What happens if you try with alert(productAvailableForOrder) right at the beginning of product.js? Or console.log Link to comment Share on other sites More sharing options...
Enrique Gómez Posted April 2, 2014 Share Posted April 2, 2014 A possible explanation is that combinationImages[0][0] = ; produces a js error, so the problem with the images can cause the malfunction of almost every js function because the global variables are not loaded var productPriceWithoutRedution = '30'; var productPrice = '30'; // Customizable field var img_ps_dir = 'http://amabox.com/img/'; var customizationFields = new Array(); customizationFields[0] = new Array(); customizationFields[0][0] = 'img0'; customizationFields[0][1] = 0; // Images var img_prod_dir = 'http://amabox.com/img/p/'; var combinationImages = new Array(); combinationImages[0] = new Array(); combinationImages[0][0] = 0; combinationImages[0] = new Array(); combinationImages[0][0] = ; combinationImages[0][1] = ; combinationImages[0][2] = ; 2 Link to comment Share on other sites More sharing options...
ranjsarraj Posted April 3, 2014 Author Share Posted April 3, 2014 A part of my problem was the image (thanks to Enrique Gómez) The rest I guess is due to some modification I had made, will double check and update this post ;-) 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