This is a collection of hidden Shopify features and useful tips that don't fall into any specific category, but are very practical.
This will help you run your store more efficiently.
How to call meta field values of Shopify's content type "meta object" from Liquid code
How Shopify's Collection Page Sorting "Best Sellers" Works
How to find the variant ID of a product that does not have variations in Shopify
How to reference Shopify meta objects in your Liquid code
How to get the current page URL (pathname) in Shopify using Liquid
In Shopify Flow's condition settings, you cannot use regular expressions such as "starts with alphanumeric characters" or "does not contain numbers" so you need to specify all of them
How to get URL parameters in Shopify's Liquid code
When you want to assign processing to a specific template in Shopify, use the request.page_type tag to identify it.
Example of how to deal with a template where the title is displayed in all uppercase even if it is entered in lowercase on Shopify
When working with images of different sizes on Shopify, the combination of CSS properties aspect-ratio: n/n and object-fit: cover; is useful.
How to edit CSS for app code rendered with Shadow DOM in Shopify
How to check the contents of "xxxDrop" on Shopify (by adding a json filter)
In Shopify Flow, the values of Order Line Item Properties are accessible via customAttributes
To break multi-line text in Shopify metafields on the display side, you need to add the "newline_to_br" filter
Shopify's redirect settings are only effective when the specified page is 404 Not Found
How to extract characters before and after a specific string in Shopify's Liquid
How to make JPEG product photos have a transparent background in Shopify
When comparing dates in Shopify, use the date: '%s' filter to convert to Unix time (seconds)
How to get the current time in Shopify's Liquid
Shopify Liquid division results in the same result as the divisor
If the first and last names are reversed in Shopify, split the customer.name property into last_name and first_name properties and swap them.
Have an account? Log in to check out faster.
Auto-record stock status to a metafield with Shopify Flow and use it as a Search & Discovery filter
[Horizon] Replace the standard variant picker with a new image-enabled block
[Horizon] Show notes like "+15,000 JPY" or "Made to order" on variant options
[Sidekick] Manage product publish dates in one list (Publish Schedule Manager)