Page 1 of 1
UPS rates.. business/residential
Posted: Wed Sep 17, 2008 12:21 pm
by compunerdy
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.
Re: UPS rates.. business/residential
Posted: Wed Sep 17, 2008 1:04 pm
by Robbie@FireFold
I sent this to one of my coders. We solved this problem already.
He will be replying shortly.
Re: UPS rates.. business/residential
Posted: Wed Sep 17, 2008 1:11 pm
by William_firefold
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.
Re: UPS rates.. business/residential
Posted: Wed Sep 17, 2008 3:13 pm
by compunerdy
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.
Re: UPS rates.. business/residential
Posted: Wed Sep 17, 2008 3:25 pm
by jmestep
They might be changing it in their profile somewhere- I just haven't checked to see if that is possible.
Re: UPS rates.. business/residential
Posted: Fri Sep 19, 2008 9:22 am
by keats76
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