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
Deface::Override.new(:virtual_path => "spree/products/_cart_form", | |
:name => "free_shipping", | |
:insert_bottom => "span.price", :text => " - Free Shipping") | |
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
# load "#{Rails.root}/lib/create_international_zone.rb" | |
#Create International Zone with all Countries | |
zone = Spree::Zone.where(:name => 'International').first | |
if zone.nil? | |
zone = Spree::Zone.new | |
zone.name = 'International' | |
zone.description = "All Countries" | |
zone.default_tax = false | |
zone.save |
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
Deface::Override.new(:virtual_path => "spree/shared/_taxonomies", | |
:name => "free_shipping", | |
:insert_top => "#taxonomies", :text => "<h6 class='taxonomy-root'>Free Shipping on Orders over $40.00!</h6><br>") |
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
I'm getting an error from the order_details partial. See below. | |
The order has processed just fine, the card is authorized fine... but the active merchant type? look-up returns nil on some cards, which is stored on the payment card type as nil which then bubbles up an error from the order_details partial. | |
Error: | |
ActionView::Template::Error (creditcards/icons/.png isn't precompiled): | |
26: <div class="payment-info"> | |
27: <% unless order.creditcards.empty? %> | |
28: <span class="cc-type"> | |
29: <%= image_tag "creditcards/icons/#{order.creditcards.first.cc_ | |
type}.png" %> |