How to dynamically create subtotal based on QTY & Variant selected?

How do I create a subtotal based on the QTY & Variant selected?

At the moment I am using the theme’s built-in function - however, it isn’t consistent when other scripts are running.

The code is where “”
https://odiip5jwlgwipoxk-80878764353.shopifypreview.com

Hi @leehaverford ,

We’ve carefully checked your website and found the problem quite complicated. So we suggest hiring a developer.

It’s what we can help with an optimal solution. If you need help from our expert, kindly share your request with us via Shopify experts: https://experts.shopify.com/bss-commerce/services?utm_source=Shopify+Community&utm_medium=Post+reply&utm_campaign=_

We will check it and give you a detailed solution. We’re looking forward to working with you.