Skip to content

Instantly share code, notes, and snippets.

View tpage99's full-sized avatar

Taylor Page tpage99

View GitHub Profile
@chr33s
chr33s / shopify.app.json
Created August 11, 2025 07:00
Shopify mcpdoc
[
{"name": "dev", "llms_txt": "https://shopify.dev/llms.txt"},
{"name": "api", "llms_txt": "https://shopify.dev/docs/api.txt"},
{"name": "api-admin", "llms_txt": "https://shopify.dev/docs/api/admin-graphql.txt"},
{"name": "api-customer", "llms_txt": "https://shopify.dev/docs/api/customer.txt"},
{"name": "api-storefront", "llms_txt": "https://shopify.dev/docs/api/storefront.txt"},
{"name": "app-bridge", "llms_txt": "https://shopify.dev/docs/api/app-bridge.txt"},
{"name": "cli", "llms_txt": "https://shopify.dev/docs/api/shopify-cli.txt"},
{"name": "polaris", "llms_txt": "https://shopify.dev/docs/beta/next-gen-dev-platform/polaris.txt"}
]
@dev-prakhar
dev-prakhar / cross_sell_bundle.liquid
Last active October 2, 2024 16:41
FoxSell Bundles Plus - Metafields and Metaobjects Access (Liquid)
{% liquid
assign app_namespace = 'app--67872686081'
assign cross_sell_bundle_config = product.metafields[app_namespace].cross_sell_products.value
assign active = cross_sell_bundle_config.active
%}
<p>
<strong>Active: </strong>
{{ active }}
{% if type == 'heading' %}
<div class="col-12 mt-{{ block.mt }} mb-{{ block.mb }} tc">
<h1 class="mb-4">
{{ block.title }}
</h1>
<h4 class="my-3 fc-dark-gray italic uncase">
{{ block.subtitle }}
</h4>
<div class="{{ block.fs }} {{ block.ta }}">
@celsowhite
celsowhite / shopify-nodejs-file-create-flow.js
Last active September 30, 2025 19:30
Shopify Files API
/*------------------------
Libraries
------------------------*/
const axios = require("axios");
const fs = require("fs");
const FormData = require("form-data");
/*------------------------
Download the file.
Good article on how to download a file and send with form data - https://maximorlov.com/send-a-file-with-axios-in-nodejs/
@kellyvaughn
kellyvaughn / shipping-bar.liquid
Created October 1, 2020 18:01
KellyxKelly - Shipping Bar
{% assign threshold = section.settings.free-shipping-threshold | times: 100 %}
{% assign amount_remaining = threshold | minus: cart.items_subtotal_price %}
{% assign amount_remaining_money = amount_remaining | money %}
<div class="shipping-bar">
{% if amount_remaining <= 0 %}
<p>{{ section.settings.free-shipping-message }}</p>
{% else %}
<p>{{ section.settings.approaching-message | replace: '*', amount_remaining_money }}</p>
{% endif %}
@bradtraversy
bradtraversy / sample.md
Created March 23, 2018 18:17
Markdown Cheat Sheet

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

This text is italic

@outofthesandbox
outofthesandbox / disable-apps
Created October 18, 2017 21:19
Disable Apps
### Disabling all apps code loaded via `content_for_header`
Apps are all loaded in the header via a single script call, then the remaining assets are loaded below. This process takes place in the liquid tag `content_for_header`.
1. Open theme.liquid and locate the line which reads `{{ content_for_header }}`.
2. Now you can paste the following block of code to disable all apps on a new line before `{{ content_for_header }}`.
```
{% comment %} Leave url_to_remove as 0 to remove all apps, or set to a number to remove a specific app. {% endcomment %}
@robertknight
robertknight / using-nvda-in-a-windows-vm-on-mac.md
Created July 3, 2017 13:23
Testing the Windows screenreader NVDA on a Mac

How to test NVDA screen reader behaviour on a Mac:

  1. Download Microsoft Edge VM from https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/
  2. Download Virtualbox and import the Edge VM image.

Then in the VM:

  1. Install guest addons in the VM
  2. Download & install latest NVDA from nvaccess.org
  3. Download & install SharpKeys and use it to map left an alternative key (eg. Left Ctrl) to the Insert key. This is needed because Macs do not typically have an “Insert” key which is the prefix for many NVDA commands.
@jonathanmoore
jonathanmoore / gist:c0e0e503aa732bf1c05b7a7be4230c61
Last active October 7, 2024 16:54 — forked from carolineschnapp/gist:1083007
Linked options helper methods for Shopify. See this: http://docs.shopify.com/manual/configuration/store-customization/advanced-navigation/linked-product-options - Updated to work with sectioned themes (tested with District)
<script>
// (c) Copyright 2016 Caroline Schnapp. All Rights Reserved. Contact: mllegeorgesand@gmail.com
// See https://docs.shopify.com/themes/customization/navigation/link-product-options-in-menus
// Modified by Jonathan Moore (Style Hatch) https://github.com/jonathanmoore
/*
Updated to work with sectioned themes
- Added required methods from the deprecated options_selection.js
- Triggers an initial variant change
- Hides sold out variants with only one option
@derekmorash
derekmorash / gulpfile.js
Last active February 13, 2023 08:04
Gulp task to compile Shopify Liquid tags in SASS with Autoprefixer
var gulp = require('gulp');
var sass = require('gulp-sass');
var replace = require('gulp-replace');
var autoprefixer = require('gulp-autoprefixer');
var concat = require('gulp-concat');
gulp.task('compilesass', function() {
// root SASS file (contains all your includes)
return gulp.src('./sass/style.scss')
// compile SASS to CSS