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 | |
//* Using the Gravity Forms editor, be sure to check "Allow field to be populated dynamically under Advanced Options | |
//* You will need to set the Field Parameter Name value to work with the filter as follows: gform_field_value_$parameter_name | |
//* Dynamically populate first name for logged in users | |
add_filter('gform_field_value_first_name', 'populate_first_name'); | |
function populate_first_name($value){ | |
global $current_user; | |
get_currentuserinfo(); | |
return $current_user->user_firstname; |
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
/////////////////////////////////////////////////// | |
// Checking for template conditional | |
/////////////////////////////////////////////////// | |
<div class="content-wrapper"> | |
{% if template == 'index' %} | |
{{ content_for_layout }} | |
{% elsif template == 'page.aboutus' %} | |
{{ content_for_layout }} | |
{% else %} |
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
<select onchange="javascript:location.href = this.value;"> | |
{% for p in collection.products %} | |
{% unless p.id == product.id %} | |
<option value="{{ p.url | within: collection }}">{{ p.title }}</option> | |
{% endunless %} | |
{% endfor %} | |
</select> |
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
<form action="/cart/add" method="post" enctype="multipart/form-data" class="product-form" id="AddToCartForm"> | |
<div class="mmc-engine-sf-float-left-wrapper"> | |
<select name="id" id="ProductSelect" class="product-form__variants"> | |
{% for variant in product.variants %} | |
<option {% if variant == current_variant %} selected="selected" {% endif %} data-sku="{{ variant.sku }}" value="{{ variant.id }}" {% unless variant.available %} disabled="disabled" {% endunless %} data-price="{{ variant.price | money_without_currency | remove: ',' }}"> | |
{% if variant.available %} | |
{{ variant.title }} - {{ variant.price | money_with_currency }} | |
{% else %} | |
{{ variant.title }} - {{ 'products.product.sold_out' | t }} | |
{% endif %} |
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
development: | |
store: example.myshopify.com | |
password: add-password-in-config | |
theme_id: "live" | |
bucket_size: 40 | |
refill_rate: 2 | |
ignore_files: | |
- "*.swp" | |
- "*~" | |
- "config/settings_data.json" |
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 id="price"> | |
<!--price tab--> | |
<div class="plan"> | |
<div class="plan-inner"> | |
<div class="entry-title"> | |
<h3>Basic Wash</h3> | |
<div class="price">$25<span>/PER CAR</span> | |
</div> | |
</div> | |
<div class="entry-content"> |
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
.lm-tabel | |
.lm-item.lm-item-2 | |
.lm-item-top | |
span.lm-item-title.lm-underline START | |
.lm-item-price | |
i.icon-dollar | |
|0.995 | |
.lm-item-body | |
.lm-item-desc | |
strong CUSTOM AIR |
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="demo-wrap"> | |
<div class="demo-header"> | |
<h1>Responsive Pricing</h1> | |
<p>pricing plan layout using flexbox</p> | |
</div> | |
<!-- PRICING PLANS --> | |
<section class="pricing-plans"> | |
<!-- Pricing Tables --> |
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($){ | |
$.fn.quantityDiscounts = function(options) { | |
// set up default options | |
var defaults = { | |
discountColor: '#FF0000', | |
discounts: [ | |
{ limit: 174, discount: .75, text: "25% Discount Applied"}, | |
{ limit: 139, discount: .80, text: "20% Discount Applied"}, |