Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 05-13-2013 05:44:57

htw_simon
Member
From: UK
Registered: 11-20-2007
Posts: 83
Website

Change Default Shipping Address

Is it possible to make the default shipping address the billing address, rather than the last used shipping address? - for accounts with multiple shipping addresses.

Thanks, Simon

Offline

 

#2 05-13-2013 09:45:28

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Change Default Shipping Address

In the file {private}/apps/ecom/ECOM_Checkout/ECOM_Checkout.php, in the function coaddbook() look for:

Code:

// +--
// | Map our default address over to our items to prepopulate
// | any delivery addresses that have not been completed
// | or were just deleted.
// +--

And right below that, add:

Code:

$default = $billing;

Nick Hendler

Offline

 

Board footer