Skip to content

Instantly share code, notes, and snippets.

@rozhok
Created July 2, 2012 20:54
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save rozhok/3035648 to your computer and use it in GitHub Desktop.
Save rozhok/3035648 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