Skip to content

Instantly share code, notes, and snippets.

@fiftin
Forked from rozhok/address_decorator.rb
Last active September 13, 2015 18:22
Show Gist options
  • Save fiftin/37925fa5de375edbb75b to your computer and use it in GitHub Desktop.
Save fiftin/37925fa5de375edbb75b to your computer and use it in GitHub Desktop.
Remove billing address from Spree checkout page
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