more cart
This commit is contained in:
@@ -185,10 +185,11 @@ func parseCartID(r *http.Request) (uint64, bool) {
|
||||
|
||||
func cartGrainToResponse(id string, g *cart.CartGrain) CartResponse {
|
||||
resp := CartResponse{
|
||||
Id: id,
|
||||
Items: make([]CartItem, 0, len(g.Items)),
|
||||
Totals: Totals{Currency: g.Currency},
|
||||
Status: "active",
|
||||
Id: id,
|
||||
Items: make([]CartItem, 0, len(g.Items)),
|
||||
Totals: Totals{Currency: g.Currency},
|
||||
Status: "active",
|
||||
AppliedPromotions: g.AppliedPromotions,
|
||||
}
|
||||
if g.CheckoutStatus != nil && *g.CheckoutStatus != "" {
|
||||
resp.Status = string(*g.CheckoutStatus)
|
||||
|
||||
Reference in New Issue
Block a user