Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 How do I prevent some users from ordering online?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

bardentech
Starting Member

39 Posts

Posted - July 18 2011 :  08:37:08  Show Profile  Reply with Quote
We have custom pricing for resellers of our products and we place their orders on our in house system where we can determine shipping rates, control order levels, etc. We also have VPASP 6.5 running for retail online customers. Today we had a reseller log onto the website and order directly with their custom pricing and ended up getting free shipping because that's what we offer retail customers on orders over $50.

How can I prevent resller's from ordering online? Is there a way to prevent all contacttypeid's with the exception of 1 from loggin on?

Any help would be appreciated.

support
Administrator

4679 Posts

Posted - July 18 2011 :  22:51:04  Show Profile  Visit support's Homepage  Reply with Quote
Unfortunately to prevent a certain type of customer from ordering would require a change to the core code.

If you would like a quote please feel free to post a ticket in our helpdesk at:

https://helpdesk.vpasp.com

Thank you.

Cam Flanigan
VP-ASP Cart Support

Follow us on Twitter:
http://www.twitter.com/vpasp
Go to Top of Page

carfin
VP-CART Expert

United Kingdom
948 Posts

Posted - July 19 2011 :  05:54:26  Show Profile  Reply with Quote
Hi,

on our site I have developed a simple check for a similar problem. We occasionally set up provisional accounts which allow potential trade customers to login to the site for a limited period to see prices and stock levels but they are not allowed to add anything to the cart.

I use v6.5. If you're interested, let me know.

Regards,

Carrol
www.deanston-electrical.co.uk
Go to Top of Page

bardentech
Starting Member

39 Posts

Posted - July 19 2011 :  09:39:54  Show Profile  Reply with Quote
I am also using 6.5. I'm interested in seeing how you worked around this.

Go to Top of Page

carfin
VP-CART Expert

United Kingdom
948 Posts

Posted - July 19 2011 :  11:11:07  Show Profile  Reply with Quote
If you're using customer based pricing then any call to display products will have stored the customer type in a session variable so all you have to do is check the data stored in this variable when the order button is clicked.

Here's how I achieved this.

I have our provisional accounts as contacttypeid = 2

open shopaddtocart.asp and make a backup copy.

Find Sub ProcessNewAdd()

Check the value and create your custom error message.
Insert the following code after the line GetInputValues

if GetSess("customertype")="2" then
shoperror "Sorry, you cannot place an order using a provisional account"
end if


Hope this helps.

Regards,

Carrol
www.deanston-electrical.co.uk

You can also add a responseredirect URL if you want to but most customers will automatically use the Back button on their browser if they get a message like this.

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