Question: Hello. Please i need a javascript function code to calculate the total cost if its more than 1,000 when checkout button is clicked in the

Online Shopping Form Total cost of the selected item should appear with the total number of all selected Items: Total: The price for each product regarding properties may vary but you need to multiply the product price with the selected units (i.e. assume that 3 units of "Product 1 " with "Property 3 " and 2 units of "Product 4 " with "Property 1" is selected; then the Total = (price of Product 1 for Property 3)3+ (price of Product 4 for Property 1)2. Total cost is the summation of selected items' cost and it should appear after the "Checkout" button is clicked. If the total cost is more than $1000, then delivery cost will not be applied; otherwise 10% delivery cost will be calculated (= total cost 0.10) and added to the total cost
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
