Liquid Weekly #52 -  Updating Shopify page sections with Liquid

Learn How To Update Shopify page sections with Liquid 
Shopify Development news and articles
 
Liquid Weekly

News & Articles

Updating SHOPIFY page sections with LIQUID
Using cart update requests to smuggle in liquid template re-renders.
Shopify’s paginate object and collection filtering
If you are using Shopify out-of-the-box pagination there are a couple of things you need to know in advance especially if you want to hide items, like out-of-stock items or items with a certain tag.
Customize Shopify’s default email templates using Klaviyo
Upgrade your Shopify notification emails templates using Klaviyo. Achieve brand consistency across all of your notifications with Klaviyo's classic email template editor. No code editing required!
Should you stop using stylesheet_tag?
Shopify liquid and core web vitals don't play nicely at times. There are some quirks with specific liquid filters that can result in less performant sites... Even though they are in Dawn and recommended in liquid documentation. I dug a bit deeper into using the stylesheet_tag filter with some (very unscientific) experiments.
Sync inventory levels to variant metafields, with Mechanic.
Use this task to easily make your inventory levels available in your online storefront theme. This task monitors for changes to inventory, and copies inventory availability figures to metafields on the related variant.
Allow customers to edit their own metadata
Shopify recently added support in the merchant admin UI to view and edit customer metafield data, but there’s still no way for customers to add/update these values directly from the storefront. Enter Customer Fields.

The Helium Customer Fields app is the all-in-one customer data toolkit for Shopify, allowing you to extend the customer registration flow and collect unique data from customers. Customer Fields is free to use on development stores and will help you save time and money when doing builds related to customer data. Build with Customer Fields: See developer docs

Code & Tools

Modern CSS selectors
CSS selectors have become increasingly sophisticated since the introduction of CSS3 more than a decade ago. This tutorial discusses three recent pseudo-class selectors which target elements based on their state.
Dispatching custom events
We can not only assign handlers, but also generate events from JavaScript. Custom events can be used to create “graphical components”. For instance, a root element of our own JS-based menu may trigger events telling what happens with the menu: open (menu open), select (an item is selected) and so on. Another code may listen for the events and observe what’s happening with the menu. We can generate not only completely new events, that we invent for our own purposes, but also built-in ones, such as click, mousedown etc. That may be helpful for automated testing.
How to use Fetch API with async – await in React Application
Before the Fetch API most of the React JS developers used to depend on the Axios to get the data from the server. Now, with the Fetch API being supported by the most of the browsers, many developers wants to use this instead of Axios as the Fetch API is native to the browsers and there will be no need to depend on third party library.

Changelog

There is nothing new under the sun. At least, not this week.

Events

Google Analytics 4 and What It Means For Your Shopify Store
If you have a Shopify store, you most likely have a Google Analytics account to uncover insights for growth. In October 2020, Google released the new GA4 but most of us continued to use Universal Analytics. However recently Google announced they will be sunsetting Universal Analytics and forcing us over to GA4. We'll cover what's new in Google's latest version of Analytics and show you the current options to set up GA4 on your Shopify store so you can take advantage of this new data platform.

Tip of the Week

stylesheet_tag now supports preload: true

The liquid stylesheet_tag now supports preload: true. It's primarily recommended for only two things on all themes: the main stylesheet and the LCP image.
The real benefit is that preload now happens in parallel with liquid rendering - a significant performance improvement!

 

Older messages

Liquid Weekly #51 -  How To Fix Video Embed in Shopify Dawn Theme

Tuesday, August 23, 2022

Learn How To Fix Video Embed in Shopify Dawn Theme Shopify Development news and articles Issue #51 - 8/23/2022 Read Online Liquid Weekly News & Articles Combining discounts For some of your

Liquid Weekly #50 -  A Brand New Type Of Shopify Apps: Checkout Extensions

Tuesday, August 16, 2022

Learn all about checkout extensions Shopify Development news and articles Issue #50 - 8/16/2022 Read Online Liquid Weekly Karl Says It's back to school season here in the USA. What are you studying

Liquid Weekly #49 -  What do developers need to know about store design?

Tuesday, August 9, 2022

Learn about the importance of store design Shopify Development news and articles Issue #49 - 8/9/2022 Read Online Liquid Weekly Karl Says This issue couples an excellent treatise on the importance of

Liquid Weekly #48 -  Show pickup availability on product pages

Tuesday, August 2, 2022

Learn how to show pickup availability on product pages Shopify Development news and articles Issue #48 - 8/2/2022 Read Online Liquid Weekly News & Articles We Worked at Shop If you were affected by

Liquid Weekly #47 -  Removing collections name from product URLs

Tuesday, July 26, 2022

Don't want collections included in your product URLs? Remove this code snippet to fix it! Shopify Development news and articles Issue #47 - 7/26/2022 Read Online Liquid Weekly News & Articles

You Might Also Like

Import AI 399: 1,000 samples to make a reasoning model; DeepSeek proliferation; Apple's self-driving car simulator

Friday, February 14, 2025

What came before the golem? ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Defining Your Paranoia Level: Navigating Change Without the Overkill

Friday, February 14, 2025

We've all been there: trying to learn something new, only to find our old habits holding us back. We discussed today how our gut feelings about solving problems can sometimes be our own worst enemy

5 ways AI can help with taxes 🪄

Friday, February 14, 2025

Remotely control an iPhone; 💸 50+ early Presidents' Day deals -- ZDNET ZDNET Tech Today - US February 10, 2025 5 ways AI can help you with your taxes (and what not to use it for) 5 ways AI can help

Recurring Automations + Secret Updates

Friday, February 14, 2025

Smarter automations, better templates, and hidden updates to explore 👀 ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

The First Provable AI-Proof Game: Introducing Butterfly Wings 4

Friday, February 14, 2025

Top Tech Content sent at Noon! Boost Your Article on HackerNoon for $159.99! Read this email in your browser How are you, @newsletterest1? undefined The Market Today #01 Instagram (Meta) 714.52 -0.32%

GCP Newsletter #437

Friday, February 14, 2025

Welcome to issue #437 February 10th, 2025 News BigQuery Cloud Marketplace Official Blog Partners BigQuery datasets now available on Google Cloud Marketplace - Google Cloud Marketplace now offers

Charted | The 1%'s Share of U.S. Wealth Over Time (1989-2024) 💰

Friday, February 14, 2025

Discover how the share of US wealth held by the top 1% has evolved from 1989 to 2024 in this infographic. View Online | Subscribe | Download Our App Download our app to see thousands of new charts from

The Great Social Media Diaspora & Tapestry is here

Friday, February 14, 2025

Apple introduces new app called 'Apple Invites', The Iconfactory launches Tapestry, beyond the traditional portfolio, and more in this week's issue of Creativerly. Creativerly The Great

Daily Coding Problem: Problem #1689 [Medium]

Friday, February 14, 2025

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given a linked list, sort it in O(n log n) time and constant space. For example,

📧 Stop Conflating CQRS and MediatR

Friday, February 14, 2025

​ Stop Conflating CQRS and MediatR Read on: m​y website / Read time: 4 minutes The .NET Weekly is brought to you by: Step right up to the Generative AI Use Cases Repository! See how MongoDB powers your