Skip to content

Instantly share code, notes, and snippets.

View stefbowerman's full-sized avatar

Stefan Bowerman stefbowerman

View GitHub Profile
{% include 'banner-panel',
id: { string } - optional
content_alignment: { string } - optional
vertical_padding: { number } - optional
vertical_padding_mobile: { number } - optional
content_max_width: { number } - optional
background_image: { image } - optional
background_vertical_alignment: { string } - optional - defaults to "center"
background_image_medium: { image } - optional
background_image_medium_vertical_alignment: { string } - optional - defaults to "center"
// Palette Step 1 - each item is a different product. data-variant maps to `product.variants.first.id`
.palette-choice[data-size="9/16"][data-price="44/64"]
...
.palette-item[data-variant]
// Shadow Item
.shadow-item[data-variant][data-description][data-quantity]
::before - content: attr(data-quantity)
img.shadow-item__image
{%- comment %}
Customer order history template.
Requires:
- page-sidebar.liquid
- account-page-title.liquid
- account.scss
- page.scss
- bootstrap.scss
- customers-login.js
function _defineProperty(e, t, i) {
return t in e ? Object.defineProperty(e, t, {
value: i,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = i, e
}
function onYouTubeIframeAPIReady() {
// Alter this function with this last line
var xsappinitfrontend = function(jQueryxsAppxsApp) {
// Main function code...
// ends with..
// jQueryxsApp('#cross-sell').append(settingsoutput);
// Add the following line
jQueryxsApp(window).trigger('xselldone');
{
"id":1889068613730,
"title":"Bike Shorts",
"handle":"bike-shorts",
"description":"\u003cmeta charset=\"utf-8\"\u003e\u003cspan\u003eMaterial: 91% cotton 9% elastane\u003c\/span\u003e",
"content":"\u003cmeta charset=\"utf-8\"\u003e\u003cspan\u003eMaterial: 91% cotton 9% elastane\u003c\/span\u003e",
"vendor":"doubledaycartwright",
"type":"",
"tags":[
{
"token":"f3984d3fcd789aceadb5174aca2f9fcb",
"note":null,
"attributes":{
},
"original_total_price":60000,
"total_price":60000,
"total_discount":0,
"total_weight":0.0,
import axios from 'axios';
export default class CartAPI {
constructor() {
}
getCart() {
return axios.get('/cart?view=json')
}
{
"data":{
"total_price":40000,
"original_total_price":40000,
"total_discount":0,
"total_weight":0,
"note":"ALL SALES FINAL NO RETURNS OR MODIFICATIONS",
"item_count":4,
"items":[
{