Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 General help me questions
 Blocking particular customer
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

femsawyer
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.

Thanks,
Lianne

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

support
Administrator

4679 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
servervariablesip=request.servervariables("REMOTE_ADDR")
'response.write servervariablesip ' uncomment this for testing

If request.servervariables("REMOTE_ADDR") = "127.0.0.1" then
response.redirect "http://www.goaway.com"
ElseIf request.servervariables("REMOTE_ADDR") = "123.123.123.132" 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

elammers
VP-CART Super User

USA
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,
Eric
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