Jump to content

Recommended Posts

 

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?

Edited by brys (see edit history)

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More