Shopify Tutorial - Cart Transform Shopify Function
Stacking Context - Shopify Development Tutorials Stacking Context - Shopify Development Tutorials
2.22K subscribers
6,950 views
144

 Published On Feb 5, 2024

In this video we are going to see the Cart Transform Shopify Function. With this function we will be able to do things such as mix-and-match bundles, adding an item for free to the customer's cart when they purchase certain item, dynamic discounts and much more.

Resources
• Shopify Cart Transform API Overview - https://shopify.dev/docs/api/function...
• Shopify API Access Scopes - https://shopify.dev/docs/api/usage/ac...

Timestamps
00:00 - Introduction
03:34 - Cart Transform Operations
04:27 - Merge Operation - Setting Up The Data
05:45 - Getting the parentVariantId
06:49 - Building the Frontend Bundling Logic
13:58 - Merge Operation - Querying the data in run.graphql
15:00 - Merge Operation - Function Logic
17:27 - Installing The Cart Transformer Function
18:07 - Enabling The Function Using cartTransformCreate
19:24 - Updating The App's Scope Using
20:40 - Using The Merge Operation
21:14 - Merge Operation - Adding a Discount
21:55 - Merge Operation - Changing The Title
24:17 - Showing The Item Components In The Cart
25:44 - Merge Operation - Changing The Image
28:49 - Seeing Function Errors
30:58 - Console.log in Shopify Functions
31:20 - The Expand Operation
32:10 - Expand Operation - Updating The Query
33:05 - Multiple Cart Operation Targeting The Same Line Item
33:40 - Expand Operation - Function Logic
36:50 - Expand Operation - Updating The Title
37:39 - Expand Operation - Updating The Price
39:44 - The Update Operation
41:39 - Orders With Update Operations
42:16 - Orders With Merge Operations
42:50 - Orders With Expand Operations

show more

Share/Embed