BuddahBoy Posted March 22, 2006 Posted March 22, 2006 Greetings - will this contribution allow me to place choices for people to indicate which qualificaitons they have for discount? For example, Senior Citizen, Student, Teacher, etc Thank you Quote
boxtel Posted March 22, 2006 Posted March 22, 2006 Greetings - will this contribution allow me to place choices for people to indicate which qualificaitons they have for discount? For example, Senior Citizen, Student, Teacher, etc Thank you I am not familiar with what you want so you need to be a little more specific about what you have in mind. Quote Treasurer MFC
BuddahBoy Posted March 22, 2006 Author Posted March 22, 2006 Sorry - it was a very very long day yesterday! I will be using OSC to allow people to register for workshops, treating the workshops as products in a store. Some people qualify for discounts as either senior citizens, or students, etc - about 6 differently titled discounts will be available. What my question should have asked - is it possible for the customer, sometime during the transaction, to click a radio button or check box or choose in some manner, a discount that he/she is entitled to? I could do this using attributes, but I'm already using attributes for other things and it would be too complicated. Hope this is clearer; yesterday was a 16 hour day and my brain was fried when I posted LOL!! Thank you very much for the assistance. Quote
boxtel Posted March 22, 2006 Posted March 22, 2006 Sorry - it was a very very long day yesterday! I will be using OSC to allow people to register for workshops, treating the workshops as products in a store. Some people qualify for discounts as either senior citizens, or students, etc - about 6 differently titled discounts will be available. What my question should have asked - is it possible for the customer, sometime during the transaction, to click a radio button or check box or choose in some manner, a discount that he/she is entitled to? I could do this using attributes, but I'm already using attributes for other things and it would be too complicated. Hope this is clearer; yesterday was a 16 hour day and my brain was fried when I posted LOL!! Thank you very much for the assistance. sure, it all depends on where and how you want the choices displayed and on what you want to base the discount amount. as example with radio buttons: switch ($_POST['discount']) { case 'none' : $easy_discount->clear('TD'); break; case 'student' : $easy_discount->set('TD','Discount for Students', 100); break; case 'teacher' : $easy_discount->set('TD','Discount for Teachers', 200); break; case 'professor' : $easy_discount->set('TD','Discount for Professors', 300); break; case 'senior' : $easy_discount->set('TD','Discount for Senior Citizens', 400); break; default : } echo '<tr><td align="left">'; echo $easy_discount->total().'<br>'; echo tep_draw_form('discount', tep_href_link(FILENAME_CONTACT_US, 'action=send', 'NONSSL')); echo tep_draw_selection_field('discount', 'radio', 'none',(($_POST['discount'] == '') ? true : false)).'None<br>'; echo tep_draw_selection_field('discount', 'radio', 'student',(($_POST['discount'] == 'student') ? true : false)).'Student<br>'; echo tep_draw_selection_field('discount', 'radio', 'teacher',(($_POST['discount'] == 'teacher') ? true : false)).'Teacher<br>'; echo tep_draw_selection_field('discount', 'radio', 'professor',(($_POST['discount'] == 'professor') ? true : false)).'Professor<br>'; echo tep_draw_selection_field('discount', 'radio', 'senior',(($_POST['discount'] == 'senior') ? true : false)).'Senior<br>'; echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); echo '</form>'; echo '</td></tr>'; Quote Treasurer MFC
BuddahBoy Posted March 22, 2006 Author Posted March 22, 2006 Thank you Amanda - I'm off to test! Appreciate you taking the time 8>) Ron Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.