Przejdź do głównej zawartości

cartAddLines

Add one or more lines to the cart. Adding the same variant a second time merges into the existing line (sums the quantity). Returns the full updated cart plus any non-fatal warnings (e.g. stock dropped below requested quantity).

cartAddLines(
id: ID!
lines: [CartLineInput!]!
): CartAddLinesPayload!

Arguments

cartAddLines.id ● ID! non-null scalar

Cart UUID to add lines to

cartAddLines.lines ● [CartLineInput!]! non-null input

Lines to add — each one variant + quantity (+ optional attributes / selections)

Type

CartAddLinesPayload object

Result of cartAddLines.