Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

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

Posted
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.

Treasurer MFC

Posted

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.

Posted
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>';

Treasurer MFC

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...