Thank You Markus. It works!!! You da Man!!!
I think I had earlier except I left both in so one would cancel the other out. I almost gave up too. I really appreciate your help.
Aloha from Kona,
Robin
On to the next hurdle....
User Profile
Collapse
-
Here is the source code from shopping_cart.p hp with an item added. There is a lot going on here.
...Code:<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html dir="LTR" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>KonaCoffee.com</title> <base
Leave a comment:
-
Thank you Markus....I think I'm getting close but still missing something. (feeling pretty stupid actually) Here is what I have that doesn't work.
...Code:Coffee Club:<input type="checkbox" name="promo_code" value="CLUB" /> <?php $promo_code = CLUB; if( isset( $_POST['promo_code'] ) ) { $easy_discount->add('CCD','Coffee Club Discount',$cart->show_total()*0.1);Leave a comment:
-
Thank You. Yes this where I'm running into the brick wall. Would you be so kind as to show me how to retrieve it? I have tried numerous $_POST variations and
if (isset($_POST[''])) variations and either get syntax errors or I'm not retrieving the information. All I want to do is make it so my customer doesn't have to manually enter the text "CLUB", they can check the box and by doing so, the text they would of had to manually enter...Leave a comment:
-
Hi Markus,
Is this what you mean by "retrieving the value of the textbox"
<form name="cart_quan tity" action="http://www.konacoffee. com/catalog/shopping_cart.p hp?action=updat e_product" method="post">
Currently after you enter text in the text box and click an "update" button. The discount is applied...ie: the current code for manually entering and retrieving...Leave a comment:
-
Hi Markus,
Thank you for your help. That may be the problem? Maybe I'm not retrieving the value. The form post for this page is
<form name="cart_quan tity" action="http://www.konacoffee. com/catalog/shopping_cart_a ction-update_product. html" method="post">
When I send the information by manually inputting the text you just click "Update" and the same page refreshes with...Leave a comment:
-
Using a Checkbox or Radio Button to pass text to a php script
I currently am running a promotional code to get a discount to be given in my oscommerce shopping cart. I have working code when the text is manually entered on the shopping_cart.p hp page.
...Code:<?php echo '<td class="main">' . tep_draw_separator('pixel_trans.gif', '20', '1') . tep_draw_input_field('promo_code', '', 'size="10"') . tep_draw_separator('pixel_trans.gif', '5', '1') . 'Promotion
No activity results to display
Show More
Leave a comment: