Reworked based on Radar's directions
This commit is contained in:
parent
e4fe2f9129
commit
4bc99e2fb7
|
@ -195,14 +195,22 @@ module Spree
|
||||||
else
|
else
|
||||||
user_action = Spree::PaypalExpress::Config[:paypal_express_local_confirm] == "t" ? "continue" : "commit"
|
user_action = Spree::PaypalExpress::Config[:paypal_express_local_confirm] == "t" ? "continue" : "commit"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#asset_url doesn't like Spree::Config[:logo] being an absolute url
|
||||||
|
#if statement didn't work within hash
|
||||||
|
if URI.parse(Spree::Config[:logo]).absolute?
|
||||||
|
chosen_image = Spree::Config[:logo]
|
||||||
|
else
|
||||||
|
chosen_image = asset_url(Spree::Config[:logo])
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
{ :description => "Goods from #{Spree::Config[:site_name]}", # site details...
|
{ :description => "Goods from #{Spree::Config[:site_name]}", # site details...
|
||||||
|
|
||||||
#:page_style => "foobar", # merchant account can set named config
|
#:page_style => "foobar", # merchant account can set named config
|
||||||
:background_color => "ffffff", # must be hex only, six chars
|
:background_color => "ffffff", # must be hex only, six chars
|
||||||
:header_background_color => "ffffff",
|
:header_background_color => "ffffff",
|
||||||
:header_border_color => "ffffff",
|
:header_border_color => "ffffff",
|
||||||
|
:header_image => chosen_image
|
||||||
:allow_note => true,
|
:allow_note => true,
|
||||||
:locale => user_locale,
|
:locale => user_locale,
|
||||||
:req_confirm_shipping => false, # for security, might make an option later
|
:req_confirm_shipping => false, # for security, might make an option later
|
||||||
|
@ -212,13 +220,6 @@ module Spree
|
||||||
# they've not been tested and may trigger some paypal bugs, eg not showing order
|
# they've not been tested and may trigger some paypal bugs, eg not showing order
|
||||||
# see http://www.pdncommunity.com/t5/PayPal-Developer-Blog/Displaying-Order-Details-in-Express-Checkout/bc-p/92902#C851
|
# see http://www.pdncommunity.com/t5/PayPal-Developer-Blog/Displaying-Order-Details-in-Express-Checkout/bc-p/92902#C851
|
||||||
}
|
}
|
||||||
#asset_url doesn't like Spree::Config[:logo] being an absolute url
|
|
||||||
#if statement didn't work within hash
|
|
||||||
if URI.parse(Spree::Config[:logo]).absolute?
|
|
||||||
{:header_image => Spree::Config[:logo]}
|
|
||||||
else
|
|
||||||
{:header_image => asset_url(Spree::Config[:logo])}
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def user_locale
|
def user_locale
|
||||||
|
|
Loading…
Reference in New Issue