Re: Can I access a schema setting from theme.js?

Solved

Can I access a schema setting from theme.js?

Xythia
Shopify Partner
18 2 0

Pretty much like the title says.

 

I'm using debut and I got two checkboxes in the schema part of collection-template.liquid.

I got two tag filters that are codependent.

Now in order for my filters to work if I disable one of them, I need to access the checkbox and see if it is checked or not. However I have yet to find a working solution as to how I get the value to theme.js

Is this even possible?

Accepted Solution (1)
Xythia
Shopify Partner
18 2 0

This is an accepted solution.

No worries, already solved it taking help from Shopify's guide for variantStock and some previous code. Kinda missed the part where I had to send it from the liquid file to theme.liquid before I could use it in theme.js

View solution in original post

Replies 2 (2)

oscprofessional
Shopify Partner
16115 2409 3121

@Xythia 

Hi,
please can you share your store URL

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
Xythia
Shopify Partner
18 2 0

This is an accepted solution.

No worries, already solved it taking help from Shopify's guide for variantStock and some previous code. Kinda missed the part where I had to send it from the liquid file to theme.liquid before I could use it in theme.js