RE: How to modify specials to only allow one per customer order?
Ajeh <[email protected]>
| Newsgroups | gmane.comp.web.oscommerce.features |
|---|---|
| Message-ID | <e0a52f3bafee09b9290d96eaef8ffef0@osCommerce-Forums> |
This message was sent from: Features http://forums.oscommerce.com/viewtopic.php?p=178202#178202 ---------------------------------------------------------------- It can be written. I have code written into the SECv1.0b that can test how many of a product based on a condition of the product table exist via a function call that can test any field and count for it. It could be used to check for a flag in the products table that indicates only one. Then the validation routine for the checkout that is built in could be modified to test for this and not allow the checkout until this is fixed. Or, you can modify the Shopping cart features in application_top.php to test for this and not allow an add to cart, buy now or update from the shopping cart to work when this condition exist. Got all that?! :shock: