Recalculate price of product in cart

JoshTag
New Member
2 0 0

Hi everyone,

Im currently trying to implement a feature for a client where the price of a product changes based on the total cart amount.

For context, he would like to add shipping insurance as a product and recalculate the cost as a percentage for the total cart amount.

Is this functionality possible to implement? He also does not want to use an app  to implement this type of thing.

Any help would be much appreciated, thanks!

0 Likes
KetanKumar
Shopify Partner
14031 1635 5029

@JoshTag 

Sorry for facing this issue, it's my pleasure to help us.

Welcome to the Shopify community!
and Thanks for your Good question.

Please share your site URL,
So I will check and provide a solution here.

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Expert | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
JoshTag
New Member
2 0 0

Thanks for the reply @KetanKumar !

I think I figured out a solution to this. 

Instead of recalculating the price of the shipping insurance in the cart, I would create variants of the shipping insurance and remove and add the insurance based on the total cart price. 

I think I'm on the right track here and have part of the functionality working, but if you think there is something I'm missing I'd love to discuss it! 

0 Likes