Creating a checkout form that displays the total cost of products, subtotal, GST cost, delivery cost, and overall price. The goal is to calculate the total by adding together the costs of all products with the "price" class (may need ids) at a 15% increase from the subtotal plus delivery.
The checkout form layout may include irrelevant styling inherited from the website's page.
I would appreciate advice on implementing this functionality. I believe assigning ids to each product, using getElementById to retrieve values, and calculating the total amount would be the way to go, but not sure how to execute it.
<head>
<link href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css'>
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
</head>
<main>
<div class='payment-form'>
<div class='checkout-tabs'>
<div class='details-field'>
<div class='details-inputs'>
<h3>Accepted Payment Methods</h3>
<div class="icon-container">
<i class="fab fa-cc-visa"></i>
<i class="fab fa-cc-mastercard"></i>
<i class="fab fa-cc-apple-pay"></i>
<i class="fab fa-cc-amazon-pay"></i>
<i class="fab fa-cc-paypal"></i>
</div>
<label><i class="fa fa-user"></i> Full Name</label><input class='input-field ' type="text" placeholder="John Doe">
<label><i class="fa fa-phone-alt"></i> Phone Number</label><input class='input-field ' type="text" placeholder="(###) ###-####">
<label><i class="fa fa-envelope"></i> Email</label><input class='input-field ' type="text" placeholder="john@example.com">
<label><i class="fa fa-institution"></i> City</label><input class='input-field ' type="text" placeholder="San Francisco">
<table class="half-input-table">
<tr>
<td>
<label for="Country"><i class="fa fa-globe"></i> Country</label><input class='input-field ' type="text" id="Country" name="Country" placeholder="USA">
</td>
<td>
<label for="zip"><i class="fas fa-map-marker-alt"></i> Zip Code</label><input class='input-field ' type=&ldqu...;