This file contains 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
/* =============================================== | |
// Reveal module CSS | |
// =============================================== */ | |
.reveal .hidden { display: block !important; visibility: visible !important;} | |
.product:hover .reveal img { opacity: 0.3; } | |
.reveal { position: relative; } | |
.reveal .hidden { |
This file contains 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
<p style="float: right; text-align: right; margin: 0;"> | |
{{ "now" | date: "%m/%d/%y" }}<br /> | |
Invoice for {{ order_name }} | |
</p> | |
<div style="float: left; margin: 0 0 1.5em 0;" > | |
<strong style="font-size: 2em;">{{ shop_name }}</strong><br /><br /> | |
{{ shop.address }}<br/> | |
{{ shop.city }} {{ shop.province_code }} {{ shop.zip | upcase }}<br/> | |
{{ shop.country }} |
This file contains 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
=======#1. Check if a product contain a specific tag =============== | |
{% assign productTags = product.tags | join:',' %} | |
{% if productTags contains 'limit' %} | |
<!-- Do something here --> | |
{% endif %} | |
====== #2 Comming Soon========================================== |
This file contains 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
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous"> | |
<div id="ContactUs-modal" class="contact-modal-block"> | |
<div class="contact_success"> | |
</div> | |
<div class="contact-modal grid-uniform"> | |
<header class="section-header"> | |
<span class="close2" onclick="closemodal()">×</span> |
This file contains 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
{%- capture contentForQuerystring -%}{{ content_for_header }}{%- endcapture -%} | |
{% comment %} Use string splitting to pull the value from content_for_header and apply some string clean up {% endcomment %} | |
{%- assign pageUrl = contentForQuerystring | split:'"pageurl":"' | last | split:'"' | first | split:'.myshopify.com' | last | | |
replace:'\/','/' | | |
replace:'%20',' ' | | |
replace:'\u0026','&' | |
-%} | |
{%- assign pageQuerystring = pageUrl | split:'?' | last -%} |
This file contains 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
<script> | |
$(document).ready(function () { | |
//alert (tt); | |
$.getJSON('http://api.db-ip.com/v2/free/self', function (data) { | |
if (data.countryCode === 'CA') { | |
//alert("BD"); | |
jQuery.fancybox.open(jQuery('#message')); |
This file contains 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 shopify | |
API_KEY = 'api_key_from_shopify_adimin' | |
PASSWORD = 'app password' | |
SHOP_NAME = 'xyz' | |
shop_url = "https://SHOP_NAME.myshopify.com/admin" | |
shopify.ShopifyResource.set_user(API_KEY) | |
shopify.ShopifyResource.set_password(PASSWORD) | |
shopify.ShopifyResource.set_site(shop_url) | |
shop = shopify.Shop.current() |
This file contains 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
{{ '//cdnjs.cloudflare.com/ajax/libs/datejs/1.0/date.min.js' | script_tag }} | |
function setShipDate () { | |
// element to write date to | |
var shipdate = document.getElementById("js-ship-date"); | |
// Set start date to today - end date in 2 days | |
var startDate = new Date(); | |
var endDate = "", noOfDaysToAdd = 2, count = 0; | |
// Map numeric month to name | |
var month = new Array(); |
This file contains 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
====Add this block in theme.liquid before closing head </head> ===== | |
{% comment %} ## AGE VERIFICATION -- if user is tagged 'is18', don't load age verification JS. If they aren't, or aren't logged in, load it. {% endcomment %} | |
{% if customer.tags contains 'is18' %} | |
{% else %} | |
{{ 'age-verification.js' | asset_url | script_tag }} | |
{% endif %} | |
======================================= |
OlderNewer