Jump to content

christoph2k

Members
  • Content count

    2
  • Joined

  • Last visited

Profile Information

  • Real Name
    Chris Neal
  1. christoph2k

    [Contribution] Discount Coupon Codes

    There is a bug with the code in the catalog/includes/classes/discount_coupon.php file. Lines 56/57 should be: AND ( coupons_date_start <= CURDATE() OR coupons_date_start = '0000-00-00 00:00:00' ) AND ( coupons_date_end >= CURDATE() OR coupons_date_end = '0000-00-00 00:00:00' )" ); As opposed to: AND ( coupons_date_start <= CURDATE() OR coupons_date_start IS NULL ) AND ( coupons_date_end >= CURDATE() OR coupons_date_end IS NULL )" );
  2. christoph2k

    [Contribution] Discount Coupon Codes

    @@boltje It sounds as though you've put the discount code within the comment if block at the top of checkout_confirmation.php. Like this: if (!tep_session_is_registered('comments')) tep_session_register('comments'); if (tep_not_null($HTTP_POST_VARS['comments'])) { $comments = tep_db_prepare_input($HTTP_POST_VARS['comments']); //kgt - discount coupons if (!tep_session_is_registered('coupon')) tep_session_register('coupon'); //this needs to be set before the order object is created, but we must process it after $coupon = tep_db_prepare_input($HTTP_POST_VARS['coupon']); //end kgt - discount coupons } Make sure that the discount coupon code is below the ending bracket of the comment block.
×