Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 residential/commercial ups based on customerid
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

plasma
Starting Member

19 Posts

Posted - February 25 2004 :  12:58:26  Show Profile  Reply with Quote
I am using customerbased pricing for wholesale customers, is there a way so that if a customer is logged in as wholesale cusotmer that there shipping is calculated based upon UPS commercial delivery, and if they are logged in as retail customer that there shipping is based on UPS residential devlivery ?

My Asp is weak, otherwise I could figure this out.

In upsrealconfig.asp there is a line:

const Residentialind=1

and I need to put in an expression like:

Dim customertype
customertype = getsess ("customertype")
if customertype = "wholesale" then
const Residentialind=0

but obviously this wont work like this

How would I make it work ?

Thanks a lot, David.



siraj
VP-CART New User

USA
194 Posts

Posted - February 25 2004 :  15:12:02  Show Profile  Visit siraj's Homepage  Reply with Quote
You can do the same thing but instead of assigning the values to cont Residentialind define a variable and assign the value then out side
asign to const Residentialind.
GOOD LUCK.
SJ.


[email protected]
Go to Top of Page

plasma
Starting Member

19 Posts

Posted - February 25 2004 :  16:51:09  Show Profile  Reply with Quote
Could you show me an example, if you have time? Thanks.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00