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

🖤 Laravel Black Friday Deals!

Wednesday, November 27, 2024

The biggest deals of the year Laravel Black Friday Deals View in browser Laravel News Editor Note: We are sending this outside the regular Sunday newsletter schedule because some of these specials end

BetterDev #271 - Memory: The Forgotten History and Why did Windows 95 setup use three operating systems?

Wednesday, November 27, 2024

Better Dev #271 Nov 26, 2024 Hi all, Welcome to thanksgiving issue of BetterDev. Hope everyone had a safe and warm thanksgiving. It's getting so cold these days. If you are in warzone such as

Mapped | Unemployment Rate By U.S. State in 2024 💼

Tuesday, November 26, 2024

As of October 2024, DC and Nevada tied for the highest unemployment rate in the US at 5.7%. Which states saw the lowest rates? View Online | Subscribe | Download Our App FINAL CHANCE - ENDS TONIGHT!

🔊 7 DIY Tips for Soundproofing a Room — Why I Switched to Xfce for Linux Mint

Tuesday, November 26, 2024

Also: Home Theater Sound Terms Explained, and More! How-To Geek Logo November 26, 2024 Did You Know The shiny layer of a CD doesn't contain the data; the plastic polycarbonate layer does. The shiny

JSK Daily for Nov 26, 2024

Tuesday, November 26, 2024

JSK Daily for Nov 26, 2024 View this email in your browser A community curated daily e-mail of JavaScript news JavaScript Certification Black Friday Offer – Up to 54% Off! Certificates.dev, the trusted

NumPy, Loop Targets, Vector Animation, and More

Tuesday, November 26, 2024

NumPy Practical Examples: Useful Techniques #657 – NOVEMBER 26, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo NumPy Practical Examples: Useful Techniques In this tutorial, you'll learn how to

Your Games Quarterly newsletter has arrived

Tuesday, November 26, 2024

What's new for games in Google Play and Android Email not displaying correctly? View it online November 2024 The First Developer Preview of Android 16 The First Developer Preview of Android 16

Daily Coding Problem: Problem #1620 [Hard]

Tuesday, November 26, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Dropbox. Sudoku is a puzzle where you're given a partially-filled 9 by 9 grid with

Final Hours: Help Save "The Art of Data" From Falling Short 🙏

Tuesday, November 26, 2024

Will Visual Capitalist end up revealing the secrets behind data storytelling? There are 12 hours left to change the fate of "The Art of Data". View Online | Subscribe | Download Our App Help

Spyglass Dispatch: Meta's Bluesky • Apple's China AI Problem • Apple's Chinese iPhone Problem • Perplexity Voice Pin • Susan's Message on Lung Cancer

Tuesday, November 26, 2024

Meta's Bluesky • Apple's China AI Problem • Apple's Chinese iPhone Problem • Perplexity Voice Pin • Susan's Message on Lung Cancer The Spyglass Dispatch is a free newsletter sent out