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.
UPS rates.. business/residential
- compunerdy
- Admiral (ADM)
- Posts: 1283
- Joined: Sun Nov 18, 2007 3:55 pm
-
- Commodore (COMO)
- Posts: 433
- Joined: Wed May 28, 2008 9:42 am
- Location: Concord, NC
- Contact:
Re: UPS rates.. business/residential
I sent this to one of my coders. We solved this problem already.
He will be replying shortly.
He will be replying shortly.
- William_firefold
- Commander (CMDR)
- Posts: 186
- Joined: Fri Aug 01, 2008 8:38 am
Re: UPS rates.. business/residential
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:
No matter what they choose, it gets set to residence.
Hope this helps.
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>
Hope this helps.
- compunerdy
- Admiral (ADM)
- Posts: 1283
- Joined: Sun Nov 18, 2007 3:55 pm
Re: UPS rates.. business/residential
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.
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.
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: UPS rates.. business/residential
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
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
Re: UPS rates.. business/residential
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
Thanks,
Mike