Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

E-Commerce Modules

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba, simon_w

Get Rid of Use Billing/Shipping Address Button


Reply

5 Posts   2057 Views

Avatar
S0crates9

25 June 2009 at 9:12am 27 Posts

On the checkout page, there is a button which says, "Use Billing Address for shipping". Essentially my question is, how do I get rid of that button and simply have the additional form elements on the page?

I also noticed when that option is open, I cannot click it to close without it flashing required fields in the shipping address area... Seems like a bug, no?

Avatar
mschiefmaker

14 September 2009 at 6:17pm Community Member, 187 Posts

Did you ever find an answer to this, this is something I want to remove as well as I supply a service so shipping address is irrelevant.

Thanks

MM

Avatar
neonfrog

23 September 2009 at 2:04am Community Member, 10 Posts

In OrderForm.php simply remove creation of the shipping form fields. In OrderForm.php remove code in beforeprocessing that checks the action useshipping address or use memberaddress. In ShoppingCart.php remove references to using shipping address.

OrderInformation templates may also refer to shipping fields so check that too.

Avatar
mschiefmaker

24 September 2009 at 11:27am Community Member, 187 Posts

Hey again Neonfrog. Was just about to updates this after your advice on the other thread but I see you beat me to it. MM

Avatar
imsas

19 March 2010 at 4:11am (Last edited: 19 March 2010 4:12am), Community Member, 22 Posts

Here you go mate I just solve this.
[url]http://www.silverstripe.org/e-commerce-module-forum/show/269553?start=8#post281187[/url]