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
 General help me questions
 Blocking particular customer
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

39 Posts

Posted - August 30 2006 :  19:39:22  Show Profile  Visit femsawyer's Homepage  Reply with Quote
Is there a way to block a particular customer from placing future orders? I guess it would be preferable to be able to block their IP address so they can't just create a new account. I was looking for something in their customer record, but didn't see any way to do it.


Partner/Designer: www.3Scrapateers.com
Digital Scrapbooking - Preserve your Memories!


4282 Posts

Posted - August 30 2006 :  22:40:17  Show Profile  Visit support's Homepage  Reply with Quote
Hi Lianne,

You can try using the following in the very top of the shoppage_header.htm file. Change the IP addresses below to the ones you want to block.

dim servervariablesip
'response.write servervariablesip ' uncomment this for testing

If request.servervariables("REMOTE_ADDR") = "" then
response.redirect "http://www.goaway.com"
ElseIf request.servervariables("REMOTE_ADDR") = "" then
response.redirect "http://www.microsoft.com"
Elseif (left(request.servervariables("REMOTE_ADDR"),7)="213.164") then
' you can also block IP ranges if you have problems from blocks of IP's as in all IP's from a particular country. Note the 7 matches the number of characters in the quotes
response.redirect "http://www.google.com"
End If
Go to Top of Page

VP-ASP Super User

256 Posts

Posted - September 03 2006 :  14:12:27  Show Profile  Visit elammers's Homepage  Reply with Quote
But if their IP isn't static, you could potentially be blocking other customers when they have that IP assigned to them, right?

I looked in the customer's table and saw the "productgroup" field. Couldn't you use that somehow and set up a single matching hidden product just for that customer so that was all they saw? Is that how that function works?

Or maybe try the discount field in reverse. Double their prices!!

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