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
{%- comment -%} | |
If the product first varaiant inventory is 0 then find the variant with inventory and load the product page | |
{%- endcomment -%} | |
{%- assign current_variant = product.selected_or_first_available_variant -%} | |
{%- assign availableVariantId = '' -%} | |
{%- assign availableVariantFound = false -%} | |
{%- if current_variant.inventory_quantity <= 0 -%} | |
{%- for variant in product.variants -%} |
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
<html lang="{{ shop.locale }}"> | |
{% if template contains "wholesale" %} | |
<!-- wholesale Content --> | |
{% unless customer %} | |
{% assign send_to_login = true %} | |
{% endunless %} | |
{% endif %} | |
{% if send_to_login and request.path != "/challenge" %} |
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 script in product liquid (Just before addtocart form) | |
<!-- Code added for Inventory in Pipeline --> | |
<script> | |
var inv_qty = {}; | |
{% for var in product.variants %} | |
inv_qty[{{- var.id -}}] = {{ var.inventory_quantity | default: 0 }}; | |
{% endfor %} | |
</script> | |
{% if current_variant.inventory_management == "shopify" %} |
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 gql from 'graphql-tag'; | |
import { useQuery, useMutation } from '@apollo/react-hooks'; | |
import { Button, Card, Layout, Page, ResourceList, Stack } from '@shopify/polaris'; | |
const CREATE_SCRIPT_TAG = gql` | |
mutation scriptTagCreate($input: ScriptTagInput!) { | |
scriptTagCreate(input: $input) { | |
scriptTag { | |
id |
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
{% include 'product-template', | |
description_style: section.settings.description_style, | |
image_container_width: section.settings.image_size, | |
section_id: product.id, | |
social: section.settings.social_enable, | |
thumbnail_position: section.settings.thumbnail_position, | |
thumbnail_arrows: section.settings.thumbnail_arrows | |
%} | |
{% if settings.enable_product_reviews and settings.reviews_layout == 'full' %} |
NewerOlder