◆ AddVariant()
Adds a variant to the cart
- Parameters
-
variant | The variant to add to the cart |
product | The product the variant belongs to |
◆ ClearCart()
void Shopify.UIToolkit.CartController.ClearCart |
( |
| ) |
|
|
inline |
Clears all items from the cart
◆ RemoveVariant()
Removes a variant from the cart.
- Parameters
-
variant | The variant to remove from the cart |
product | The product the variant belongs to |
◆ StartPurchase()
void Shopify.UIToolkit.CartController.StartPurchase |
( |
CheckoutMode |
mode | ) |
|
|
inline |
Start a purchase with the current cart.
- Parameters
-
mode | How do you want to make the purchase? Native, Web or Auto |
◆ UpdateVariant()
void Shopify.UIToolkit.CartController.UpdateVariant |
( |
ProductVariant |
variant, |
|
|
Product |
product, |
|
|
long |
quantity |
|
) |
| |
|
inline |
Sets the variant to the specified quantity in the cart.
- Parameters
-
variant | The variant to modify |
product | The product the variant belongs to |
quantity | The desired quantity |
The documentation for this class was generated from the following file:
- Assets/Shopify/UIToolkit/ShopControllers/Classes/CartController.cs