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

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 website in this project given to me. the total function should be updated whenever a product is added to basket. that total function is what the checkout button should check if the total is more than 1,000. an alert function should write the total multiplied by 0.10 extra for delivery. Below are the images. please help me
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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!