This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shopify objects that contain attributes that can be dynamically put on the page. For example, the product object contains an attribute called title that can be used to output the title of a product. | |
The handle is used to access the attributes of a Liquid object. By default, it is the object’s title in lowercase with any spaces and special characters replaced by hyphens (-). Every object in Liquid (product, collection, blog, menu) has a handle. | |
Collections & Products | |
Collection ► | |
all_types ► | |
Returns a list of all the product types for a collection | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This is a logger that will log only if the url has some ?string on it | |
* @Author: Ben Line (Lino) | |
*/ | |
// On some ES6 module | |
export const isLoggingEnabled = /debugger/.test(document.location.search); | |
export const logging = (...msg:any) => { | |
if (isLoggingEnabled) { |