Skip to content

Instantly share code, notes, and snippets.

View WolfGreyDev's full-sized avatar

Kim Skinner WolfGreyDev

View GitHub Profile
@WolfGreyDev
WolfGreyDev / products.csv
Created January 13, 2025 13:55
Basic Product CSV Import for Shopify
Handle Title Body (HTML) Vendor Product Category Type Tags Published Option1 Name Option1 Value Option1 Linked To Option2 Name Option2 Value Option2 Linked To Option3 Name Option3 Value Option3 Linked To Variant SKU Variant Grams Variant Inventory Tracker Variant Inventory Policy Variant Fulfillment Service Variant Price Variant Compare At Price Variant Requires Shipping Variant Taxable Variant Barcode Image Src Image Position Image Alt Text Gift Card SEO Title SEO Description Google Shopping / Google Product Category Google Shopping / Gender Google Shopping / Age Group Google Shopping / MPN Google Shopping / Condition Google Shopping / Custom Product Google Shopping / Custom Label 0 Google Shopping / Custom Label 1 Google Shopping / Custom Label 2 Google Shopping / Custom Label 3 Google Shopping / Custom Label 4 Snowboard binding mount (product.metafields.test_data.binding_mount) Snowboard length (product.metafields.test_data.snowboard_length) Variant Image Variant Weight Unit Variant Tax Code Cost per item
@WolfGreyDev
WolfGreyDev / log.liquid
Created October 5, 2024 20:17
Shopify Liquid Logging Snippet
{%- comment %}
Renders a browser log for troubleshooting.
Accepts:
- stop: {Boolean} Forces javascript to stop at this point. No other variable is required if this is used.
- type: {String} Used to describe the different levels of logging. Typically log, debug, error, info etc.
- var: {String} OPTIONAL A helper to define and differentiate a log from another.
- data: {Mixed} The data you wish to log.
- json: {Boolean} OPTIONAL Forces the data to be converted to JSON. Shopify doesn't like every data piece converted into JSON.
Usage:
@WolfGreyDev
WolfGreyDev / liquid-string-to-integer.md
Last active September 17, 2024 13:02
Convert Shopify Liquid String to Integer/Number

When we are creating an array of numbers using the split method, we're effectively creating string values. This is an issue when we're looking to impliment any kind of logic using these "numbers". Since the values are of a string type, comparing two "numbers" will result in unexpected behaviour.

To convert a string to a number, you must run some kind of math filter, eg. plus: 0 or times: 1. But in the following example, I'll show you that this doesn't work.

@WolfGreyDev
WolfGreyDev / remote.sh
Last active September 4, 2025 13:00
Submodule integration with Syncify
#!/bin/bash
# ------ This can be removed ------
#
# This script was created to enable to the use of GitHub submodules with Syncify.
#
# WHY SUBMODULES
# By using submodules, we're able to have Shopify store themes connected via GitHub
# and provide theme update support via Syncify. Since these themes are connected using
# the native GitHub integration, store owners are able to backup/sync their settings