VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-Cart StoreFront Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Save Password
Forgot your Password?

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

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.

VP-ASP New User

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.

[email protected]
Go to Top of Page

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