wip itemvariant
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user