This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"shopId": 69771329753, | |
"apiClientId": 155740569601, | |
"payload": { | |
"export": "run", | |
"input": { | |
"presentmentCurrencyRate": "1.0", | |
"cart": { | |
"lines": [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query RunInput { | |
presentmentCurrencyRate | |
cart { | |
lines { | |
id | |
check_bundle: attribute(key: "_bundle"){ | |
value | |
} | |
merchandise { | |
__typename |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.addEventListener("Sellify::UCD::TieredFreeItemsRendered", function(){ | |
setTimeout(function(){ | |
$( '#sellify-ucd-tiered-free-items-container .ucd-unlocked-offer .upsell-submit' ).each( function(){ | |
var cartIds = sellify.ucd.original_cart.items.map( function( item ){ | |
return item.variant_id; | |
} ); | |
var id = $( this ).closest( 'form' ).find( '[name="id"]' ).val() | |
if( ! cartIds.includes( id ) ) | |
{ | |
$(this).click() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* eq helper to check if the given values are equal | |
* | |
* {{#eq 4 4}} The values are equal {{/eq}} | |
*/ | |
Handlebars.registerHelper('eq', function(a, b) { | |
const next = arguments[arguments.length - 1]; | |
return a === b ? next.fn(this) : next.inverse(this); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$accessToken = 'MY_ACCESS_TOKEN_GENERATED_FROM_ADMIN_ACCOUNT'; | |
curl_advance([ | |
'URL' => 'https://partners.mydomain.com/api/shops', | |
'METHOD' => 'POST', | |
'HEADERS' => [ | |
'Accept: application/json', | |
'Authorization: Bearer ' . $accessToken, | |
], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div class="input-control color-input"> | |
<input :value="value" | |
:id="id" | |
class="jscolor-input {hash:true,styleElement:'',onFineChange:'jsColorOnFineChange(this)'}" | |
@change="onChange($event.target)" | |
@input="onChange($event.target)" | |
@focus="showColorPicker" | |
@onFineChange="onFineChange" | |
ref="color_input" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import '../plugins/jscolor/jscolor'; | |
/** | |
* JsColor | |
*/ | |
class JsColor extends Component { | |
/** | |
* JsColor Constructor | |
* @param {*} props |