Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello,
I'm using a Shopify template that uses JSON for the pages instead of .liquid extension. I'm trying to create a 'deals' page using a JSON if/then else logic (see attached csv) that prompts the customer to create an account to see the deals.
Following a tutorial that creates this as a page.liquid file, I think I'm close but not sure about the last else statement. This JSON code validates in a JSON validator, but not in Shopify as a page. The errors I'm getting in Shopify are:
Unable to update the file
unknown key 'if'
unknown key 'then'
unknown key 'else'
missing required key 'sections'
missing required key 'order'
The page I'm trying to point them to with the last else statement is: https://www.allendesignsstudio.com/account/login
Can anyone tell me if I'm coding this correctly?
Thanks, Margie
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025