Page 1 of 1

ALL instances: Ship to Residence/Business default Residence

Posted: Fri Jun 19, 2009 12:35 pm
by ksolito
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>

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

Posted: Sun Aug 23, 2009 9:58 pm
by ZLA
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.

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

Posted: Sun Oct 11, 2009 10:15 pm
by draneb
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!

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

Posted: Sun Oct 11, 2009 10:26 pm
by ZLA
OnePageCheckout.ascx.cs in Conlib folder or in Conlib/Custom if you've customized it.