View Single Post
  #1  
Old 05-13-2004, 03:41 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default Block Membership Level Mod

Quote:
Originally Posted by MOC
We dont have XCART PRO, but maybe that would help a little bit. This is how how we suspend customers, when the customer is due:

1. We have added a Membership Level called "Blocked"
- we use this after we had to to sent out a payment reminder

2. We have added a 2nd Membership Level called "Blocked2"
- this is used after our payment reminder (10 days later) and received no payment or contact from the customer

1. Blocks the Checkout Feature, customer can add to the cart but not further.
2. Blocks the whole shop after the customer logs in.

For 1. we placed the following code, before the code of the checkout starts:

Code:
{if ($userinfo.membership eq "Blocked") AND ($usertype eq "C")}{else}{/if}

Before the {else} statement you could place your text or something like that. The else statement should be placed before the original code starts. the {/if} place at the end of the file.

The same code we used for the 2nd Membership level, this code was placed in home.tpl before the original code starts.

Maybe it works if you change the C to P or whatever the Provider will be called.

Hope, that'll help

SASKIA

This was posted by user MOC (SASKIA) in the Wishlist forum as part of another thread. Excellent answer, it fills a need I have been search the board for all day.

Thanks Saskia! I posted here because I am sure a LOT of users will find this info useful. I will be using this to block deadbeat customers (COD fraud) from placing another order!
Reply With Quote