Solved

Changing cart data

rishad45
Shopify Partner
12 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
15792 2363 3069

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 | 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

View solution in original post

Reply 1 (1)

oscprofessional
Shopify Partner
15792 2363 3069

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 | 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