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
16375 2441 3190

@Xythia 

Hi,
please can you share your store URL

Hire us | Pass Core Web Vital | B2B Wholesale Experts | Claim Your Free Website Review |
Connect with Us: WhatsApp | Skype: oscprofessionals-87 | Email: pallavi@oscprofessionals.com |
Custom Shopify SolutionsPrivate Apps, Theme Customization & SEO | Digital Marketing |
OSCP Apps: Discount Suite | Wholesale App | Bundle & Upsell | Shipping Discount | and more...
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