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-ASP Shopping Cart Customer Forum

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

 All Forums
 VPCart Forum
 Customization
 Minimum Order for some customers.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

poldy
Starting Member

25 Posts

Posted - January 16 2012 :  06:19:36  Show Profile  Reply with Quote
Hi,
Is there a way of enforcing a minimum order for some customers.

What I mean is:
All customers can order any amount.
Wholesale customers who get a discount have to order a minimum amount to qualify.

Thanks

carfin
VP-ASP Expert

United Kingdom
948 Posts

Posted - January 16 2012 :  10:58:21  Show Profile  Reply with Quote
Hi,

I think the easiest way to set this up is as follows:

Open shopcustomer.asp and save a copy.
Find the sub routine Sub CheckMinimumOrder

After the line dim MinimumOrder, ordertotal
Add the following customer type check code:
If getsess("customertype")<>"Wholesale" then
exit sub
end if


Save and close.

I've used Wholesale as the xcustomerpricetype for your discount customers. Replace with whatever your customer type is.

Input your minimum order amount into xminimumorder field.

Save and test

Regards,

Carrol
www.deanston-electrical.co.uk

Go to Top of Page

poldy
Starting Member

25 Posts

Posted - January 16 2012 :  11:26:05  Show Profile  Reply with Quote
Thanks - this looks great.
I'll implement it later
Regards

Poldy
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000