Skip to content
Advertisement

Display price based on User selection

I can’t seem to get the price to display on the page with image. The correct image displays and the correct price is passed to PayPal, but I can’t get price based on the selection to display with the image.

JavaScript
JavaScript

I can not seem to get the price to display on the page with image. The correct image displays and the correct price is passed to PayPal, but I can’t get price based on the selection to display with the image.

Advertisement

Answer

The price is stored in $(“input[name=’amount’]” ).val()

You put the function CalculateOrder() in the JQuery .change(). So, when a select in changing, it calculate the new price.

And you apply the class “payment_form” to all the < select > you want that trigger the calculation.

King regards.

_Teddy_

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement