Store products in a basket, display list of products in basket
This commit is contained in:
1 parent
b577ddf47d
commit
dff6992db3
10 files changed
+161
-45
No files matched your search
@@ -0,0 +1,5 @@
|
||||
import { ProductModel } from "@/data/models/productModel";
|
||||
|
||||
export function calcProductPrice(product: ProductModel): number {
|
||||
return Math.round(product.price * ((100 - product.discount) / 100) * 100) / 100
|
||||
}
|
||||
Reference in new issue
Block a user