Jump to content

jpace

Members
  • Content count

    10
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Jon
  1. jpace

    Points/Rewards Module

    Ivan, Thanks for the very kind words, this is what this community is all about. I would reccomond checking on the problem that was pointed out about your customers points being deducted even when they dont select for points to be reedemed. Again, If anyone has an idea of how to stop this, please share your thoughts and I'll work on it and post what I find. Thanks again
  2. jpace

    Points/Rewards Module

    Jolan, Yea, I have that same problem, but I didn?t ever realize it because the application that I am using this module it doesn?t matter in my case, but if you use this as advertised this is a problem that needs to be tracked down. I unfortunately don?t have enough smarts when it comes to php code to know where to look to fix this problem If anybody has any suggestions of where to start, post them here and I'd be happy to work on this some more and let everyone know what I find.
  3. jpace

    Points/Rewards Module

    Ivanso I created a fresh shopping cart, got the reward points up and running, and saved the entire shopping cart + the mysql data base. You can download the whole thing from the following link: Shopping Cart with Reward Points installed There is not really any instructions as how to make this work... I'm assuming you can figure out this on your own. Hope this helps you out :thumbsup:
  4. jpace

    Points/Rewards Module

    I was setting up fresh cart following my own directions as I posted earlier, and I found that I missed a couple item that I had to do to make the reward point feature work. In trying to add points to a customers account I was getting the following error: Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/XXX.com/httpdocs/catalog/admin/includes/languages/english.php on line 304 Warning: Cannot add header information - headers already sent by (output started at /home/httpd/vhosts/XXX.com/httpdocs/catalog/admin/includes/languages/english.php:304) in /home/httpd/vhosts/XXX.com/httpdocs/catalog/admin/includes/functions/general.php on line 18 Here is a fix for this problem: The line in /catalog/admin/includes/languages/english.php looked like this: //Points/Rewards module require("add_points_english.php"); Change to look like this: //Points/Rewards module require(DIR_WS_LANGUAGES . 'add_points_english.php'); Also, I forgot to mention this change that was pointed out by Stephane earlier in this topic. I had to do this to make the check box appear during the checkout process. In catalog/includes/modules/order_total/ot_redemptions.php around line 77-80 in my file look for the following code if (!(substr($order->products[$i]['model'], 0, 10) == 'REDEMPTION')) { return false; } Change to look like this: if (!(substr($order->products[$i]['model'], 0, 10) == 'REDEMPTION')) { return true; } Hope this helps
  5. jpace

    Points/Rewards Module

    Let me see what I can do for you in the next 24 hours or so... I'm at my day job right now. Jon
  6. jpace

    Points/Rewards Module

    Ivan, Other members might not agree with me on this, but I feel after working with this shopping cart for over a year, in many separate installations, this might not be the best ?first modification? for you. There is not a lot of support on this module, and that?s why I?ve posted what I?ve posted here in this topic. If you really want/need this feature in your shopping cart, you can get it working if you follow my previously posted instructions. Keep in mind, you will have a lot of work to do. Just in the Credit Class/Gift Vouchers/Discount Coupons modification alone you have about 100 files to change. You must install this, and insure that it works with no errors before even starting on the rewards module. This is not a ?Plug n Play? module? there is a LOT of tweaking that you need to do to make it work the way you want. If your brand new to osCommerce, and working with php in general?. Getting the reward point module will take you a while to do. Unfortunately with open source code it?s going to come down to you to make it work. If you have more specific questions, post them in this topic and I?ll try to answer them if I can
  7. jpace

    Points/Rewards Module

    I cant tell you exactly what is going wrong as I?m not an expert, but it look to me like this is a problem with the Credit Class/Gift Vouchers/Discount Coupons, and more specifically it looks like a problem with accessing the data from your database. When you installed the Credit Class/Gift Vouchers/Discount Coupons did you remember to update your database with the sql file that is included with the Credit Class/Gift Vouchers/Discount Coupons contribution? Bottom line is you need to make sure the Credit Class/Gift Vouchers/Discount Coupons is working with no errors before trying to install the Rewards Points Module. If you need help with the Credit Class/Gift Vouchers/Discount Coupons please look in this topic: http://forums.oscommerce.com/index.php?showtopic=52161
  8. jpace

    Points/Rewards Module

    Sorry, your right, here is line 103 in my ot_redemptions.php file !$_SESSION['cot_redemptions'] = false;
  9. jpace

    Points/Rewards Module

    All the information that is required to make this reward point system is in this thread. I just set this up for another cart I?m working on today and it took me about 2-3 hours to make it work. I will recap information and instructions found in this thread that I used to make this reward point mod work. None if this is new so I?m not taking any credit for it, just putting in order of how I make this work. I also don?t really post anything, so please forgive me if this is not how you are supposed to post information. 1. Start with a fresh version of osCommerce. 2. Install Credit Class/Gift Vouchers/Discount Coupons (Version 5.10) 3. Install the Rewards Points Module using the directions provided (I didn?t create a category in osCommerce called Redemptions because I wanted all products to be able to be redeemed with the points. More on this below) 4. Download and replace the points_config with this new one: http://www.oscommerce.com/community/contri...704/mirror,pair 5. edit catalog/includes/filenames.php and add the following to it: define('FILENAME_MY_POINTS', 'mypoints.php'); define('FILENAME_MY_REDEMPTIONS', 'myredemptions.php'); 6. edit catalog/accounts.php and below the order history or any other place you want, add the following: <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><b><?php echo MY_POINTS_AND_REDEMPTIONS; ?></b></td> </tr> </table></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td width="60"><?php echo tep_image(DIR_WS_IMAGES . 'account_orders.gif'); ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_MY_POINTS, '', 'SSL') . '">' . VIEW_POINTS . '</a>'; ?></td> </tr> <tr> <td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_MY_REDEMPTIONS, '', 'SSL') . '">' . VIEW_REDEMPTIONS . '</a>'; ?></td> </tr> </table></td> <td width="10" align="right"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> 7. To allow points to be used to check out I had to do the following, (also this makes it so you don?t have to create the category in osCommerce called Redemptions) disabled the checks for the 4 if ($_SESSION['cot_redemptions']) located on lines 39, 92, 103, 176 they used to look like this: if($_SESSION['cot_redemptions']) add a ! right before the $ do they look like this: if (!$_SESSION['cot_redemptions']) Be sure to change all 4 of them, if you miss even one, the Redeem Points box will not show up. That?s about it. I?ve got this to work in two different carts, however it will take some time to tweak it to do exactly what you want.
  10. jpace

    Credit points payment

    Has anyone successfully setup a store where customers can check out using just points?? If so I'd love to take a look Jon
×