Page 239 of 248 FirstFirst ... 139189229237238239240241 ... LastLast
Results 2,381 to 2,390 of 2475
  1. #2381
    Join Date
    Jul 2007
    Posts
    2,169
    Plugin Contributions
    16

    Default Re: Reward Points Module- Live Release now available.

    Quote Originally Posted by ripvoid View Post
    do you know why it does not work with 1.5.1 in the admin editing orders show 0.00 points but in invoices it show them can any one help-??
    The reason the reward points in admin/customers/orders/edit order will not show is because, the reward points is different with the total of,
    100 points = $1 so the reward points can not save the points value in database so you see it's 0.00

    Check the orders_totals table and you will understand whats going on.

    I know it is hard to understand but that's the best I can explain it.
    Last edited by countrycharm; 14 Feb 2014 at 06:58 AM.
    Is your site Upgraded to the current version 1.5.4 Yet?
    zencart-upgrades-website-installation

  2. #2382
    Join Date
    Jul 2013
    Location
    California
    Posts
    4
    Plugin Contributions
    0

    Default Re: Reward Points Module- Live Release now available.

    Quote Originally Posted by countrycharm View Post
    You are the first person to ever report a bug in Sales/Specials. I have checked my test site and I don't have the problem you are experiencing neither has anybody else.

    Go back and make sure all the reward points files uploaded correctly. It is something in your installation not in the module.

    Also the hack you are offering makes no sense. Reward points was created to reward customers when they purchase products from your site. Why would you penalize the customer from earning more points just because they don't spend them when you want them to. There is a feature in admin/modules/order total/Reward Points you can set to Automatic. It will select all Reward Points earned by the customer and enter them at checkout. So the hack you have come up with is of no use.

    If it's not a bug, why does it check if !$attributes before setting the price to the special price? Maybe I missed the reasoning, but for me it was a bug and can easily be recreated. In any case it's here now so if someone else has the same problem they know where to look.


    Anyways, thank you for a wonderful zen cart addition it works very well and does exactly what I wanted it to do with very minor modifications.

  3. #2383
    Join Date
    Jun 2006
    Posts
    298
    Plugin Contributions
    0

    Default Re: Reward Points Module- Live Release now available.

    Is it possible to make the sunrise period start after the order is marked "shipped" instead of having it start immediately after the order is placed?

  4. #2384
    Join Date
    Jun 2006
    Posts
    298
    Plugin Contributions
    0

    Default Re: Reward Points Module- Live Release now available.

    Quote Originally Posted by Coins2012 View Post
    I don't think you will get an answer to your question because I asked the same question perhaps a month or two ago, I think the module is not setup for that so I got one of my family members write me a code which I run daily, it's not the perfect way but itworks, you could set it up as a cron job if you like to run it daily, here is the code below:

    <?php

    try {
    $dbh = new PDO("mysql:host=localhost;dbname=DATABASE_NAME", 'DATABASE_NAME_Points', '1qwer13');

    $Totalquery = "Update reward_customer_points
    SET reward_points = 0.00
    Where customers_id not in (select customers_id from reward_status_track)";


    $Totalstmt = $dbh->prepare($Totalquery);
    $Totalstmt ->execute();

    echo 'Total Task Completed';

    }
    catch(PDOException $e)
    {
    echo $e->getMessage();
    }

    ?>

    Basically when you set up your reward points module pending points to expire in 30 days, the reward_status_track table keeps only 30 days of records so what the code does if it's not in the track table then it sets the points to Zero.

    You have to run this daily though, if not then the deleted records will be lost and won't be able to zero the reward points that are older than 30 days.

    I am sure some people here could make it much better and full proof and run it as a cron job.

    I am not an expert in code writing but was able to figure things out to solve my problem.

    Hope this helps,
    I need points to expire 90 days after they are earned.

    This code is a good start, but I can see a problem...

    Say we want rewards to expire at 90 days.
    Day 1: Customer places order. Earns 100 points.
    Day 30: Customer places another order. Earns 100 points.
    Day 90: Only 100 points should be removed, not all of their points, which is what this code would do.

    Has anyone determined how to properly remove earned points after a certain time period?

  5. #2385
    Join Date
    Jun 2006
    Posts
    298
    Plugin Contributions
    0

    Default Re: Reward Points Module- Live Release now available.

    Quote Originally Posted by abcisme View Post
    I need points to expire 90 days after they are earned.

    This code is a good start, but I can see a problem...

    Say we want rewards to expire at 90 days.
    Day 1: Customer places order. Earns 100 points.
    Day 30: Customer places another order. Earns 100 points.
    Day 90: Only 100 points should be removed, not all of their points, which is what this code would do.

    Has anyone determined how to properly remove earned points after a certain time period?
    Ok, I am not a programmer, so I am taking a stab in the dark at this.. but looking at the housekeeping function, if I create a subset for housekeeping which specifies earned points instead of pending points.. then switched the housekeeping function to reflect rewards_points instead of pending_points, it should work to remove any earned points instead of pending points. Right?

    So pending points will switch to earned after the sunrise period, then be removed after the housekeeping period... Does this look correct?

    Code:
    function CleanupRewardPointHistory()
    {
        global $db,$messageStack;
        
        $subset="IFNULL((SELECT SUM(rp.reward_points) FROM ".TABLE_REWARD_STATUS_TRACK." rp WHERE cp.customers_id=rp.customers_id AND rp.status='".STATUS_PENDING."' AND rp.date<NOW()-INTERVAL %s DAY),0)";
    $subset2="IFNULL((SELECT SUM(rp.reward_points) FROM ".TABLE_REWARD_STATUS_TRACK." rp WHERE cp.customers_id=rp.customers_id AND rp.status='".STATUS_PROCESSED."' AND rp.date<NOW()-INTERVAL %s DAY),0)";
        $sunrise_subset=sprintf($subset,REWARD_POINTS_SUNRISE_PERIOD);
        $housekeeping_subset=sprintf($subset2,REWARD_POINTS_HOUSEKEEPING);
        
        if(REWARD_POINTS_SUNRISE_PERIOD>0)
         if($db->Execute("UPDATE ".TABLE_REWARD_CUSTOMER_POINTS." cp, ".TABLE_REWARD_STATUS_TRACK." rp SET cp.reward_points=cp.reward_points+".$sunrise_subset.",cp.pending_points=cp.pending_points-".$sunrise_subset." WHERE cp.customers_id=rp.customers_id;"))
          $db->Execute("UPDATE ".TABLE_REWARD_STATUS_TRACK." SET status=".STATUS_PROCESSED." WHERE status=".STATUS_PENDING." AND date<NOW()-INTERVAL ".REWARD_POINTS_SUNRISE_PERIOD." DAY;");
         
        if(REWARD_POINTS_HOUSEKEEPING>0)
         if($db->Execute("UPDATE ".TABLE_REWARD_CUSTOMER_POINTS." cp, ".TABLE_REWARD_STATUS_TRACK." rp SET cp.reward_points=cp.reward_points-".$housekeeping_subset." WHERE cp.customers_id=rp.customers_id;"))
    
          $db->Execute("DELETE FROM ".TABLE_REWARD_STATUS_TRACK." WHERE date<NOW()-INTERVAL ".(int)REWARD_POINTS_HOUSEKEEPING." DAY;");
    }

  6. #2386
    Join Date
    Jan 2014
    Posts
    32
    Plugin Contributions
    0

    Default Re: Reward Points Module- Live Release now available.

    Hi,

    in my site, when i change attributes the points dont change, please take a look: 66.147.242.164/~kiteaddi

  7. #2387
    Join Date
    Oct 2008
    Posts
    591
    Plugin Contributions
    0

    Default Re: Reward Points Module- Live Release now available.

    can share products ( facebook, twiiter ) and get points ?

  8. #2388
    Join Date
    Jul 2007
    Posts
    2,169
    Plugin Contributions
    16

    Default Re: Reward Points Module- Live Release now available.

    Quote Originally Posted by dmagic View Post
    can share products ( facebook, twiiter ) and get points ?
    Could you be more clear in what you are asking. If your asking if someone shares your products on facebook, twiiter and receive reward points for doing that, the answer is no. You will have to hire someone to custom coded reward points to do that.
    Last edited by countrycharm; 22 Feb 2014 at 02:28 AM.
    Is your site Upgraded to the current version 1.5.4 Yet?
    zencart-upgrades-website-installation

  9. #2389
    Join Date
    Jan 2014
    Posts
    32
    Plugin Contributions
    0

    Default Re: Reward Points Module- Live Release now available.

    Hi,

    I have a problem where if i enter in a product´s page it shows the current amount of points i should get for that product.

    However when i actually add it to the cart it never adds the correct points. It doesnt matter if i set the ratio to 0.0, 0.5, to 2.0, it always adds the global ratio points (which is now set to 1).

    My zen_reward_master table for a given category looks like this: point ratio (for category) = 0.5 (For example). Bonus points = null. redeem points = null. redeem ratio = null

    Any ideas?

  10. #2390
    Join Date
    Sep 2012
    Posts
    3
    Plugin Contributions
    0

    Default Re: Reward Points Module- Live Release now available.

    I have the following problem: in the product page the points are calculated on base price (wrong) and when I add it to the cart they are calculated on the subtotal (base price+taxes - right).

    how to fix the points amount shown in product page?

    thanks in advance

 

 

Similar Threads

  1. v139h Reward Points module display order totals including reward points
    By irsarahbean in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 23 Jun 2013, 01:19 AM
  2. Reward points module : 0 points earned
    By jonnyboy22 in forum Addon Payment Modules
    Replies: 5
    Last Post: 5 Jun 2012, 09:52 AM
  3. Reward Points module- points not calculated correctly
    By cpoet in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 9 Sep 2010, 05:02 PM
  4. Reward Points Module - Hide message when 0 points offered
    By expresso in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 11 Dec 2008, 06:58 PM
  5. Experimental Reward Points Module
    By precursor999 in forum Addon Payment Modules
    Replies: 7
    Last Post: 2 Apr 2007, 09:32 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR