Questions tagged [liquid-template]

Liquid is an open-source template language created by Shopify and written in Ruby. It is the backbone of Shopify themes and is used to load dynamic content on storefronts. This tag should be used for questions relating to Liquid templating systems (for example interactions between Shopify's theme template files). Use the related [liquid] tag for generic liquid questions.

Liquid is a templating engine for creating web pages. From the Liquid website:

Liquid is an extraction from the e-commerce system Shopify. Shopify powers many thousands of e-commerce stores which all call for unique designs. For this we developed Liquid which allows our customers complete design freedom while maintaining the integrity of our servers.

Liquid has been in production use since June 2006 and is now used by many other hosted web applications.

It was developed for usage in Ruby on Rails web applications and integrates seamlessly as a plugin but it also works excellently as a stand alone library.

Liquid has been in production use at Shopify since 2006, and is also used as the main templating engine on GitHub pages through the Jekyll static site generator.

57 questions
1
vote
2 answers

Xml to Json liquid template stopped working on Azure Logic Apps

After one month of successful mapping our template gives different results with no change in the process. Xml fragment is as follows: Role on Role two
1
vote
1 answer

How to fetch xml attribute value in liquid template - XML to JSON Liquid

I am trying to fetch the xml attribute value using liquid template. Examples are as below. XML example:
1
vote
2 answers

Logic Apps liquid template ask

I am a complete newcomer to Liquid, started playing with it a few hours ago. i am trying to parse a JSON and extract certain key value pairs out of it, yet i am not successful at all. the JSON is outputed from Azure Form Recognizer, and i am trying…
az work
  • 15
  • 2
0
votes
0 answers

How do I modify the response from a 3rd Party API response?

I am new to using APIM, so I have only opened up our existing APIM and tried to add a policy. I followed some snippets, so obviously I am missing something simple, yet complex for me. I just wanted to try only getting the id for now, but ultimately…
Martin
  • 1
0
votes
0 answers

How should I update my Shopify theme to 2.0

I have bought a theme 3 years ago and I've customised it quite highly, adding and editing old / new templates, sections and snippets, CSS and a bit of Javascript. There have been several new versions to the theme and I'd like to update it to be in…
0
votes
0 answers

Change of the product prices in shopify liquid custom templet

I am building a custom shopify templet for my client using shopify partners. I am stuck on the product page templet. I have two variant selection options one is color and other is size. I noticed that when i load any shopify product page it loads on…
0
votes
1 answer

Shopify Dynamic Checkout Button adding incorrect variant on product page

I have tried to add the dynamic checkout button to the product pages but I'm having an issue where it doesn't matter what variant I select in the radio selection the variant that is pulled through to purchase is always the first available variant.…
0
votes
0 answers

multiplying prices in Shoopify theme using liquid

I am trying to update the prices on Shopify theme I have added the same code (| times: 1.16) in another snippet and it works fine but it doesn't work in another snippet. {%- capture _price -%}{%- if value != blank -%}{%- if settings.currency_format…
Honey_G
  • 11
  • 2
0
votes
1 answer

Liquid error (snippets/backup-layout line 1): Could not find asset snippets/__default-template.liquid

I am using webflow to create an ecommerce theme and then converting it to a shopify theme using udesly. I want to add a social login function for the ecommerce site (called bitbybit), bitbybit is displaying the login options correctly and even saves…
Llewellyn Hattingh
  • 306
  • 1
  • 5
  • 16
0
votes
1 answer

Seeing an error in output (Ruby language)

This a code of product recommendations section which shows related products on cart and product details page {% assign itemsPerColumn = columns | times:1 %} {% assign perCol = count_product | divided_by: itemsPerColumn | ceil %} {% assign leftOver =…
0
votes
0 answers

Are there any methods to convert 'escape sequences' to 'special characters' in the Liquid template language?

product.type = "100FWTB, 25L-BELOW, 4'4"-5'5", 5'0" - 5'11", FIREWIRE, FUTURES, Groveler Surfboards, HELIUM 2, HELIUM CONSTRUCTION, IN-STOCK, N60, partial_payment, PO#514, SHORTBOARDITEMS, SHORTBOARDS, SURFBOARDS"; "product_type":"{{ product.type |…
Midhun k
  • 1
  • 1
0
votes
1 answer

How to get a date in past or future in reference to current date using the date function in Liquid Template?

I am running a CucumberJs test and is trying to pass a file in liquid template as input, and is trying to figure out how to get a date either in past or future from the current system date (when the test runs). This is how I have defined in liquid…
SymboCoder
  • 151
  • 8
  • 21
0
votes
0 answers

Liquid template - String split using Pipe delimeter and retain emty/null values

I'm a beginner/learner to using Liquid templates and need some help with below query. I have a string with data coming in with three pipes ||| and this needs splitting based on "|||" as delimiter and send the data to multiple fields in the order as…
Latam
  • 1
  • 2
0
votes
0 answers

How to change a style of a part of a paragraph in Shopify Dawn Theme?

How do I change the last paragraph of a column inside of multicolumn section to the style I need? Let's say I want it to be blue color and bolder (text underlined with orange line)? I have tried to change the style of

element but all

0
votes
1 answer

Accessing entities with @ in name for JSON - JSON mapping

I have got my Liquid map working for all other entities but if I try to rename for e.g. @odata.etag object to odata.etag the map's output is an empty string so I guess it cannot access the entity with "@" in it. Another example of this is on OData…