Skip to content

Instantly share code, notes, and snippets.

View andrewwise's full-sized avatar

Andrew Wise andrewwise

View GitHub Profile
alias gc="git commit -m"
alias ga="git add"
alias gs="git status"
alias gd="git diff"
alias gl='git log --graph --full-history --all --color --pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s"'
alias gcleanbranches='git branch --merged | grep -v "\*" | grep -v "master\|main" | xargs -n 1 git branch -d'
@andrewwise
andrewwise / Hexa3D-checkout.liquid
Created February 16, 2023 12:00
Shopify Hexa 3D additional checkout scripts
{%- if first_time_accessed -%}
<script src="https://carousel.hexa3d.io/base_files/hexa-reports.js"></script>
<script>
// define a new instance:
var hr = new window.HexaReports({ retailerId: ---REATILER ID HERE---});
// Sending the purchase event data
var data = [
{%- for line_item in line_items -%}
{
isActive: true,
@andrewwise
andrewwise / README.md
Last active April 9, 2021 13:51
Simple Shopify trade pricing with Scripts

Shopify trade pricing with Scripts app

Requires:

  • Shopify Plus
  • Shopify Scripts app installed
  • Products with tag in format Trade:<variant ID>:<price in cent/pence>
  • Customer tagged with Trade