Skip to content

Instantly share code, notes, and snippets.

View NateJLewis's full-sized avatar
🎯
Focusing

Nate Lewis NateJLewis

🎯
Focusing
View GitHub Profile
@NateJLewis
NateJLewis / modal_expample.hmtl
Created August 25, 2015 19:10
modal_expample
<div class="col-xs-12">
<!--
use the data attribute like in this example
http://getbootstrap.com/javascript/#markup
-->
<ul class="nav nav-tabs nav-justified" id="text-image">
<li class="active">
<a class="custom-text" href="#custom-text">Text</a>
</li>
<li class="">
@NateJLewis
NateJLewis / copy_from_here.html
Created August 28, 2015 03:54
copy_from_here
<!--This goes inside modal 2...one for each product-->
<div class="row">
<div id="classic_tee" class="" data-style="CT">
<div class="col-xs-6">
<div class="product-wrap front-wrap">
<a href="#" class="product-thumb image-front" data-sku="CT" data-side="front">
<img src="/images/uploads/campaigns/builder/_proper_thumb/CT-MonoChrome_front.png">
</a>
</div>
<div class="product-wrap back-wrap hidden">
$(function () {
var styleArray = [ 'CT', 'PFT', 'LT', 'VT', 'MCT', 'GRT', 'LS', 'H' ];
styleArray.sort(function(a,b) {
return $.tablesorter.sortNatural(a, b);
});
var sizeArray = [ 'S', 'M', 'L', 'XL', '2XL', '3XL', '4XL'];
sizeArray.sort(function(a,b) {
return $.tablesorter.sortNatural(a, b);
});
$("#list_by_scs").tablesorter({
<!DOCTYPE html>
<html lang="en">
<head>
<title>{site_name} | {page_title}</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="//fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="/themes/third_party/teestyle/css/vendor/bootstrap/bootstrap.css">
$(".color_swatch")
.mouseenter(function() {
var imgBgColor = $(this).find("input.color_checkbox").val();
console.log(imgBgColor);
$(".single_product .front_wrap").addClass("swatch_'+imgBgColor+'");
})
.mouseleave(function() {
var imgBgColor = $(this).find("input.color_checkbox").val();
console.log(imgBgColor);
{
CT: [
CT-AquBlu-S-0.42
CT-AquBlu-M-0.48
CT-AquBlu-L-0.56
CT-AquBlu-XL-0.60
CT-AquBlu-2XL-0.69
CT-AquBlu-3XL-0.74
CT-AquBlu-4XL-0.81
@NateJLewis
NateJLewis / ct_goals.js
Created September 3, 2015 19:42
Classic Tee Goals
$(".ct_est.est_sales").change(function(){
var findBaseCost = $(".profit_label.base_label").find(".base_cost_value");
var baseCost = $(".profit_label.base_label").find(".base_cost_value").val();
var findSellingPrice = $(".find_selling_price").find(".ct_sp.selling_price");
var sellingPriceVal = $(".find_selling_price").find(".ct_sp.selling_price").val();
var estSalesVal = $(".find_est_sales").find(".ct_est.est_sales").val();
var shirtNumTxt = $(".profit_label.base_label").find("span.num_shirts");
var numColor = $(".profit_label.base_label").find("span.num_colors");
var baseTxt = $(".profit_label.base_label").find("span.bs_txt");
var perProfitTxt = $(".profit_label.profit_sale").find("span.profit_per_sale");
{if !facebook_pixel_id}
{if:else}
<script>
var fb_p_id = {facebook_pixel_id};
</script>
<!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
$plugin_info = array(
'pi_name' => 'PPInContextConfig',
'pi_version' => '1.0.0',
'pi_author' => 'Nate Lewis',
'pi_author_url' => 'https://www.teestyle.com/',
'pi_description' => 'PayPal In-Context Config',
@NateJLewis
NateJLewis / Paypal_ec.php
Last active September 25, 2015 13:40
Paypal config: /system/expressionengine/config/paypal.php | Paypal express library: /system/expressionengine/libraries/paypal/Paypal_ec.php
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/********************************************
PayPal Express Checkout Library for Expression Engine
based on paypalfunctions.php by Paypal Integration Wizard
---------------------------------------------
// load the library
ee()->load->library("ee_paypal_ec");
// call SetExpressCheckout