wip itemvariant

This commit is contained in:
2025-03-04 16:42:59 +01:00
parent d24dfdf262
commit a65ba9c98c
9 changed files with 116 additions and 20 deletions

View File

@@ -137,7 +137,7 @@ func (rc *cartItemController) CartItemView(c *gin.Context) {
priceTotal := 0.0
for _, cartItem := range cartItems {
priceTotal += (float64(cartItem.Quantity) * cartItem.ShopItem.Price)
priceTotal += (float64(cartItem.Quantity) * cartItem.ShopItem.BasePrice)
}
fmt.Println("PRICE TOTAL", priceTotal)