Skip to content

Instantly share code, notes, and snippets.

View cargix1's full-sized avatar

Andrew Cargill cargix1

View GitHub Profile
@cargix1
cargix1 / zapiet-mobile-zoom-fix.css
Created July 18, 2017 16:06
Zapiet - Mobile Zoom Fix
@media screen and (-webkit-min-device-pixel-ratio:0) {
.pickupDateTimeField,
.deliveryDateTimeField,
#pickupGeoSearchField,
#deliveryGeoSearchField {
font-size: 16px !important;
}
}
var data = {
"quantity": 1,
"id": variant_id,
"properties": {
"_custom_property": "Test123"
}
};
jQuery.ajax({
type: 'POST',
public static function decrypt($string)
{
$output = false;
$encrypt_method = "AES-256-CBC";
$secret_key = config('encryption_key');
$secret_iv = config('encryption_iv');
// hash
$key = hash('sha256', $secret_key);
@cargix1
cargix1 / zapiet-hubbox-locale-changes
Created March 22, 2017 12:51
Zapiet - HubBox Locale Changes
"shopify": {
"checkout": {
"contact": {
"shipping_address_title": "HubBox Collect Point"
},
"thank_you": {
"marker": {
"shipping": "HubBox Collect Point"
},
"shipping_address_title": "HubBox Collect Point"
@cargix1
cargix1 / zapiet-delivery-locale-changes
Last active December 1, 2020 10:00
Zapiet - Delivery Locale Changes
{
"shopify": {
"checkout": {
"tips": {
"title": "Driver tip",
"add_tip": "Add tip",
"description": "Add a tip for your delivery driver",
"message": ""
},
"general": {
@cargix1
cargix1 / zapiet-pickup-locale-changes
Last active March 16, 2018 14:55
Zapiet - Pickup Locale Changes
"shopify": {
"checkout": {
"contact": {
"phone_label": "Your phone number",
"optional_phone_label": "Your phone number (optional)",
"phone_placeholder": "Your phone number",
"optional_phone_placeholder": "Your phone number (optional)",
"shipping_address_title": "Pickup address",
"first_name_label": "Your first name",
"optional_first_name_label": "Your first name (optional)",
@cargix1
cargix1 / storepickup-bold-product-options.liquid
Last active February 21, 2017 16:00
Zapiet - Bold Product Options
{% comment %}
*** BOLD PRODUCT OPTIONS ***
This file ensures Zapiet - Store Pickup + Delivery works
with the Bold Product Options app (https://apps.shopify.com/product-options)
{% endcomment %}
{% for item in cart.items %}
{% assign boldVariants = item.properties['_boldVariantIds'] | split: "," %}
{% assign boldProducts = item.properties['_boldProductIds'] | split: "," %}
{% if fulfillment.fulfillment_line_items.count == item_count %}
{% capture shipment_name %}Your order is{% endcapture %}
{% elsif fulfillment.item_count > 1 %}
{% if fulfillment_status == 'fulfilled' %}
{% capture shipment_name %}The last items in your order are{% endcapture %}
{% else %}
{% capture shipment_name %}Some items in your order are{% endcapture %}
{% endif %}
{% else %}
{% if fulfillment_status == 'fulfilled' %}
{% capture email_title %}Thank you for your purchase! {% endcapture %}
{% if attributes.Checkout-Method == "pickup" %}
{% capture email_body %}Hi {{ customer.first_name }}, we're getting your order ready for pickup
{% if attributes.Pickup-Date %}
on {{ attributes.Pickup-Date | date: "%A, %-d %B %Y" }}
{% if attributes.Pickup-Time %}
at {{ attributes.Pickup-Time | date: "%R" }}
{% endif %}
{% endif %}
@cargix1
cargix1 / Shipping confirmation
Last active March 7, 2016 10:36
Shipping confirmation email template
{% if billing_address.name %}
<p>Dear {{ billing_address.name }},</p>
<p></p>
{% endif %}
{% if attributes.Checkout-Method == "pickup" %}
<p>{% if fulfillment.item_count == item_count %}All{% elsif fulfillment_status == 'fulfilled' %}The last{% else %}Some{% endif %} of the items from order {{ name }} are now ready for pickup from:</p>
<p>{{ shipping_address.company }}<br />