Questions, feedback, and updates on the new online store design experience
Hi, I was trying to render a section on a product page, but I noticed that if the section has blocks and the section is in a JSON template, it renders the section but the section.blocks is empty
Same problem,
I was wanting to include a page within a popup in another page, by using {{ pages.test-page.content }}, but this code doesn't render content from the json template that's assigned to the page.
Same problem on the cart page
Try to fetch the section as follows:
<script>
async function renderSection() {
var appendToBody = await fetch(`/?sections=your-section-name&optional-key=optional-value-to-pass`)
.then(response => response.json()) // It returns a promise which resolves with the result of parsing the body text as JSON.
.then(data => {
$('body').append( data["key-of-your-JSON"] ); // Append the contents to the body with JQuery
});
}
</script>
and then call this function.
Same problem when i create a quick-view template
Any solution?
As a business owner, have you ever wondered when your customer's first impression of yo...
By Skye Jun 6, 2023We're excited to announce improvements to the threaded messaging experience in our communi...
By TyW May 31, 2023Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023