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
{% comment %} | |
Input | |
{% endcomment %}{% capture _content %}{{ content }}{% endcapture %}{% comment %} | |
Remove redundant closing tags | |
{% endcomment %}{% assign _endings = "html head body li dt dd p rt rp optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% for _element in _endings %} | |
{% capture _end %}</{{ _element }}>{% endcapture %} |
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
VALID_PRODUCTS = [32513342570627, 32513342603395, 32513345060995] | |
DISCOUNT = 10 | |
CART_VARIANTS = Input.cart.line_items.map{|li| li.variant.id} | |
message ='Enjoy 10% OFF on us!' | |
if (CART_VARIANTS & VALID_PRODUCTS).length == VALID_PRODUCTS.length | |
Input.cart.line_items.each do |line_item| | |
line_item.change_line_price( | |
line_item.line_price * (Decimal.new(1) - DISCOUNT.to_d / 100), | |
message: message, |
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
function ssl-check() { | |
f=~/.localhost_ssl; | |
ssl_crt=$f/server.crt | |
ssl_key=$f/server.key | |
b=$(tput bold) | |
c=$(tput sgr0) | |
local_ip=$(ipconfig getifaddr $(route get default | grep interface | awk '{print $2}')) | |
# local_ip=999.999.999 # (uncomment for testing) | |
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 { isTouchDevice } from './detect-touch-device'; | |
const $win = $(window); | |
const $doc = $(document); | |
const $navDropdownParent = $('.nav .has-dropdown'); | |
/** | |
* Show nav dropdowns for mobile devices | |
* @param { Object } $clickedElement DOM Element - clicked element | |
* @return { Void } |
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
/** | |
* The module dependencies. | |
*/ | |
const del = require('del'); | |
const path = require('path'); | |
const gulp = require('gulp'); | |
const sass = require('gulp-sass'); | |
const utils = require('./utils'); | |
const gulpif = require('gulp-if'); | |
const rename = require('gulp-rename'); |
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
{%- assign _section = section.settings -%} | |
{%- comment -%} Style of Section {%- endcomment -%} | |
{%- if _section.color != blank -%} | |
<style type="text/css"> | |
.section-image[data-section-id="{{ section.id }}"] .section__title, | |
.section-image[data-section-id="{{ section.id }}"] .section__subtitle, | |
.section-image[data-section-id="{{ section.id }}"] .btn--link | |
{ | |
color: {{ _section.color }}; |
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
<div class="product-template__container page-width" | |
id="ProductSection-{{ section.id }}" | |
data-section-id="{{ section.id }}" | |
data-section-type="product" | |
data-enable-history-state="true" | |
data-ajax-enabled="{{ settings.enable_ajax }}" | |
> | |
{% assign products = product.metafields.global.grid-products | split: "," %} | |
{% assign variants = '' | split: '' %} |
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
{ | |
"id":4342845472823, | |
"title":"Sham", | |
"handle":"sham", | |
"description":"", | |
"published_at":"2019-11-09T21:49:00-05:00", | |
"created_at":"2019-11-09T22:06:26-05:00", | |
"vendor":"B2B Kassatex", | |
"type":"Bedding", | |
"tags":[ |
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
UPDATE wp_options SET option_value = replace(option_value, 'Existing URL', 'New URL') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
UPDATE wp_posts SET post_content = replace(post_content, 'Existing URL', 'New URL'); | |
UPDATE wp_postmeta SET meta_value = replace(meta_value,'Existing URL','New URL'); | |
UPDATE wp_usermeta SET meta_value = replace(meta_value, 'Existing URL','New URL'); | |
UPDATE wp_links SET link_url = replace(link_url, 'Existing URL','New URL'); |