No content to show
User Activity
Like the title, with this liquid code on collection page: {%- for filter in collection.filters -%}
<div>{{ filter.label }}</div>
{%- endfor -%} On Theme Editor: <div>Availability</div>
<div>Price</div>
<div>Product type</div>
<div>Brand</div> But...
08-03-2021
HeyYour API call is a request for a homepage's section! So, obviously, it has no product/collection dataWith section rendering, if you want to add product/collection context simply call fetch(`/products/your-product-handle?section_id=your-section-id`...
So I found my temporary solution- stringify the foo object- send it- parse back when need to useBut I guess that it shouldn't be the official way!
HiI'm trying to update cart attributes like thisfetch('/cart/update.js', {
method: "POST",
headers: {
'X-Requested-With': 'XMLHttpRequest',
'Content-Type': 'application/json;'
},
body: JSON.stringify({
attribut...
For those who are looking for code example, this is my implementation in Node.js (I'm using Koa.js - for Express it almost the same) const crypto = require('crypto') // Built-in module of Node.js
const Router = require('koa-router')
const router = n...
Thanks, Chad_Johnson!For those who might need the code, here how it looks like (with https://github.com/Shopify/koa-shopify-auth app.use(
shopifyAuth({
accessMode: 'offline',
async afterAuth(ctx) {
const { shop, accessToken } = ctx.state.s...
My Accepted Solutions
Subject | Views | Posted |
---|---|---|
3190 | 07-29-2021 07:08 AM |