Hello!
The cart transform function was recently updated to add an update functionnality. I believe this feature originates from this github discussion.
This feature allows for dynamic pricing and cart images in a much more elegant way than the current possibilities.
Here is a list of some current possible ways to do dynamic pricing and their drawbacks.
Creating new variants before adding to cart
With this method you create a variant with the calculated price dynamically uppon adding to cart.
- The 100 variants limit requires you to either delete old variants when you reach the limit, or create multiple products that models a single one.
- Deleting old variants can create problems if people already have it added to their cart.
- Creating multiple products is a lot of work in order to retrieve an existing price if it has been created and it requires a lot of code to hide the extra products from the store. It also messes with the analytics.
- Dynamic variants makes it almost impossible to correctly integrate with inventory management and all the other features that are handled by variants (weight, barcodes, etc)
- There is an ongoing bug (2+ years) where new variants will sometimes show up as 0$ in the cart.
Extra price product
Having a product with it’s price set as 0.01$ and you add it to the cart as many times as the difference between the base price of the product and the dynamic price.
- Shopify offers no easy way to hide a product so there is work involved with hiding this extra price product from the store.
- The orders and analytics become messy because of the extra price product.
Discounts
This method implies settings the base price of the product to the maximum possible dynamic price and then adding a discount dynamically to set the correct price.
- The product will display the maximum price which is not good for conversion unless you do manual work in the theme files.
- Showing discounted products in the cart can bring a lot of confusion for customers.
- Probably a lot of other drawbacks.
We truly believe that dynamic pricing is a core feature of ecommerce and should not require a Shopify Plus plan to access it. Having the app developers make the decision of only making their apps available to Shopify Plus users is really a double edge sword because we cut our user base by so much.
Thank you!