Page 230 of 248 FirstFirst ... 130180220228229230231232240 ... LastLast
Results 2,291 to 2,300 of 2475
  1. #2291
    Join Date
    Feb 2004
    Location
    Georgia, USA
    Posts
    1,948
    Plugin Contributions
    0

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

    Quote Originally Posted by gilby View Post
    You have extra single quotes (shown in red) which are causing problems in at least 2 places
    Thank you so much. I look inside the file that contains the information but I am not sure if you see what's wrong below. I have pasted the three areas that could potentially have issues.
    PHP Code:
    if(zen_get_products_price_is_free($products_id)==false || REWARD_POINTS_ALLOW_ON_FREE=='1'// Allow RP on free items (Admin settable)
        
    {
            
    $sql "SELECT prp.point_ratio*p.products_price AS reward_points, prp.point_ratio, p.products_price, p.products_priced_by_attribute 
                    FROM "
    .TABLE_REWARD_MASTER." prp, ".TABLE_PRODUCTS." p, ".TABLE_PRODUCTS_TO_CATEGORIES." p2c 
                    WHERE p.products_id='" 
    $products_id "'
                    AND p2c.products_id='" 
    $products_id "'
                    AND ((prp.scope_id=p.products_id AND prp.scope='"
    .SCOPE_PRODUCT."') 
                    OR (p.products_id=p2c.products_id AND prp.scope_id=p2c.categories_id AND prp.scope='"
    .SCOPE_CATEGORY."')
                    OR (prp.scope='"
    .SCOPE_GLOBAL."'))
                    ORDER BY prp.scope DESC LIMIT 1;"
    ;
        
            
    $result=$db->Execute($sql); 
    PHP Code:
    $sql "SELECT prp.point_ratio 
                FROM "
    .TABLE_REWARD_MASTER." prp, ".TABLE_PRODUCTS." p, ".TABLE_PRODUCTS_TO_CATEGORIES." p2c 
                WHERE p.products_id='" 
    $products_id "'
                AND p2c.products_id='" 
    $products_id "'
                AND ((prp.scope_id=p.products_id AND prp.scope='"
    .SCOPE_PRODUCT."') 
                OR (p.products_id=p2c.products_id AND prp.scope_id=p2c.categories_id AND prp.scope='"
    .SCOPE_CATEGORY."')
                OR (prp.scope='"
    .SCOPE_GLOBAL."'))
                ORDER BY prp.scope DESC LIMIT 1;"
    ;
        
        
    $result=$db->Execute($sql); 
    PHP Code:
    $sql "SELECT redeem_ratio 
                FROM "
    .TABLE_REWARD_MASTER." prp, ".TABLE_CUSTOMERS." as c
                LEFT JOIN("
    .TABLE_GROUP_PRICING." as gp) ON (gp.group_id=c.customers_group_pricing)
                WHERE c.customers_id='"
    .(int)$customers_id."'
                AND ((prp.scope_id='"
    .$customers_id."' AND prp.scope='".SCOPE_CUSTOMER."')
                OR (gp.group_id=c.customers_group_pricing AND prp.scope_id=gp.group_id AND scope='"
    .SCOPE_GROUP."')
                OR (prp.scope='"
    .SCOPE_GLOBAL."'))
                ORDER BY prp.scope DESC LIMIT 1;"


        
    $result=$db->Execute($sql); 
    I hope you or someone else sees what's wrong in the above and can guide me.

    Thanks!

  2. #2292
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

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

    It appears that its the first of those sql queries.
    However the code appears fine.
    The only way that I can see it producing the code thats in the error is if $products_id is corrupt
    ie: $products_id = 11178' <- note the trailing apostrophre

  3. #2293
    Join Date
    Feb 2004
    Location
    Georgia, USA
    Posts
    1,948
    Plugin Contributions
    0

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

    Quote Originally Posted by gilby View Post
    It appears that its the first of those sql queries.
    However the code appears fine.
    The only way that I can see it producing the code thats in the error is if $products_id is corrupt
    ie: $products_id = 11178' <- note the trailing apostrophre
    We may have to do away with the Rewards points module because I can't figure out what's going on. I do not see any problem with that product id in the DB and it happens with other products as well so it definitely cannot be an issue with the id.

    Thanks for helping to troubleshoot though. I am surprised that I am the only one seeing this problem in the log.

  4. #2294
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

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

    Quote Originally Posted by BlessIsaacola View Post
    We may have to do away with the Rewards points module because I can't figure out what's going on. I do not see any problem with that product id in the DB and it happens with other products as well so it definitely cannot be an issue with the id.

    Thanks for helping to troubleshoot though. I am surprised that I am the only one seeing this problem in the log.
    Be aware that $products_id is NOT in the database.
    It is a php variable that has been assigned somewhere.

    p.products_id and p2c.products_id ARE in the database

    Have you tried uploading the files again. It could be a corrupt upload.

  5. #2295
    Join Date
    Feb 2004
    Location
    Georgia, USA
    Posts
    1,948
    Plugin Contributions
    0

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

    Quote Originally Posted by gilby View Post
    Be aware that $products_id is NOT in the database.
    It is a php variable that has been assigned somewhere.

    p.products_id and p2c.products_id ARE in the database

    Have you tried uploading the files again. It could be a corrupt upload.
    Thanks so much for the pointer about $products_id. I searched Zen Cart and all the files that uses this seems to have
    Code:
    (int)$products_id
    instead of
    Code:
    $products_id
    Perhaps that's my problem. I will play with it and see if that helps.

    This is driving me crazy :)

  6. #2296
    Join Date
    Sep 2010
    Posts
    612
    Plugin Contributions
    0

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

    Hi everyone. I have Super Orders and Edit Orders installed(current) on v1.51, it seems to work well. Until I try to edit an order.

    I am able to make edits to an order. But when I try to update and order, I get a blank screen. This is the the error log:
    [11-Aug-2013 05:40:33] PHP Fatal error: Call to undefined function getrewardpoints() in /hsphere/local/home/c376292/luxuriouspurse.com/shop/includes/modules/order_total/ot_reward_points_display.php on line 40

    However the edits made to the order are actually saved. Any idea how to fix this? Thank you!

  7. #2297
    Join Date
    Jul 2012
    Posts
    8
    Plugin Contributions
    0

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

    Has anyone gotten pagination to work in admin. With over 250 customers that start with A, it's taking the database ages to pull the report on 250 customers. Ihave even more in S. If I set it to 50 the database pulls the data in a number of seconds, but I can't get to the rest of my customers.

  8. #2298
    Join Date
    Oct 2009
    Location
    Ohio
    Posts
    19
    Plugin Contributions
    0

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

    Quote Originally Posted by joyjoy View Post
    Hi everyone. I have Super Orders and Edit Orders installed(current) on v1.51, it seems to work well. Until I try to edit an order.

    I am able to make edits to an order. But when I try to update and order, I get a blank screen. This is the the error log:
    [11-Aug-2013 05:40:33] PHP Fatal error: Call to undefined function getrewardpoints() in /hsphere/local/home/c376292/luxuriouspurse.com/shop/includes/modules/order_total/ot_reward_points_display.php on line 40

    However the edits made to the order are actually saved. Any idea how to fix this? Thank you!
    I am also having this issue (and am a complete PHP n00b) on my test site (where I'm trying out Edit Orders for the first time). I have no issues on my main site (where I only have Reward Points and no order plugins). Any thoughts on how to fix? My test site, where I'm encountering this error is running Zen Cart v1.5.1 and Edit Orders 4.1.2, but no Super Orders. I'm using PHP version 5.3.x. Let me know if you need more details.

  9. #2299
    Join Date
    Jun 2005
    Location
    Portland, OR
    Posts
    189
    Plugin Contributions
    0

    Default Reward Points Module - Instructions/Docs for Customer

    Sorry if this has been answered before - been looking around and can't find much. This add-on is excellent, however I'm looking for some docs or instructions that explain the workings of this to my customer. Has anyone written a good doc that I could pillage for my site that explains how everything works to my customer base?

    Thanks in advance and again apologies if this has been answered elsewhere....

  10. #2300
    Join Date
    May 2010
    Location
    Athens, Greece
    Posts
    292
    Plugin Contributions
    0

    Default Re: Reward Points Module - Instructions/Docs for Customer

    It has indeed been answered before but I can not blame you for not finding it within the 2300 posts of this thread

    I have created a Q+A page about the workings of the Reward Program on my site and you may find it useful as the basis of your own documentation.

    You may also download all my policies in PDF format and find the Reward Program in pages 11-12 of the document.

    I hope this helps.

 

 

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