How to make sure we charge the right shipping
How to make sure we charge the right shipping
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.
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.
- compunerdy
- Admiral (ADM)
- Posts: 1283
- Joined: Sun Nov 18, 2007 3:55 pm
- Shopping Cart Admin
- AbleCommerce Admin
- Posts: 3055
- Joined: Mon Dec 01, 2003 8:41 pm
- Location: Vancouver, WA
- Contact:
- Shopping Cart Admin
- AbleCommerce Admin
- Posts: 3055
- Joined: Mon Dec 01, 2003 8:41 pm
- Location: Vancouver, WA
- Contact:
- cerami2
- Lieutenant Commander (LCDR)
- Posts: 103
- Joined: Thu Nov 08, 2007 5:29 am
- Location: Plymouth MN
- Contact:
make resident and business dropdown invisable
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
so it is set to resident all the time
Regards
Joe Cerami
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
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
<!--<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
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
I tried commenting then deleting two rows from this ascx page 
... 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)conlib/onepagecheckout.ascx

Bob R.
"Bills travel through the mail at twice the speed of checks." -- Steven Wright
"Bills travel through the mail at twice the speed of checks." -- Steven Wright
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.
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.
- cerami2
- 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
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
Thanks
Joe
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
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
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