Hi there, and happy new year!
I need a contribution to our online store.
We run a store where we sell food and other supplies to reptiles and such. We want to give members of an organisation,
Norsk Herpetologisk Forening, 15% off all purchases.
Since reptiles are illegal in Norway, the organisation keep the identity of their members secret.
What we recieve is a list with members no. and postal code (They generate the members no. based on the postal code and a random number) I recon I may get the algoritm they use to generate number if I ask nicely...
So comes the problem:
We need a contribution which allows the customers to check a checkbox if he/she is a member of this organisation.
When checked, they are allowed to enter their members no.
The script will then (hopefully) check the number and postal code against the list as mentioned, or against the algoritm used to generate the number (I believe the latter would be easier).
If this comes back TRUE, it will take 15% off the purchase, else it will give the customer info that the number isn't legit, and tell them to contact us.
I've look in every corner of this forum without luck.
If there is a contribution that can do this, please let me know.
Or please let me know how to work this out myself... I know minimal .php, but are always willing to learn something new.
Morten Mørch

