- Installed CCK Computed Field module, added a new field to my coupon content type called "Coupon ID" with the following values:
Computed Code: $node_field[0]['value'] = uniqid();
Display Format: $display = $node_field_item['value'];
Required: Yes
Number of Values: 1
Data Type: varchar(32)
You only need to give 1 role the ability to see this unique coupon ID #, so that they can give it to their vendors to compare a coupon that a customer might bring in. However you want to handle that aspect is up to you.
Please correct me if I'm wrong. Following your instructions generates a unique coupon ID. For example: 4d27b3094428b. All visitors buying this coupon will get the exact same code.
How could I achieve a situation where all the coupons sold have a different coupon ID, and the merchant can access my site to verify if the coupon ID presented is valid or not?
Your instructions have been VERY helpful indeed. I really hope to find a solution to that last problem as well.
