any ideas on how to
Permalink
limit the number of a certain block type based on a purchased package?
I'm thinking:
1. grab the bID
2. check eComm purchased package
3. if/else the bID count
4. return a "sorry, you have reached the max count"
not sure where the best place to put this would be though.
I don't really want to get into hacking the core. maybe an added block that is added to each template header?
then my C5 installs would just have this block pre-packaged and I would just code that into my templates.
C
I'm thinking:
1. grab the bID
2. check eComm purchased package
3. if/else the bID count
4. return a "sorry, you have reached the max count"
not sure where the best place to put this would be though.
I don't really want to get into hacking the core. maybe an added block that is added to each template header?
then my C5 installs would just have this block pre-packaged and I would just code that into my templates.
C
Both ideas involve creating a new table.
Either one that has the columns uID, bID and count (cleaner) or one that just has uID and bID (easier).
On purchase, run a short script that adds to the table based on, you guessed it, the current user's ID and either the block ID or however the eComm package handles item IDs.
Then, on the front end, have a little if/then script that references the count column in the db, or counts the number of corresponding uID and bID rows.
Can't think of any less intrusive way off the top of my head.