Jump to content

Prestashop 1.6.1.4 : product combination generator


matteo.enter

Recommended Posts

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!! :huh2: 

 

Can you hel me please?
​Thanks!!
​Regards

 

Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...