4,061 questions
0
votes
0
answers
16
views
Accessing JSON's value from app metafield in liquid
Here's my sample JSON,
{
car: {
color: 'Red'
},
train: {
color: 'Blue'
}
}
I have added my JSON using metafieldsSet mutation. What I want to access is car's color or train's color ...
0
votes
0
answers
23
views
How can I make Shopify Liquid Code Colour Swatch code less squished?
I have some code that checks for a colour swatch on Shopify liquid code, it links to the silver or gold version of a product based on a custom meta field, but the text is all squished, can anyone help ...
0
votes
0
answers
5
views
How can I get all the citation-style links in a markdown page using Liquid?
Markdown supports a citation style of linking, where you place semantic link names at the bottom of the file:
Today I found a [movie][EEAAO] that [changed my life].
[EEAAO]: https://en.wikipedia.org/...
0
votes
0
answers
21
views
Jekyll posts render fine in HTML but other collections are simply missing
I am trying to add a changelog to my website. I am using jekyll's collections feature to do so. I have found liquid to be frustratingly opaque and have not yet figured out how to view available ...
1
vote
0
answers
24
views
Custom Liquid tags ({% liquid %}, {% section %}) not working with kalimatas/php-liquid library
I'm encountering errors while trying to implement Shopify-specific Liquid tags using the kalimatas/php-liquid library. Here's my setup:
// LiquidRenderer.php
class LiquidRenderer
{
private $...
0
votes
0
answers
22
views
How to Implement a Cross-Selling Component on a Product Page in Jumpseller with Unrelated Products
I'm working on implementing a cross-selling feature on my product pages in Jumpseller. The goal is to display unrelated products (e.g., showing Windows OS products on other product pages) and allow ...
2
votes
1
answer
45
views
How to forcefully reload and clean data in Shopify JS?
I’ve trying for a few days to solve this and couldn’t. I need my page to reload and forget about the previously set values in some functions. I tried many ways to do so but none have been working in ...
0
votes
1
answer
41
views
Why does using image_url in one part of my Shopify Liquid code cause a 404 error, but not in others?
I'm building a custom section in Shopify that includes an image modal for displaying product images. The issue I'm facing is that when I use image_url for the src attribute in one part of my code, I ...
1
vote
2
answers
55
views
Unable to iterate through Shopify Metafield entry list arrays in Liquid
I'm creating a custom Shopify section to display product specifications using a metafield. My metafield named specs is set as an entry list, with each entry containing arrays for label and description....
2
votes
1
answer
90
views
How do I incude another js file from a js file where ES6 modules aren't supported?
I'm using Shopify App block Extension.
There are some absurd limitations like the liquid file can't exceed 100 KB size. One can also reference a JS file from the schema of the liquid file which should ...
0
votes
0
answers
60
views
How to dynamically display variant metafields in Shopify Expanse theme?
I am trying to display a variant metafield that has a "predicted date of arrival" on my product pages. I have already created the variant metafield and added the values.
I am also able to ...
0
votes
1
answer
84
views
How to customize collection filters to display colors as color swatches?
I'm trying to build a Shopify theme from scratch and I am new to this. I am already filtering collections using the storefront filtering. It works fine, I want to customize the collection filters to ...
1
vote
0
answers
61
views
Translations not working for shopify app block schema settings section
I've defined my app block schema settings and implemented the locales for them but this isn't working properly. Like the content from the default en.default.schema.json is loading but not working for ...
3
votes
0
answers
117
views
Severe memory leak with Hotwire Turbo and Shopify
I'm encountering a significant memory leak when integrating Turbo with my Shopify store. After each Turbo-driven navigation, the heap size increases due to detached DOM nodes being retained, leading ...
0
votes
1
answer
65
views
How can I loop over an array and store the data in a variable in liquid?
I'm doing the following using JS with liquid:
const variantsWithInventoryData = {};
// Loop through each variant and assign to the object
{% for variant in product.variants %}
...