I've used Zen-Cart on a few sites with decent success.
Now, I've got an odd customer requirement:
Users should have to pay a fee once a year to be able to see prices and buy goods.
While there are a few carts (ZC included) which will suppress prices for the non-logged-in user, I've not seen a "pay once a year to subscribe" feature.
What I was pondering was:
Where the price and add-to-cart controls would normally be displayed, replace it with a code block which would say "Am I a logged in user? Is my subscription still in effect?" If so, display the normal content. Otherwise display a link to buy the subscription.
If so, how can I do the following most easily:
- Calculate the email address of a logged-in user.
It looks like "select zen_customers.customers_email_address from zen_whos_online,zen_customers where zen_customers.customersid = zen_whos_online.customerid and zen_whos_online.sessid = \"".$_COOKIE["zenid"]."\""
should get me the customer's email address. If I then use a table of "[email protected] expires at timestamp 1234567890123", I could switch. Is there a better way, especially considering that the email may need to be retrieved for the renewal page, which will be outside the main flow of the site?
- Work around the "price" and "add to cart" rendering.
I'm thinking the files corresponding to the category listing, the search results, and the individual product display will all need tweaks. What are those, off-hand?
Alternatively, is there a boxed solution to this? I didn't see anything quite like it on add-ons. I could even well see using another cart entirely if there's one built to handle this need (Zen does lots of stuff probably not needed.)


)
