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   2063 Views

Avatar
S0crates9

27 Posts

25 June 2009 at 9:12am

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

Community Member, 187 Posts

14 September 2009 at 6:17pm

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

Community Member, 10 Posts

23 September 2009 at 2:04am

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

Community Member, 187 Posts

24 September 2009 at 11:27am

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

Community Member, 22 Posts

19 March 2010 at 4:11am

Edited: 19/03/2010 4:12am

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