Re: Changing cart data

Solved

Can I modify cart subtotal with custom data in an app?

rishad45
Shopify Partner
13 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?

Accepted Solution (1)

oscprofessional
Shopify Partner
16022 2401 3107

This is an accepted solution.

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: pallavi@oscprofessionals.com | Hire us | Guaranteed Site Speed Optimization | Website Free Audit | Shopify Theme Customization | Build Shopify Private App | Shopify SEO | Digital Marketing | Oscp Upsell & Cross sell App : Free | Oscp Sales & Volume Discount App : Free | Custom Pricing Wholesale App : Free

View solution in original post

Reply 1 (1)

oscprofessional
Shopify Partner
16022 2401 3107

This is an accepted solution.

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: pallavi@oscprofessionals.com | Hire us | Guaranteed Site Speed Optimization | Website Free Audit | Shopify Theme Customization | Build Shopify Private App | Shopify SEO | Digital Marketing | Oscp Upsell & Cross sell App : Free | Oscp Sales & Volume Discount App : Free | Custom Pricing Wholesale App : Free