UPS rates.. business/residential

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
compunerdy
Admiral (ADM)
Admiral (ADM)
Posts: 1283
Joined: Sun Nov 18, 2007 3:55 pm

UPS rates.. business/residential

Post by compunerdy » Wed Sep 17, 2008 12:21 pm

I need help figuring out what the frack is going on.

I (as far as I know) have taken out any possible way a customer can select their address as a business address. We had way too many people saying their address was a business and for UPS that is around a $2 difference. Yet people who we know we have changed to residential somehow keep getting changed back to business. Is there someplace I can change the code so there is no possible way of having business rates returned? Then it wouldnt matter what they have set their address as.

Robbie@FireFold
Commodore (COMO)
Commodore (COMO)
Posts: 433
Joined: Wed May 28, 2008 9:42 am
Location: Concord, NC
Contact:

Re: UPS rates.. business/residential

Post by Robbie@FireFold » Wed Sep 17, 2008 1:04 pm

I sent this to one of my coders. We solved this problem already.

He will be replying shortly.
Robbie Hodge
General Manager
Robbie@FireFold.com
http://www.FireFold.com

User avatar
William_firefold
Commander (CMDR)
Commander (CMDR)
Posts: 186
Joined: Fri Aug 01, 2008 8:38 am

Re: UPS rates.. business/residential

Post by William_firefold » Wed Sep 17, 2008 1:11 pm

We had a somewhat hackish solution for this, but it does the job.

Open your onepagecheckout.ascx file and search for the word "type" to find the right place.
when you're there, just set the dropdown like this:

Code: Select all

                        
<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="1"></asp:ListItem>
</asp:DropDownList>
No matter what they choose, it gets set to residence.
Hope this helps.

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

Re: UPS rates.. business/residential

Post by compunerdy » Wed Sep 17, 2008 3:13 pm

I already took out that option. What is wierd is we will go in and change the customers address to residential and then later they will place another order and it is somehow back to business. Yet I cant find any way for them to make this change since I took out everyplace I could find to change it. Which is why I was hoping for a code change deeper like when the actual call is sent to ups or something.

I took out that whole chunk of code you said to modify so it wont display a option at all. I did check the database and made sure the default would be residential.

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

Re: UPS rates.. business/residential

Post by jmestep » Wed Sep 17, 2008 3:25 pm

They might be changing it in their profile somewhere- I just haven't checked to see if that is possible.
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

keats76
Commander (CMDR)
Commander (CMDR)
Posts: 117
Joined: Sat Dec 15, 2007 4:45 pm

Re: UPS rates.. business/residential

Post by keats76 » Fri Sep 19, 2008 9:22 am

You might want to check the ac_Addresses table in the database. Perhaps they created the address as a Business, then you removed the selection option, and now it simply defaults to what was in the DB? You'll want to look at the Residence field specifically. You could do a blanket update on that table to ensure that they are all set to business (or residence).

Thanks,
Mike

Post Reply