Welcome, Guest ( Customer Panel | Login )




 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-CART 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
0 Item(s)
$0.00