New Shopify Certification now available: Liquid Storefronts for Theme Developers

Changing cart data

Shopify Partner
10 0 1

I am building an app for creating some custom fields in the product page. So, I want to change the subtototal in cart page based on that custom data's. Can I use functions for achieving this?. Is there any other methods?

Reply 1 (1)
Shopify Partner
15736 2353 3051

Hello @rishad45 : Shopify functions presently have limitations and it applies discount strategy so you shall look at that.

Shopify function results will be displayed on checkout page and not on cart page.


On cart page you need to apply some JS tricks based on cart data and product meta data.

Get pass your Store Core Web Vital Free Speed Optimization Audit, Chat on WhatsApp | Skype : oscprofessionals-87 | Email: | Custom Pricing Wholesale App : Free | Hire us | Guaranteed Site Speed Optimization | Website Free Audit | Shopify Theme Customization | Build Shopify Private App | Shopify SEO | Digital Marketing