v0.30: product pages, categories, sale prices and order status timeline
This commit is contained in:
@@ -37,7 +37,7 @@ func (r *OrderRepository) Create(ctx context.Context, order *models.Order, items
|
||||
_, err = tx.Exec(ctx, `
|
||||
INSERT INTO order_items (order_id, product_id, product_name, price, quantity)
|
||||
VALUES ($1, $2, $3, $4, $5)
|
||||
`, order.ID, item.ProductID, item.Product.Name, item.Product.Price, item.Quantity)
|
||||
`, order.ID, item.ProductID, item.Product.Name, item.Product.EffectivePrice(), item.Quantity)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user