Liquid Weekly #27 - How Shopify Writes React Native Apps

Learn how Shopify Writes React Native Apps 

Shopify Development news and articles

 
Liquid Weekly

Karl Says


Spring is right around the corner. How can you help your clients prepare for the usual late spring and summer holidays and sales?

News & Articles

Shipit! Presents: How We Write React Native Apps
Join Colin Gray, Haris Mahmood, Guil Varandas, and Michelle Fernandez who are the developers setting the React Native standards at Shopify. They’ll share more on how we write performant React Native apps.
Kurt Asks: what one feature do you wish was native to Shopify?
Kurt Elster of Ethercycle asked the question - check out the twitter thread to see what others have to say (and chime in with your own thoughts)
Explain the First 10 Lines of Twitter’s Source Code to Me
One of the questions I always like to ask during a technical interview is: “Explain the first ten or so lines of the Twitter source code to me.” I think it’s a simple test that tells me a lot about the depth of fundamental front-end knowledge they have, and this article lists the best answers.
The Shopify Entrepreneurial Developer
We often talk about how Shopify supports entrepreneurs from the first day of their journey building a business all the way to huge merchants that grow to become unicorns, or go public, and are just plain successful. Now it’s time to show the role of developers in helping this growth, but also how our developers themselves can grow from sustainable businesses to having their own IPOs.
How Shopify is Helping Developers Help Merchants in 2022
Running a successful online business is only getting harder, which is why our growing, global merchant base turns to the Shopify ecosystem for help. These merchants need Shopify to be the simplest, safest, and most personalized commerce ecosystem in the world. And that’s why we’re making significant improvements to how merchants discover, select, and make use of apps and themes this year.
3 key tips to improve e‑commerce site speed
If you’ve always had site speed on your radar, but never really given it much note or looked into how to make your site faster, now is the time to act. Handily, we’ve got a site speed checklist right here. Work your way these 3 key tips and your site will be breaking sprint world records in no time.
Storetasker: A network for excellent freelance Shopify devs
Hello readers! This is Charlie from Storetasker. Would be thrilled to have some of you join our community of freelance Shopify devs at Storetasker and get you paired up with amazing D2C brands (Judy, DS & Durga, Bubble all just happened in the past 2 months). Some of our devs make over $200k on Storetasker but you can also just choose to dip in and out when you want.

Code & Tools

How to add multiple products with an AJAX cart
There may be times when you have a use case for adding multiple products to the Shopify cart with just one button. This could if you like to add an "buy this outfit" button or if you'd like to include a "buy the entire collection" button. In this tutorial we're going to show you how to add a Buy this collection button with AJAX.
Elevator.js
Now for a bit of whimsy - Elevator.js fixes those awkward "scroll to top" moments the old fashioned way.
List of Ngrok Alternatives for Tunneling
If you've done any Shopify app development then you know you need a way to tunnel requests to your local machine during development. Ngrok used to be king, but now there are some new kids on the block. The purpose of this list is to track and compare tunneling solutions. This is primarily targeted toward self-hosters and developers who want to do things like exposing a local webserver via a public domain name, with automatic HTTPS, even if behind a NAT or other restricted network.
Create Beautiful Images of Twitter Posts
Here's a handy tool for easily creating and sharing images of twitter posts.
Liquid Math Filters
Math filters allow you to apply mathematical tasks. Math filters can be linked and, as with any other filters, are applied in order of left to right. Check out the documentation to see what's available
How to manually redirect customers after registration on Shopify
By default, both new and returning customers are directed to the “account” page after logging in. But being able to redirect customers to a certain page can add a lot of value to your store. In this guide, we will demonstrate how to redirect customers to a new location.

Changelog

Themes

Display duties with Liquid using `order.total_duties`
A new attribute (total_duties) is now available on the order object. order.total_duties attribute returns the sum of all duties applied to line items in the order. order.total_duties returns nil if duties are not applicable to the order.

API

Scheduled Publishing to Channels is now Generally Available
We’ve just released Product Scheduled Publishing to Channels, allowing merchants to schedule products to be published to a sales channel at a specific datetime. For channels that have product validation workflows, you’ll need to integrate with scheduled product publishing so that your channel can validate products before their scheduled publication datetime.

Events

April 13 - Introduction to Working With Shopify Themes
Following this practical workshop you’ll be able to set up a local development environment and edit theme code to customize an example storefront. We’ll also explore Shopify’s Liquid templating language and learn how it can be leveraged to display dynamic store content.
March 17 - Building Headless Storefronts on Shopify with Hydrogen - Online Workshops
Curious about Hydrogen -Shopify's React-based framework for building custom storefronts? Register now for an upcoming FREE workshop in March to explore the new framework and get a custom storefront up and running

Jobs

Sponsored Job Postings are Now Available
Do you have a great opportunity in the Shopify development space? Share it with over 600 Shopify developers by placing a sponsored job posting in Liquid Weekly.
Content Marketing Manager, FT, Remote
The ideal candidate loves writing and topic research but also understands how to structure the article from the SEO point of view. We expect someone who will be autonomous and data-driven. Knowledge of the Shopify environment is a big plus, but general e-commerce understanding is fine, too.
Technical Lead, FT, Remote
Invisible Themes is looking for a full-time Technical Lead with deep Javascript knowledge to join our growing team! You will be building features, writing exemplary code for the development team to follow and defining the development roadmap.

Tip of the Week

Access variable in a section that’s defined in a snippet (up scoping)

This tip comes by way of a conversation in the Shopify Partner Slack between Edi and Lewis.

The question is, how do you access variables that are defined "below" your current scope, such as when a section defines a variable that you want to access in the section that included the snippet


Option 1 - Capture

Option 1 is to output the value from the snippet, and capture it in the section.

Example:

snippets/unique.liquid

﹛﹛ 'now' | date: '%N' ﹜﹜

sections/section-name.liquid

﹛% capture id %﹜
﹛% render 'unique' %﹜
﹛% endcapture %﹜
<div id="Section--﹛﹛id ﹜﹜"></div>


Option 2 - javascript

Option 2 is to use javascript to create a global variable in the snippet and then reference that same variable later in the section via js

Example:

snippet.liquid

﹛%- assign item_count = 0 -%﹜
﹛% for item in loop %﹜
﹛%- assign item_count = item_count | plus: 1 -%﹜

﹛% endfor %﹜

section.liquid

﹛% render 'unique' %﹜
<script>
const item_count = window.js_item_count
if (item_count === undefined || 0 ) {
...
} else {
...
}
</script>

 

Older messages

Liquid Weekly #26 - Accessibility on Shopify

Tuesday, February 22, 2022

How to Get Started with Accessibility on Shopify Shopify Development news and articles Issue #26 - 2/22/2022 Read Online Liquid Weekly Karl Says Each winter after Christmas I make it a mental goal to

Liquid Weekly #25 - 500 "Booby-trapped" Ecommerce sites

Tuesday, February 15, 2022

Hear about exploited Ecommerce sites, learn how to design a site's color palette and more! Shopify Development news and articles Issue #25 - 2/15/2022 Read Online Liquid Weekly Karl Says This

Liquid Weekly #24 - Build a storefront with Hydrogen

Tuesday, February 8, 2022

Learn how to build a storefront with Shopify's Hydrogen Shopify Development news and articles Issue #24 - 2/8/2022 Read Online Liquid Weekly Karl Says If there was an "Olympics" of

Liquid Weekly #23 - Three New Themes

Tuesday, February 1, 2022

Learn about Shopify's new themes, how to create a custom Shopify admin panel and more! Shopify Development news and articles Issue #23 - 2/1/2022 Read Online Liquid Weekly Karl Says Living in Ohio,

Liquid Weekly #22 - Custom Product Badges

Tuesday, January 25, 2022

Learn how to create custom product badges along with other great tutorials and tips Shopify Development news and articles Issue #22 - 1/25/2022 Read Online Liquid Weekly Karl Says Happy January 25th -

You Might Also Like

Overcoming Perfectionism: How to Break Free from the Enemy of Progress

Wednesday, November 27, 2024

Discover how perfectionism hinders progress and learn practical strategies to overcome the fear of imperfection, boost productivity, and achieve your goals without getting stuck in the pursuit of

🖤 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