ALL instances: Ship to Residence/Business default Residence

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
ksolito
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 42
Joined: Tue Nov 25, 2008 3:16 pm

ALL instances: Ship to Residence/Business default Residence

Post by ksolito » Fri Jun 19, 2009 12:35 pm

Store owner would like all instances where ship to type can be business or residence to default to residence. I found the places below and all were either already set to default to residence or were changed to do so.

1) During checkout on *//Checkout/Default.aspx, if the 'Ship to a different address' radio button is checked, the diff address form still defaults to 'This is a business'. Where do I change this?

2) Am am not sure if the Shipping Estimate on Shoppping Bar 1 ([[ConLib:MiniBasket]] ??) uses a business or residential since it is not selectable.

---------------------------------------------

Admin\Orders\PlaceOrder2.aspx(191)
<asp:ListItem Text="This is a residence" Value="1" Selected="true"></asp:ListItem>
<asp:ListItem Text="This is a business" Value="0"></asp:ListItem>

Admin\Orders\PlaceOrder2.aspx(315)
<asp:ListItem Text="This is a residence" Value="1" Selected="true"></asp:ListItem>
<asp:ListItem Text="This is a business" Value="0"></asp:ListItem>

Admin\Orders\Shipments\EditShipment.aspx(218)
<asp:ListItem Text="This is a residence" Value="1" Selected="true"></asp:ListItem>
<asp:ListItem Text="This is a business" Value="0"></asp:ListItem>

Admin\People\Users\EditUser.aspx(405)
<asp:ListItem Text="This is a residence" Value="1" Selected="true"></asp:ListItem>
<asp:ListItem Text="This is a business" Value="0"></asp:ListItem>

ConLib\CreateProfilePage.ascx(183)
<asp:ListItem Text="This is a residence" Value="1" Selected="true"></asp:ListItem>
<asp:ListItem Text="This is a business" Value="0"></asp:ListItem>

ConLib\EditBillAddressPage.ascx(120)
<asp:ListItem Text="This is a residence" Value="1" Selected="true"></asp:ListItem>
<asp:ListItem Text="This is a business" Value="0"></asp:ListItem>

ConLib\EditMyAddressPage.ascx(118)
<asp:ListItem Text="This is a residence" Value="1" Selected="true"></asp:ListItem>
<asp:ListItem Text="This is a business" Value="0"></asp:ListItem>

ConLib\EditShipAddressPage.ascx(121)
<asp:ListItem Text="This is a residence" Value="1" Selected="true"></asp:ListItem><asp:ListItem Text="This is a business" Value="0"></asp:ListItem>

ConLib\OnePageCheckout.ascx(319)
<asp:ListItem Text="This is a residence" Value="1" Selected="true"></asp:ListItem>
<asp:ListItem Text="This is a business" Value="0"></asp:ListItem>

ConLib\OnePageCheckout.ascx(319)
<asp:ListItem Text="This is a residence" Value="1" Selected="true"></asp:ListItem>
<asp:ListItem Text="This is a business" Value="0"></asp:ListItem>

ZLA
Commodore (COMO)
Commodore (COMO)
Posts: 496
Joined: Fri Mar 13, 2009 2:55 pm

Re: ALL instances: Ship to Residence/Business default Residence

Post by ZLA » Sun Aug 23, 2009 9:58 pm

ksolito wrote:1) During checkout on *//Checkout/Default.aspx, if the 'Ship to a different address' radio button is checked, the diff address form still defaults to 'This is a business'. Where do I change this?
This occurs when a new blank address is created from the following line of code in InitializeAddressBook:

Code: Select all

if (shippingAddress == null) shippingAddress = new Address();
Changing it to the following seems to work:

Code: Select all

        if (shippingAddress == null)
        {
            shippingAddress = new Address();
            shippingAddress.Residence = true;
        }
Hope that helps.

User avatar
draneb
Captain (CAPT)
Captain (CAPT)
Posts: 314
Joined: Sun Jun 12, 2005 4:07 pm
Location: Texas
Contact:

Re: ALL instances: Ship to Residence/Business default Residence

Post by draneb » Sun Oct 11, 2009 10:15 pm

Hi ZLA,

What is the name of the file where that block of code is located?

I have looked the site over and I can't find it...

Thank you!
AC 7.0.3 build 13937

ZLA
Commodore (COMO)
Commodore (COMO)
Posts: 496
Joined: Fri Mar 13, 2009 2:55 pm

Re: ALL instances: Ship to Residence/Business default Residence

Post by ZLA » Sun Oct 11, 2009 10:26 pm

OnePageCheckout.ascx.cs in Conlib folder or in Conlib/Custom if you've customized it.

Post Reply