Skip to content

Instantly share code, notes, and snippets.

@kumekay
Forked from rozhok/address_decorator.rb
Created May 12, 2013 11:27
Show Gist options
  • Save kumekay/5563240 to your computer and use it in GitHub Desktop.
Save kumekay/5563240 to your computer and use it in GitHub Desktop.
Deface::Override.new(:name => "remove billing address form",
:virtual_path => "spree/checkout/_address",
:remove => "#billing[data-hook]"
)
Deface::Override.new(:name => "remove use billing address checkbox",
:virtual_path => "spree/checkout/_address",
:remove => "[data-hook='use_billing']"
)
Deface::Override.new(:name => "remove second address",
:virtual_path => "spree/checkout/_address",
:remove => "p#saddress2"
)
Deface::Override.new(:name => "remove zip code",
:virtual_path => "spree/checkout/_address",
:remove => "p#szipcode"
)
Deface::Override.new(:name => "remove state",
:virtual_path => "spree/checkout/_address",
:remove => "p#sstate"
)
Deface::Override.new(:name => "remove country",
:virtual_path => "spree/checkout/_address",
:remove => "p#scountry"
)
Deface::Override.new(:name => "remove city",
:virtual_path => "spree/checkout/_address",
:remove => "p#scity"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment