mirror of
https://github.com/FranP-code/API-and-CRUD-for-Ecommerce-with-Node.js-FRONTEND.git
synced 2025-10-12 23:52:33 +00:00
payment logic done
This commit is contained in:
10
payment/script/calculateTotal.js
Normal file
10
payment/script/calculateTotal.js
Normal file
@@ -0,0 +1,10 @@
|
||||
const calculateTotal = (totalPrice) => {
|
||||
|
||||
const totalElement = document.querySelector(".column.second-column h3 span")
|
||||
|
||||
console.log(totalElement)
|
||||
totalElement.innerText = totalPrice
|
||||
|
||||
}
|
||||
|
||||
export default calculateTotal
|
||||
Reference in New Issue
Block a user