I how can we change the price on product page based on a text box on the product page. Example of what I am thinking is if I have a text box on product page then my price should be base price multiplied by the value entered in the textbox. Qty box is different from the another text box and price will depend on both.

Thank you


You have to use jQuery for the calculation based on quantity.

        var qty = this.value;
        var price=/***Your calculation***/
           jQuery('.price').html(price); /******Now update the HTML*******/
  • It should not only work in frontend it should also work on cart page – Bhargav Mehta Feb 11 '16 at 4:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.