Jump to content


  • Content count

  • Joined

  • Last visited

Everything posted by Fred

  1. Hi Ian, a quick question for you. During the checkout process (checkout_payment) in the redemption box just beneath payment selection box I have only one input box and one title even though I have switched both Discount Coupon and Gift Vouchers on in the admin/modules/order total. Does it matter which one you turn on? The title of the input box is from either the Gift Voucher module or the Discount module, depending on the sort order. If you have both GV and DC -> you need to choose "general" title otherwise the customer may be confused. The customer have a Discount Coupon code to be entered but the title in the redemtion box says "Gift Voucher", that may be confusing? I may be missing something here? Probably!? ;) /Fred
  2. Hi George, 1) yes, the orders are showing up in the admin/orders section with the correct order total (i.e discount included). I just tried to buy a product $25, shipping $5, then I had coupon for $15 -> a total of $15, that's exactly what admin/orders is showing. 2) if you mean Coupon Admin/Voucher Report, yes it's showing a record for each time a coupon has been used and the summary (redemtions) for a selected coupon is showing correct. I've installed GV 5.02 on a MS1 release of OCS. /Fred
  3. I just noticed that after a user logs off, the gift voucer or discount coupon is still "available" in the shopping cart box. You may have a reason for this. I added thses lines in "logoff.php": //ICW - logout -> unregister GIFT VOUCHER sessions tep_session_unregister('gv_id'); tep_session_unregister('cc_id'); //ICW - logout -> unregister GIFT VOUCHER sessions to unregister the gift voucher/d.c. session vars at log out. Another thing, in shopping_cart.php I had to change "java script:couponpopupWindow" to "java script:popupWindow" and to add a java script function "function popupWindow(url)" in order to get the popup to work. The popup function "function popupWindow(url)" is defined in some pages but not all -> do popup is not working everywhere (checkout_payment.php and checkout_confirmation.php) /Fred
  4. I just want to add that to fix the error message: in "ot_coupon.php" change: ... if (tep_db_num_rows($coupon_count_customer)>=$coupon_result['uses_per_user'] && $coupon_result['uses_per_user'] > 0) { tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(ERROR_INVALID_USES_USER_COUPON . $coupon_result['uses_coupon'] . TIMES ), 'SSL')); } ...to: ... if (tep_db_num_rows($coupon_count_customer)>=$coupon_result['uses_per_user'] && $coupon_result['uses_per_user'] > 0) { tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(ERROR_INVALID_USES_USER_COUPON . $coupon_result['uses_per_user'] . TIMES ), 'SSL')); } ... -> use field 'uses_per_user' instead of 'uses_coupon'. /Fred
  5. Ian, I am not sure if I am doing something wrong here ..... I want reward new customers with a d.c. worth say $10, I have added a "New customer discount coupon" in coupon admin. The d.c. configured with "Uses per Coupon = 0" (actually I left it blank) and "Uses per Customer = 1". This means that a customer may use the coupon 1 time and the coupon itself may be used unlimited times. Wright? Everything is working OK but when a customer is trying to use the coupon a second time this message is displayed "You have used the coupon the maximum number of times allowed per customer. times." in red. The text is somewhat wrong. In file "ot_coupon.php" you are using $coupon_result['uses_coupon'] to check number of times the coupon have been used etc and since $coupon_result['uses_coupon'] is 0 displayed as the empty string. I can change this myself but I just want to let you know that the error message is malformated. /Fred
  6. Hi Ian, you have done a great job! One suggestion: to make the installation/upgrade easier, it would be easier to find GV-files if you prefix them with "gv_". For example instead of "add_application_top.php" name the file "gv_add_application_top.php". My 2-cents. /Fred