vlivius1 Posted March 6, 2015 Share Posted March 6, 2015 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 More sharing options...
fred-vinapresta Posted March 6, 2015 Share Posted March 6, 2015 Hi, i think you need to create an ajax function if you want to use Cart class when staying on product page. What is exactly the action that enable the price calculation? a submit button? Link to comment Share on other sites More sharing options...
vlivius1 Posted March 6, 2015 Author Share Posted March 6, 2015 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. Here is an example - http://glafuriproflux.ro/glafuri-pvc/8-glaf-de-pvc-pentru-exterior-alb.html 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