Hi, I did a search and didn’t see any previous threads on this - we utilize cart transform for one of our apps, and we would like to be able to allow for also updating the line item’s product cost as part of the cart transform.
The use case is we have a POS app where merchants can update the price of a line item, and in some cases they are looking to also hard-code a specific cost for that line item for financial reporting purposes.
We intend to keep it as a feature exclusive to Plus shops for now.
However, if we get enough feedback, we may consider making lineUpdate available for other plans in the future. No promises though.
Thanks for sharing the link. It refers to the product price update, which we’re already using successfully. For this scenario, however, we need to update the product’s cost rather than its price. Could you let us know if there’s a way to handle that?
We intend to keep it as a feature exclusive to Plus shops for now.
However, if we get enough feedback, we may consider making lineUpdate available for other plans in the future. No promises though.
Please consider making lineUpdate available for other plans as well. We currently have an app in the App Store that manages dynamic pricing by creating variants on the fly.
When a product has numerous configurations that influence the price, it’s impossible to pre-generate all possible variants. This means we must create variants dynamically while the user is on the product page. Currently, there is a 10–30 second delay before Shopify reflects these new variants in the cart. To bridge this gap, we’ve had to implement custom JavaScript workarounds in themes to display the correct price—a hurdle we’ve been dealing with for over 5 years because Shopify doesn’t allow cart line price updates.
This feature is particularly vital for print-on-demand and custom printing shops, many of whom cannot afford the Shopify Plus tier. Making this available for all plans would be a game-changer for these merchants. We would truly appreciate you reconsidering this!
To make sure I’m understanding correctly, could you share a quick example of the current behavior versus the expected behavior? Since lineUpdate.price is used to update the line’s cost, it sounds like it may already be working as you intended.
Hi @Paige-Shopify we are referring to cost which is different than price (i.e., what affects Cost of Goods Sold financial reporting). Ideally we would like a way to specify a custom product cost during the cart transform.
And yes, chiming in that we would also greatly appreciate lineUpdate being available for other plans as well. Ours is a Shopify POS app and lineUpdate makes everything looks much cleaner in the POS cart vs. lineExpand.
We have merchants who sell custom / one-off items, for example a shoe store, and they use our app to enter that specific’s product price each time they check out, and the margins may vary depending on the shoe. Because of this, they have requested the ability to also input a specific product cost for a given line item which would flow through to cost of goods reporting.
Sorry for the delay. I looked into this and found that the Cart Transform API wasn’t designed to support this kind of use case. The best solution I can think of for this is to actually create new variants/products on the fly, rather than manipulating existing variants/products.