Liquid, JavaScript, themes, sales channels
To continue receiving payouts, you need to secure your account by turning on two-step authentication. If two-step authentication is not turned on your payouts will be paused. Learn more
I have a page in a shop i've been working on that displays a size guide for the types of products available.
I would like to insert a modal in the product page that opens with the contents of the afromentioned page.
Implementing the modal itself is not that hard, but is there any way to import the contents of the page into the modal instead of copying them directly so that any change to the page are also reflected in the modals content?
Any help is apreciated.
Best regards
Solved! Go to the solution
This is an accepted solution.
Hi @heyitslamer,
Yes, you add it for sections schema. And get it with variable: {{ section.settings.page.content }}
Or can you send me the full code of the file. I will check it.
Hi @heyitslamer,
If you have experience with Liquid code you can use declarative: "type": "page"
Ex:
{
"type": "page",
"id": "page",
"label": "page"
}
it is declared in the schema of the section.
Hope it clear to you.
Ty for the relply,
I definetely lack experience with Liquid. Do i just insert that piece of code in the sections schema? Or do i need something else to to tell the section which page i want?
This is an accepted solution.
Hi @heyitslamer,
Yes, you add it for sections schema. And get it with variable: {{ section.settings.page.content }}
Or can you send me the full code of the file. I will check it.
I was able to finish the modal with your sugestion, tysm.
Best regards.
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022