Jump to content

Send variable with post method to cart.php


Recommended Posts

In product.tpl page I made a hidden input in an existing form. To this hidden input assign the value of JS after calculating the price depending on length of the product. I want that value of the hidden input to  sent by post to CartCore ObjectModel extends from cart.php file, in order to make calculations for length of the product. How can I do this.

 

 

Sorry for typos

Thank You
Link to comment
Share on other sites

Hi,

 

When I select the dropdown width attribute, then display a text input which can enter the product length. Calculate the price with keyup on that input. I want the value entered by the client to pass on through the class of cart.php submit. In that class just have to make multiplying that value, we tested with a fixed value and cart working properly.
 
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...