Jump to content

LeeFoster

Members
  • Content count

    1,563
  • Joined

  • Last visited

  • Days Won

    11

Reputation Activity

  1. Like
    LeeFoster got a reaction from Tsimi in Converting Points and Rewards system for osC BS   
    I have managed to find a fix to bug 3.
    In admin/customers_points.php
    Find 
    if ($pointstodel > 0) { if (isset($_POST['set_exp']) && ($_POST['set_exp'] == 'on') && ($balance > 0)) { $expire = date('Y-m-d', strtotime('+ '. POINTS_AUTO_EXPIRES .' month')); $expire_date = "\n" . sprintf(EMAIL_TEXT_EXPIRE, tep_date_short($expire)); tep_db_query("update customers set customers_shopping_points = customers_shopping_points - '". $pointstodel ."', customers_points_expires = '". $expire ."' where customers_id = '". (int)$customers_id ."'"); } else { $exp = ($balance > 0) ? $Cexpire_date : 'null'; tep_db_query("update customers set customers_shopping_points = customers_shopping_points - '". $pointstodel ."' where customers_id = '". (int)$customers_id ."'"); $expire_date = "\n" . sprintf(EMAIL_TEXT_EXPIRE, tep_date_short($_POST['customers_points_expires'])); } Replace with
    if ($pointstodel > 0) { if (isset($_POST['set_exp']) && ($_POST['set_exp'] == 'on') && ($balance > 0)) { $expire = date('Y-m-d', strtotime('+ '. POINTS_AUTO_EXPIRES .' month')); $expire_date = "\n" . sprintf(EMAIL_TEXT_EXPIRE, tep_date_short($expire)); tep_db_query("update customers set customers_shopping_points = customers_shopping_points - '". $pointstodel ."', customers_points_expires = '". $expire ."' where customers_id = '". (int)$customers_id ."'"); } else if (isset($_POST['set_exp']) && ($_POST['set_exp'] == 'on') && ($balance == '0')) { $expire = null; $expire_date = "\n" . sprintf(EMAIL_TEXT_EXPIRE, tep_date_short($expire)); tep_db_query("update customers set customers_shopping_points = customers_shopping_points - '". $pointstodel ."', customers_points_expires = '". $expire ."' where customers_id = '". (int)$customers_id ."'"); } else { $exp = ($balance > 0) ? $Cexpire_date : 'null'; tep_db_query("update customers set customers_shopping_points = customers_shopping_points - '". $pointstodel ."' where customers_id = '". (int)$customers_id ."'"); $expire_date = "\n" . sprintf(EMAIL_TEXT_EXPIRE, tep_date_short($_POST['customers_points_expires'])); }  
  2. Like
    LeeFoster got a reaction from raiwa in Converting Points and Rewards system for osC BS   
    No it's just the 2nd one that needs to be changed.
  3. Like
    LeeFoster got a reaction from raiwa in Converting Points and Rewards system for osC BS   
    No it's just the 2nd one that needs to be changed.
  4. Like
    LeeFoster got a reaction from Tsimi in Converting Points and Rewards system for osC BS   
    @Tsimi
    I have a fix for error one.
    in admin/customer_points.php on line 162 
    Find 
    if (isset($_POST['queue_add']) && ($_POST['queue_add'] == 'on')) {
    Replace with 
    if (isset($_POST['queue_delete']) && ($_POST['queue_delete'] == 'on')) {
  5. Like
    LeeFoster got a reaction from kymation in [Addon] Modular Navigation Bar (Bootstrap)   
    Search module can be found here. I hope it helps someone else.
     
    http://addons.oscommerce.com/info/9531
  6. Like
    LeeFoster got a reaction from bruyndoncx in [Addon} Modular Front Page   
    I thought I would share the changes I made to allow you to hide a category from the front page but not the boxes
     
×