Mutate Product Price On Storefront

Hi Shopify Community,

I want to charge an insurance fee from my customers on my Shopify store. I’ve created a Shopify Function that calculates 10% of the cart subtotal and applies it as an insurance fee. Currently, I’m using the Cart Transform where I’ve created a product in the backend with a price of 0, and I’m dynamically updating its price to 10% of the subtotal.

The problem is that Update Operations in Cart Transform only work on the Shopify Plus plan, but I’m on the Shopify Basic plan.

I’m looking for a way to implement this functionality using themes or storefront scripts so that it works on all Shopify plans.

Any guidance or solutions would be greatly appreciated.