Jump to content

change product price after clicking add to cart


shpetimi

Recommended Posts

I need to send 2 values, which I fetch with jquery .val() function. To the Cart controller or Product class into the priceCalculation() static function. In the javascript side I have done everything and it works perfectly because the price is calculated based on a formula from 2 dropdown selected options. But with days I am struggling to get the add the product into cart with the price calculated with javascript. as I understand the priceCalculation() function inside the product.php class calculates the price for cart, invoice etc. So I guess here I should fetch the 2 values and calculate the custom price. Anyone can help me please?

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...