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 style="text-align: center;"> | |
<div style="border: 2px dotted black; padding: 20px; margin: 20px 30px; text-align: center; line-height: 30px;"> | |
Use this code at checkout<br /> | |
<span style="font-size: 30px;"> | |
<b>easy15</b> | |
</span> | |
</div> | |
<p>Thank you for joining Atom Prints.</p> |
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
#asf_contact_form_container { | |
} | |
#asf_contact_form_container form .field label { | |
} | |
#asf_contact_form_container form .field input { |
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
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="apple-touch-icon-57x57.png" /> | |
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="apple-touch-icon-114x114.png" /> | |
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="apple-touch-icon-72x72.png" /> | |
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="apple-touch-icon-144x144.png" /> | |
<link rel="apple-touch-icon-precomposed" sizes="60x60" href="apple-touch-icon-60x60.png" /> | |
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="apple-touch-icon-120x120.png" /> | |
<link rel="apple-touch-icon-precomposed" sizes="76x76" href="apple-touch-icon-76x76.png" /> | |
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="apple-touch-icon-152x152.png" /> | |
<link rel="icon" type="image/png" href="favicon-196x196.png" sizes="196x196" /> | |
<link rel="icon" type="image/png" href="favicon-96x96.png" sizes="96x96" /> |
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
<!-- INSTRUCTIONS: | |
1. Must change value of input with id="inquiry_inquiry_source" to one of the following: | |
master_demo_form (if artist) | |
art_gallery_demo_form (if art gallery) | |
print_studio_demo_form (if print_studio) | |
2. Add dynamic fields into appropriate section below. The name attribute of the input/select field must follow this nomenclature: | |
name="inquiry[dynamic_fields][field_name]" (where "field_name" is the name of the custom field. use underscores and NO SPACES). | |
--> | |
<div id="asf_contact_form_container"> |
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
xml.instruct! | |
xml.tag!('LLXML', { 'id' => 'Lab Order' }) do | |
xml.Creator 'Art Storefronts' | |
xml.Version 'ASF 2.12' | |
xml.Orders do | |
@exportable_orders.each do |order| |
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
Connecting to database specified by database.yml | |
** [Honeybadger] Unable to start Honeybadger -- api_key is missing or invalid. level=2 pid=8076 | |
Connecting to database specified by database.yml | |
** [Honeybadger] Unable to start Honeybadger -- api_key is missing or invalid. level=2 pid=8056 | |
Cache read: http://demosite.lvh.me:3000/store/art_print_products/callout1-lrzg9a? | |
Dalli::Server#connect 127.0.0.1:11211 | |
Started GET "/store/art_print_products/callout1-lrzg9a" for 127.0.0.1 at 2015-10-01 09:29:40 -0500 | |
[1m[36mReseller Load (1.4ms)[0m [1mSELECT "resellers".* FROM "resellers" WHERE ("resellers"."deleted_at" IS NULL)[0m |
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
add_index :carts, [:id, :deleted_at] | |
add_index :carts, [:token, :deleted_at] | |
add_index :carts, [:coupon_id, :deleted_at] | |
add_index :line_items, [:id, :deleted_at] | |
add_index :line_items, [:quantity, :deleted_at] | |
add_index :websites, [:id, :deleted_at] | |
add_index :websites, [:subdomain, :deleted_at] | |
add_index :websites, [:stripe_customer_id, :deleted_at] | |
add_index :products, [:id, :deleted_at] | |
add_index :products, [:slug, :deleted_at] |
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
SiteManager::PagesController < ApplicationController | |
end | |
def sort_children(element,dbitem) | |
+ tries = 3 | |
prevchild = nil | |
element['children'].each do |child| | |
- childitem = Page.find(child['id']) | |
- prevchild.nil? ? childitem.move_to_child_of(dbitem) : childitem.move_to_right_of(prevchild) | |
- sort_children(child, childitem) unless child['children'].nil? |
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
class OrderAssetsZipDownloadCreator | |
def self.build(order) | |
@order = order | |
unless @order.download_zip_url.present? #prevent duplicate images from being added to zip. | |
reupload_assets_with_tag | |
create_zip | |
end | |
end |
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 visitorUploadToCloudinary(form) { | |
var uploadButton = $(form).find('.cloudinary-fileupload'), | |
uploadLimit = parseInt($(form).data('limit')), | |
uploadLimitFriendly = (uploadLimit / 1000000) + 'mb'; | |
// prevents form attribute from allowing uploads larger than 100mb. | |
if ( uploadLimit > 300000000 ) { | |
uploadLimit = 300000000; | |
} |