Jump to content

Edit History

brys

brys

 

In Prestashop 1.7.5 I added in my module 3 fields type input: price, width and height which I display on the product page in the displayProductAdditionalInfo hook.

Now I want to send them to the ProductController. In my javascript, after changing the values in the above fields,

I call prestashop emit on the onchange event

prestashop.emit('updateProduct',

{ reason: {

    price: price,

   width: width,

   height: height

 }

});

This calls the product controller but only sends id_product and quantity - qty

 

I would like to send my input: price, width and height?

brys

brys

 

In Prestashop 1.7.5 I added in my module 3 fields input price, width and heiht which I display on the product page in the displayProductAdditionalInfo hook.

Now I want to send them to the ProductController. In my jas script, after changing the values in the above fields,

I call prestashop emit on the onchange event

prestashop.emit('updateProduct',

{ reason: {

    price: price,

   width: width,

   height: height

 }

});

This calls the product controller but only sends id_product and quantity - qty

 

I would like to send my input: price, width and height?

brys

brys

 

I added in my module 3 fields input price, width and heiht which I display on the product page in the displayProductAdditionalInfo hook.

Now I want to send them to the ProductController. In my jas script, after changing the values in the above fields,

I call prestashop emit on the onchange event

prestashop.emit('updateProduct',

{ reason: {

    price: price,

   width: width,

   height: height

 }

});

This calls the product controller but only sends id_product and quantity - qty

 

I would like to send my input: price, width and height?

×
×
  • Create New...