Cart Transform API Limitations/Issues/Opportunities (Customer Account Order | Notifications | Liquid)) #541
Replies: 3 comments
-
We're also hitting problems related to this issue - if a customer has multiple bundles in their cart, there's no way to discern what lines belong to which bundle unless we add own own line item property on 'add'. |
Beta Was this translation helpful? Give feedback.
-
There is an issue with the cart transform function today: it shows the line item attributes on the original line item before transformation but goes away after checkout since that original line item before transformation with the attributes gets removed after checkout: the checkout page should hide all line item attributes of the original parent line item if they are expected to go away after checkout. |
Beta Was this translation helpful? Give feedback.
-
Is there also any easy way to show the total breakdown of the subitems inside of the bundle with checkout extensibility? I tried to do that but there is only |
Beta Was this translation helpful? Give feedback.
-
The intention of this discussion is to show the current opportunities/issues/limitations I found when using the Cart Transform API to create Customized Bundles.
Just to clarify, when I say "Customized Bundle", I'm talking about the bundles created with Shopify Functions when executing Merge/Expand Operations in the Cart.
I'm going to try to be as clear as possible, so that is why I divided my comments in sections below:
Admin Orders
Example of the current Admin view:
Example of an order in the Shopify Admin
✅ Expected:
Example of an order in the Thank You Page
💡Suggestions: Maybe include a toggle button to view just the individual line items VS the bundled item as per Checkout (Which is what the customer viewed).
New Customer Accounts VS Order page
Below is an example of a Thank You Page view that contains a product where an expand operation was executed. This is very clear for the customer:
The Order Summary at Checkout shows the same visual.
If the customer refreshes the page, they are redirected to the New Customers Account Order (Even if this has not being enabled in the store, or at least this happens on my dev store) page. And in this view, this is what the customer sees:
New Customer Accounts Order View
Limitations
✅ Expected behaviour:Display the Order Summary items in the New Customer Accounts Order the same way as per Checkout and Thank You Page.
💡 Suggestions: If the current behaviour might be needed for some merchants, then allow an additional setting in the Customers Account Admin to enable or disable the option to Group the "bundled items" in the Order view.
GraphQL / Rest / Theme Liquid / Notifications Liquid / Inconsistencies
Theme Liquid VS Notifications Liquid VS GraphQL properties:
The Customer Order Confirmation notification liquid code (by Shopify) has the following code:
Order Confirmation line.group in use.
That code is the one displaying the "Part of [Bundle product title]" under line items when the item is part of a bundle.
Based on that, I found the follwing:
📝Note 1: GraphQL does have a similar object as per Notifications Liquid called LineGroup, see offical docs here.
📝Note 2: We do have access to line_items.item_components in liquid (Only when in Cart object), which is similar to the lineComponents field in the ComponentizableCartLine Object
✅Expected behaviour: line_item in the Theme Liquid should have access to the group property so we can replicate similar functionality in the templates/customers/order.liquid file
Storefront / Liquid / Theme files
From the above points, you can see in the Order Confirmation Notification Email and New Customers Account Order view, the customer is able, at least, to see a "Part of: [Bundle product]" text that gives a little bit more information to where that item is coming from.
However, In the template/customers/order.liquid file we are not able to replicate that behaviour.
Without the line_item.group we are not able to replicate in Liquid the same visuals in the New Customer Accounts Order view or the Order Confirmation Notification email.
Improve Documentation
It would be great to improve some of the documentation in Shopify in relation to Bundles.
For example: It seems that when you run an expand cart transform, the cartLineId where the expand operation is executed is not added as a line item to the cart. When the checkout is completed and you review the items.
📝Note: I have tried to get this and failed. When I click on the "Part of [Bundle product]" in the Admin order line item, I get redirected to the bundle product page. But If the product came from a "Customized Bundle", the inventory is not updated. Now for "Fixed bundles", or at least the ones I tested using the official Bundle app by Shopify, this one does show and Inventory but is based on the components inventory which is not the case for "Customized Bundles".
Beta Was this translation helpful? Give feedback.
All reactions