Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started