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
18 lines
380 B
JavaScript
18 lines
380 B
JavaScript
import logoLink from './logoLink.js'
|
|
logoLink()
|
|
|
|
import getOrderData from './getOrderData.js'
|
|
const order = getOrderData()
|
|
|
|
if (order === null || order === {}) {
|
|
|
|
window.location = '../'
|
|
}
|
|
|
|
console.log(order)
|
|
|
|
import putOrderInHTML from './putOrderInHTML.js'
|
|
const totalPrice = putOrderInHTML(order)
|
|
|
|
import calculateTotal from './calculateTotal.js'
|
|
calculateTotal(totalPrice) |