matteo.enter Posted March 30, 2016 Share Posted March 30, 2016 Hi,I insert the attributes into the tables with a script in php that reads it from an ascii file.If I generate the product combinations with another script in php I have no problem, but if I use the prestashop product combinations generator i have this error when I select attributes to generate the combinations: ReferenceError: i18n_tax_exc is not definded I see into "attributes.js" this lines : function create_attribute_row(id, id_group, name, price, weight){ var html = ''; html += '<tr id="result_'+id+'">'; html += '<td><input type="hidden" value="'+id+'" name="options['+id_group+']['+id+']" />'+name+'</td>'; html += '<td>'+i18n_tax_exc+'<input id="related_to_price_impact_ti_'+id+'" class="price_impact" style="width:50px" type="text" value="'+price+'" name="price_impact_'+id+'" onkeyup="calcPrice($(this), false)"></td>'; html += '<td>'+i18n_tax_inc+'<input id="related_to_price_impact_'+id+'" class="price_impact_ti" style="width:50px" type="text" value="" name="price_impact_ti_'+id+'" onkeyup="calcPrice($(this), true)"></td>'; html += '<td><input style="width:50px" type="text" value="'+weight+'" name="weight_impact_'+id+'"></td>'; html += '</tr>'; return html;} but i dont understand why this variable is not set!! Can you hel me please?Thanks!!Regards Link to comment Share on other sites More sharing options...
TiaNex Shopping Posted March 31, 2016 Share Posted March 31, 2016 if there is no value for some variables,or js error,may cause this error, i have experienced once Link to comment Share on other sites More sharing options...
matteo.enter Posted March 31, 2016 Author Share Posted March 31, 2016 solutions? Link to comment Share on other sites More sharing options...
TiaNex Shopping Posted March 31, 2016 Share Posted March 31, 2016 solutions? one more problem, make sure your scripts work in the right context (loading product or other object) it will show the same error, when you just /admin/index.php?controller=AdminAttributeGenerator&token=28a5934743536e3f1xxx it's the right url with product id index.php?controller=AdminAttributeGenerator&id_product=1000&attributegenerator&token=28a5934743536e3f11a323021fcexxx 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