Answered step by step
Verified Expert Solution
Link Copied!

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
image text in transcribed
image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Postgresql 16 Administration Cookbook Solve Real World Database Administration Challenges With 180+ Practical Recipes And Best Practices

Authors: Gianni Ciolli ,Boriss Mejias ,Jimmy Angelakos ,Vibhor Kumar ,Simon Riggs

1st Edition

1835460585, 978-1835460580

More Books

Students also viewed these Databases questions

Question

(126.41molg)(0.82mLg)(103L1mL)=

Answered: 1 week ago

Question

Create a workflow analysis.

Answered: 1 week ago