Originally Posted by
kuroi
If you are willing to roll your sleeves up and do some coding then this is one of those fun jobs where some small tweaks can have a fairly large impact. In outline here's how I'd do this ...
1) I'd add a field, "level", to the products table and then edit the collect_info, preview_info and update_product scripts in admin to be able to maintain it.
2) Then I'd add a field, "level" to the customers table. and edit the customer script in admin to be able to maintain that for each customer.
3) Finally, I'd find all the database queries for listings (i.e. all products, new products, featured products, specials, index and search results) and listing boxes (new products, featured products, specials and upcoming products) and add an extra filter to suppress products which have a higher level that that allocated to the customer (I would ensure that customers not logged in would be treated as having a level of zero).
None of this is particularly difficult, though would require some basic PHP, MySQL and understanding of how Zen Cart pages are constructed.
The periodic charging could be handled simply and independently of the product restrictions by installing the invoice add-in module.
Bookmarks