PDA

View Full Version : Can you set store order limits?


KayfabeRockStar
04-07-06, 03:25 PM
Is there a way to set the store to only be able to accept 100 orders per day? This could apply to MIVA 5 also.

Then, if the order limit has been reached, use an IF, THEN to say you can still order from "another store"...

Don't ask why, just trying to answer a question for a client. I've never heard this one before.

THANKS!!

Vic - WolfPaw Computers
04-07-06, 03:38 PM
Is there a way to set the store to only be able to accept 100 orders per day? This could apply to MIVA 5 also.

Then, if the order limit has been reached, use an IF, THEN to say you can still order from "another store"...

Don't ask why, just trying to answer a question for a client. I've never heard this one before.

THANKS!!

You could probably script something or hire someone to script a little routine that checked for this and put the store in maintenance mode after 100 orders have been reached, and reopen the store after midnight or some such thing.

I wouldnt recommend this at all though. If its an issue with how many items are available, I'd use inventory rather than closing a store and preventing shopping/purchasing.

ILoveHostasaurus
04-07-06, 03:42 PM
This could be done pretty easily by a custom module I believe, you'd need to find someone to write it though. In MM4 what the module would do is just run on the OINF screen, count the current calendar day's orders, if less than 100, display all the normal customer fields, if not, display the message. It would require the OpenUI to control that I believe. Maybe this could even be done with Viking's Other Page Templates if there is an appropriate set of OpenUI tokens for counting records meeting a certain criteria. You just wrap the customer fields display with the token code.

PCINET - Andreas
04-07-06, 03:59 PM
In case you're interested in such a function, let me know we write all kinds of additional Miva Script functions. You'll need OpenUI installed!

KayfabeRockStar
04-07-06, 04:05 PM
This all sounds great - Vic I will take your advice with the maintainance options. I really don't want to go to maintainance mode, just basically not allow any more "shopping." I will keep you guys in mind for the custom work if needed!!
It's nice to know it's possible with the right things going. I'm not sure yet if this will be developed in ver 4 or 5. We may need 5 to use MySQL.

I welcome any more comments, and thank you guys so much for your input!

Vic - WolfPaw Computers
04-07-06, 06:21 PM
This all sounds great - Vic I will take your advice with the maintainance options. I really don't want to go to maintainance mode, just basically not allow any more "shopping." I will keep you guys in mind for the custom work if needed!!
It's nice to know it's possible with the right things going. I'm not sure yet if this will be developed in ver 4 or 5. We may need 5 to use MySQL.

I welcome any more comments, and thank you guys so much for your input!

If done for MM5, it would be a whole different ballgame - MM5 doesnt support OpenUI.

ILoveHostasaurus
04-07-06, 06:27 PM
The MM5 module would actually be easier. With a single SQL query you can determine how many orders have been placed for the day; just need a way to cause the store to be unshoppable when the count is reached.

Vic - WolfPaw Computers
04-07-06, 06:34 PM
The MM5 module would actually be easier. With a single SQL query you can determine how many orders have been placed for the day; just need a way to cause the store to be unshoppable when the count is reached.

That's the more difficult part I was referring to. It would be much more difficult to code without OpenUI.