CartLineItem
- Object
Represents a line item in a cart, which includes details about the product, variant, and any associated discounts.
Each line item contains information such as the product name, variant details, total price, and any applicable discounts. This allows for detailed tracking of items within a cart, including their pricing and discount applications.
Fields
- •String!
The name of the product
- •String!
Retrieves the slug of the product associated with a cart line item. This is useful for generating URLs or displaying product information.
- •String!
Retrieves the SKU (Stock Keeping Unit) of the variant associated with a cart line item. The SKU is a unique identifier for the variant, often used for inventory management.
- •TaxBehavior!
Gets the tax behavior of the cart line item, which indicates how taxes are applied to the item.
- •TaxRate
Retrieves the tax rate applied to the cart line item. This may be null if the line item does not have a tax rate defined.
- •TaxedPrice
Gets the taxed price of the cart line item. This may be null if the cart does not yet have a taxed price.
- •UnitPrice!
Retrieves the unit price of the cart line item.
- •String!
Retrieves the name of the variant associated with a cart line item. This is useful for displaying the specific variant details to the user.