Simon0601 Posted March 1, 2006 Posted March 1, 2006 I'm looking for a good discount module. I want to leak out a discount code on the net that entitles all who enter it to something like a 5% discount. This should increase business. I don't know which discount module i should use for this. Please suggest one. I need to get this going as soon as possible. Thanks in advance. Simon
insomniac2 Posted March 1, 2006 Posted March 1, 2006 I think your best bet would be to use the CCGV Contribution. Set up a redeem voucher that anyone can use when they enter the redeem code towards a purchase. Link: http://www.oscommerce.com/community/contri...all/search,CCGV Hope that helps.
boxtel Posted March 1, 2006 Posted March 1, 2006 I'm looking for a good discount module. I want to leak out a discount code on the net that entitles all who enter it to something like a 5% discount. This should increase business. I don't know which discount module i should use for this. Please suggest one. I need to get this going as soon as possible. Thanks in advance. Simon 1) just install easy discount, 2) add this to the top of shopping_cart.php: if (isset($HTTP_POST_VARS['coupon_code'])) { if ($HTTP_POST_VARS['coupon_code'] != '') { $coupon_code = $HTTP_POST_VARS['coupon_code']; if (!tep_session_is_registered('coupon_code')) tep_session_register(coupon_code); } else { $coupon_code = ''; } } if (($cart->count_contents() > 0)) { switch (strtolower($coupon_code)) { case 'yourcouponcode' : $new_discount = $cart->show_total() * 0.1; $easy_discount->set('COUPON1','10% Coupon Discount', $new_discount); break; default : $easy_discount->clear('COUPON1'); } } else { $easy_discount->reset(); } and add this form on the page itself: <tr> <td width="100%" align="center"> <?php echo tep_draw_form('Coupon', tep_href_link(basename($PHP_SELF), '', 'NONSSL')); ?> <table> <tr> <td valign="top" align="center"><?php echo 'Coupon Code'; ?><br><?php echo tep_draw_input_field('coupon_code', '', ' size="30" class="inputbox" '); ?><br> <?php echo tep_image_submit('button_cash_in.gif', 'Cash in Coupon'); ?></td> </tr> </table> </form> </td> </tr> Treasurer MFC
boxtel Posted March 1, 2006 Posted March 1, 2006 ha amander where can i see this mod in action just go to my shopping cart page, I will activate a coupon code 'ABCDE' for 10 minutes. Treasurer MFC
Guest Posted May 1, 2006 Posted May 1, 2006 1) just install easy discount, 2) add this to the top of shopping_cart.php: if (isset($HTTP_POST_VARS['coupon_code'])) { if ($HTTP_POST_VARS['coupon_code'] != '') { $coupon_code = $HTTP_POST_VARS['coupon_code']; if (!tep_session_is_registered('coupon_code')) tep_session_register(coupon_code); } else { $coupon_code = ''; } } if (($cart->count_contents() > 0)) { switch (strtolower($coupon_code)) { case 'yourcouponcode' : $new_discount = $cart->show_total() * 0.1; $easy_discount->set('COUPON1','10% Coupon Discount', $new_discount); break; default : $easy_discount->clear('COUPON1'); } } else { $easy_discount->reset(); } and add this form on the page itself: <tr> <td width="100%" align="center"> <?php echo tep_draw_form('Coupon', tep_href_link(basename($PHP_SELF), '', 'NONSSL')); ?> <table> <tr> <td valign="top" align="center"><?php echo 'Coupon Code'; ?><br><?php echo tep_draw_input_field('coupon_code', '', ' size="30" class="inputbox" '); ?><br> <?php echo tep_image_submit('button_cash_in.gif', 'Cash in Coupon'); ?></td> </tr> </table> </form> </td> </tr> I've attempted this Amanda, but with no success. I don't know what I am doing wrong, I have read through your support thread and the coupons thread, but it just isn't working. I managed to get the little box to show up on the shopping cart, but the image button is not there, where do I get this and install it? Also, the actual discount isn't working either. I have resorted back to using your 'Discount for All' command at the bottom of the 'application_top' page, so that there is a discount happening, but I would really prefer to have the discount codes working. I'm totally confused, wondering if I'm just entering the code in the wrong place! If I have no luck, I might need to try the CCGV module instead.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.