Skip to content

Instantly share code, notes, and snippets.

View fresh5447's full-sized avatar

Douglas Walter fresh5447

View GitHub Profile
import invariant from 'invariant'
import {
flow,
identity,
isEmpty,
isFunction,
isPlainObject,
isString,
noop,
omit,
This file has been truncated, but you can view the full file.
[
{
"id": 266,
"name": "Men's Katabatic Low Waterproof",
"sku": "44001",
"path": "mens-katabatic-low-waterproof",
"description": "<p>Speed is your friend with the Oboz Katabatic, as is support, stability, protection, and performance. We&rsquo;ve paired our lightest midsole ever with our most breathable B-DRY waterproof membrane ever, for a hiking shoe with an amazing ride that not only keeps feet comfortable mile after mile, but also dry every step of the way.</p>",
"categories": [
28,
34,
@fresh5447
fresh5447 / sb-130-metafields.js
Created April 23, 2021 17:28
SB130 Production 4/23
[
{
"id": 591361,
"product_id": 1933,
"sku": "F21130TLGPBRFX0000000",
"sku_id": 585968,
"price": 3600,
"calculated_price": 3600,
"sale_price": null,
"retail_price": null,
@fresh5447
fresh5447 / arc.js
Created April 20, 2021 17:35
Arc Prod Metafields
[
{
"id": 592370,
"product_id": 1953,
"sku": "B21ARCTLGPTUPAC014300",
"sku_id": 586955,
"price": 3600,
"calculated_price": 3600,
"sale_price": null,
"retail_price": null,
@fresh5447
fresh5447 / sb130.js
Created April 20, 2021 16:07
Backorder Variant Data 4/20
[
{
"id": 591361,
"product_id": 1933,
"sku": "F21130TLGPBRFX0000000",
"sku_id": 585968,
"price": 3600,
"calculated_price": 3600,
"sale_price": null,
"retail_price": null,
[
{
"id": 573773,
"product_id": 1202,
"sku": "300060073",
"metafields": []
},
{
"id": 573774,
"product_id": 1202,
@fresh5447
fresh5447 / sandbox-variants.js
Created April 8, 2021 21:00
Sandbox Variants w/ metafields
[
{
"id": 46654,
"product_id": 439,
"sku": "B20150TLGPANX2T026700",
"metafields": [
{
"id": 17191,
"key": "BackOrder",
"value": "false",
@fresh5447
fresh5447 / production-variants.js
Created April 8, 2021 20:56
Production Variants w/ Metafields
[
{
"id": 495604,
"product_id": 1218,
"sku": "B20130TLR",
"metafields": []
},
{
"id": 496170,
"product_id": 1268,
@fresh5447
fresh5447 / klaviyo.js
Created February 15, 2021 15:44
Klaviyo
// EMAIL SIGNUP FUNCTIONS
onSubmit() {
const isValidEmail = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(this.email);
if (isValidEmail) {
return fetch('https://manage.kmail-lists.com/ajax/subscriptions/subscribe ', {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: JSON.stringify({email: this.email, g: 'XYVPwG'})
@fresh5447
fresh5447 / eslintrc.js
Created April 20, 2018 02:15
eslint w/ prettier
module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
extends: [
'standard',
'standard-react',
'prettier',