How to make sure we charge the right shipping

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
Will
Captain (CAPT)
Captain (CAPT)
Posts: 263
Joined: Fri Oct 05, 2007 8:02 am

How to make sure we charge the right shipping

Post by Will » Fri Feb 29, 2008 12:56 pm

I noticed when a customer is checking out they can specify whether the ship-to address is a business or residence. If they choose business they are charged less for shipping.

There doesn't seem to be any validation once they've made that choice. So if someone is savvy, they can choose "This is a business" and the storefront charges them the business rate even if it's actually a residential address.

If this happens, UPS will still charge us the residential rate through WorldShip.

How are people handling this problem? Do you just eat the difference?

Is there any way for us to lock down the shipping to residential only?

Or am I misunderstanding something?

Thanks.

User avatar
compunerdy
Admiral (ADM)
Admiral (ADM)
Posts: 1283
Joined: Sun Nov 18, 2007 3:55 pm

Post by compunerdy » Fri Feb 29, 2008 12:57 pm

I think you are stuck with that setup. You would probably need custom code to remove the option for them to select business.

User avatar
Shopping Cart Admin
AbleCommerce Admin
AbleCommerce Admin
Posts: 3055
Joined: Mon Dec 01, 2003 8:41 pm
Location: Vancouver, WA
Contact:

Post by Shopping Cart Admin » Fri Feb 29, 2008 12:58 pm

Hello Will,

Hard code it to business if it's a big deal as there isn't any way to know or any form of lookup available for this information.
Thanks for your support

Shopping Cart Guru
AbleCommerce.com
Follow us on Facebook

Will
Captain (CAPT)
Captain (CAPT)
Posts: 263
Joined: Fri Oct 05, 2007 8:02 am

Post by Will » Fri Feb 29, 2008 1:04 pm

If we hard-code the checkout process to charge residential rates is there any way to make the shipping estimator in the basket return residential rates as well?

Thanks.

User avatar
Shopping Cart Admin
AbleCommerce Admin
AbleCommerce Admin
Posts: 3055
Joined: Mon Dec 01, 2003 8:41 pm
Location: Vancouver, WA
Contact:

Post by Shopping Cart Admin » Fri Feb 29, 2008 1:06 pm

Hello,

not that I could see from my review of the code, but let's see what our developers might say to the other post before we assume anything.
Thanks for your support

Shopping Cart Guru
AbleCommerce.com
Follow us on Facebook

User avatar
cerami2
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 103
Joined: Thu Nov 08, 2007 5:29 am
Location: Plymouth MN
Contact:

make resident and business dropdown invisable

Post by cerami2 » Mon Mar 03, 2008 3:40 am

is there a way of making the dropdown not show up on the page
so it is set to resident all the time
Regards
Joe Cerami

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Post by jmestep » Mon Mar 03, 2008 5:59 am

I commented out this in the conlib/onepagecheckout.ascx:
<!--<tr>
<th class="rowHeader" valign="top">
<asp:Label ID="BillToAddressTypeLabel" runat="server" Text="Type:" AssociatedControlID="BillToAddressType" EnableViewState="false"></asp:Label>
</th>
<td valign="top">
<asp:DropDownList ID="BillToAddressType" runat="server" EnableViewState="false">
<asp:ListItem Text="This is a residence" Value="1" Selected="true"></asp:ListItem>
<asp:ListItem Text="This is a business" Value="0"></asp:ListItem>
</asp:DropDownList>
</td>
</tr>-->

I had only a test shipping method so it might not work with real methods. I tried changing this also to visible="false", but the row still showed up.
<asp:DropDownList ID="BillToAddressType" runat="server" EnableViewState="false">
You would need to change the code further down the page also if they picked a different shipping address.
You would need to disable the selection in
Members/EditMyAddress.aspx
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
bobr2k
Commander (CMDR)
Commander (CMDR)
Posts: 183
Joined: Fri Oct 26, 2007 2:31 pm
Location: Illinois

Post by bobr2k » Mon Mar 03, 2008 8:58 am

I tried commenting then deleting two rows from this ascx page
conlib/onepagecheckout.ascx
... the code was not recognized because I had put it in conlib\custom directory. I then tried changing the scriplet to access conlib:custom\onepagecheckout but that didn't work because the page kept failing - wanting related files to be placed in that directory, (basket, etc). Apparently you can't just modify one element and have it picked up from custom directory. I thought the custom conlib technique worked similar to the scriptlet technique. (this ought to stoke Joe's "enlightenment" juices) :lol:
Bob R.
"Bills travel through the mail at twice the speed of checks." -- Steven Wright

ayilmaz
Ensign (ENS)
Ensign (ENS)
Posts: 20
Joined: Thu Jan 03, 2008 4:37 pm

Post by ayilmaz » Wed Mar 05, 2008 11:50 pm

To make shipping estimator in basket return residential rates,
add this line to ConLib/BasketShippingEstimator.ascx.cs

// CREATE AN ADDRESS INSTANCE TO HOLD ESTIMATE DESTINATION
Address estimateAddress = new Address();
bool isCA = Regex.Match(safePostalCode, "^[A-Z][0-9][A-Z][0-9][A-Z][0-9]$").Success;
estimateAddress.CountryCode = isCA ? "CA" : "US";
estimateAddress.PostalCode = safePostalCode;
->>> Line added estimateAddress.Residence = true;
This basically sets the address to residential.
Will wrote:If we hard-code the checkout process to charge residential rates is there any way to make the shipping estimator in the basket return residential rates as well?

Thanks.

User avatar
cerami2
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 103
Joined: Thu Nov 08, 2007 5:29 am
Location: Plymouth MN
Contact:

thank you that works but how do you change the checkout

Post by cerami2 » Thu Mar 06, 2008 6:15 am

there is two dropdown on the checkout is there a way of having the type: save the type but have it push the same rats as the resident


Thanks
Joe

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Post by jmestep » Thu Mar 06, 2008 7:12 am

I set up a test payment method and the orders go thru OK with the section that I posted earlier commented out and ta similar section under the shipping address> I had to comment out the whole section, not just the select box

Code: Select all

<!--<tr>
                                                    <th class="rowHeader" valign="top">
                                                        <asp:Label ID="ShipToAddressTypeLabel" runat="server" Text="Type:" AssociatedControlID="ShipToAddressType" EnableViewState="false"></asp:Label>
                                                    </th>
                                                    <td valign="top">
                                                        <asp:DropDownList ID="ShipToAddressType" runat="server" EnableViewState="false">
                                                            <asp:ListItem Text="This is a residence" Value="1" Selected="true"></asp:ListItem>
                                                            <asp:ListItem Text="This is a business" Value="0"></asp:ListItem>
                                                        </asp:DropDownList>
                                                    </td>
                                                </tr>-->
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

Post Reply