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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>FabFitFun</title> | |
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300" rel="stylesheet" type="text/css" /> | |
<style type="text/css">*{ | |
box-sizing:border-box; | |
-moz-box-sizing:border-box; | |
} |
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
O:15:"Recurly_Invoice":7:{s:10:"*_values";a:18:{s:7:"account";O:12:"Recurly_Stub":5:{s:10:"objectType";s:7:"account";s:8:"*_href";s:83:"https://fabfitfun-dev.recurly.com/v2/accounts/dummy_account_5dc47cdb095978.18119852";s:8:"*_type";N;s:10:"*_client";O:14:"Recurly_Client":2:{s:23:"Recurly_Client_apiKey";N;s:31:"Recurly_Client_acceptLanguage";s:5:"en-US";}s:9:"*_links";a:0:{}}s:7:"address";O:15:"Recurly_Address":7:{s:10:"*_values";a:3:{s:5:"state";s:2:"NY";s:3:"zip";s:5:"10009";s:7:"country";s:2:"US";}s:15:"*_unsavedKeys";a:0:{}s:10:"*_errors";O:17:"Recurly_ErrorList":3:{s:11:"transaction";N;s:17:"transaction_error";N;s:25:"Recurly_ErrorListerrors";a:0:{}}s:8:"*_href";N;s:8:"*_type";N;s:10:"*_client";O:14:"Recurly_Client":2:{s:23:"Recurly_Client_apiKey";N;s:31:"Recurly_Client_acceptLanguage";s:5:"en-US";}s:9:"*_links";a:0:{}}s:4:"uuid";s:32:"4fb652fb64117a9f97e75647ce876763";s:5:"state";s:4:"open";s:12:"tax_in_cents";i:0;s:14:"total_in_cents";i:500;s:8:"currency";s:3:"USD";s:26:"attempt_next_collection_at";O: |
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
$purchase = new Recurly_Purchase(); | |
$purchase->currency = 'USD'; | |
$purchase->account = new Recurly_Account(); | |
$purchase->account->account_code = '[email protected]'; | |
$purchase->account->first_name = 'jane'; | |
$purchase->account->last_name = 'doe'; | |
$billing_info = new Recurly_BillingInfo(); | |
$billing_info->number = '4111-1111-1111-1111'; | |
$billing_info->country = 'US'; |
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
<div class="col"> | |
<div class="addon-description-reactivate" style="font-size: 16px;"> | |
<div style="border: 1px solid #e5e5e5; background: #f5f5f5;"> | |
<h2 style="text-align: center; margin-top: 40px;">You need a seasonal box to shop Add-Ons!</h2> | |
<div class="description" style="text-align: center; margin-bottom: 50px;"> | |
<p>To participate in Add-Ons, you must have an upcoming Summer Box!<br/>Don't want to miss out on amazing discounts? Click below to activate your account</p> | |
<p> | |
<button class="btn-lg btn btn-cta popmake-early-activate btn-trial-activate-seasonal">Get the Summer Box Now! Hi Steve</button> | |
<p style="color: #999;">By clicking above, your subscription will be set to renew for Summer.</p> | |
</div> |
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
<div class="col"> | |
<div class="addon-description-reactivate" style="font-size: 16px;"> | |
<div style="border: 1px solid #e5e5e5; background: #f5f5f5;"> | |
<h2 style="text-align: center; margin-top: 40px;">You need a seasonal box to shop Add-Ons!</h2> | |
<div class="description" style="text-align: center; margin-bottom: 50px;"> | |
<p>To participate in Add-Ons, you must have an upcoming Summer Box! <br/> Add-Ons will ship for free with your Summer Box after May 15th, 11:59 PM PST . Don't want to miss out on amazing discounts? Click below to purchase. </p> | |
<p> By purchasing the Summer Box, you will be charged $49.99* with the billing information we have on file. Your credit card will be charged that same amount each season. You may cancel your membership at any time online or by contacting FabFitFun Support. For more details, <a href="https://support.fabfitfun.com/hc/en-us/articles/201619963-What-s-your-cancellation-policy-">click here.</a></p> | |
<p> | |
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
<head> | |
<meta name="viewport" content="initial-scale=1, maximum-scale=1"> | |
<style> | |
#main-container{width:100%;overflow-x:hidden;} | |
#section1{width:100%;height:fit-content;background-color:#FEDAC9;text-align:center;margin:auto;} | |
#section2 {width:100%;height:fit-content;background-color: #FFF;display:flex; padding:30px 40px;} | |
#section3 {width:100%; background-color: #FEDAC9;margin:auto;text-align:center;padding-bottom:45px;} | |
#section4 {width:100%;background-color: #fff;display:flex;} | |
#section1 #edit-banner-img {width:550px;margin:-40px;} | |
#section1 #edit-banner-title{color: #000000;font-family: Montserrat;font-size: 22px; |
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
SELECT * FROM `users` | |
WHERE ship_zipcode = 91202 | |
AND levenshtein('123 main st', `ship_address1`) BETWEEN 8 AND 10 | |
AND levenshtein('suite 5', `ship_address2`) BETWEEN 8 AND 10 | |
limit 5 | |
DELIMITER $$ | |
CREATE FUNCTION levenshtein( s1 VARCHAR(255), s2 VARCHAR(255) ) | |
RETURNS INT | |
DETERMINISTIC |
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
$purchase = new Recurly_Purchase(); | |
$purchase->currency = 'USD'; | |
$purchase->account = new Recurly_Account(); | |
$purchase->account->account_code = '[email protected]'; | |
$purchase->account->first_name = 'jane'; | |
$purchase->account->last_name = 'doe'; | |
$billing_info = new Recurly_BillingInfo(); | |
$billing_info->number = '4111-1111-1111-1111'; | |
$billing_info->country = 'US'; |
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
<?php | |
use Phinx\Migration\AbstractMigration; | |
class InsertFriendbuyToReferralConversion extends AbstractMigration | |
{ | |
public function change() | |
{ | |
// we only care about rows that are not duplicate | |
$friendbuyRows = $this->fetchAll("SELECT * FROM friendbuy_conversions WHERE is_duplicated = 0 | |
AND new_order_id IS NOT NULL | |
"); |