[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Discount given based on text string...
****** message to minivend-users from trese <digital@arcane.specialty-books.com> ******
Dear and Helpful List:
I would like to setup a discount based on the value selected by the customer in
a select field. I'm setting a variable called "site_name" to a string. I need
to use the string because the system we use to do inventory and all the other
order stuff need to know the location of the student.
An example of what the students would be selecting from the <select> tag is :
AEF/ American Electric Power - Ft. Wayne
BTS/ Breed Tech - Sterling Hghts, MI
GMH/ GM - Auburn Hills, MI
I'd like to give all customers a 5% discount and any from a GM site a 10%
discount. Is the best way to do this a LONG (their are about 80 different
sites) if-elsif-elsif... statement, or is their another way.
TIA,
========================================
Cory Trese
email : digital@specialty-books.com
phone : (740) 594 - 2274, ext 223
phax : (740) 593 - 3045
========================================
Mail Sent from
Specialty Books,
Athens Ohio, 45701
www.specialty-books.com
RedHat Linux, Hedwig
P][ / 2.3.5
========================================
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list