Results 1 to 10 of 171

Hybrid View

  1. #1
    Join Date
    Jun 2007
    Posts
    474
    Plugin Contributions
    2

    Default Re: Store credit and reward point module

    Quote Originally Posted by DMLyons View Post
    It looks like my message glitched, but... I loaded everything and ran the script. I see the module loaded under Tools> Layout Boxes Controller and managed to set some rules under Modules> Order Total, but I do not see the Customer section (I believe it should be?) to manually control reward points and store credit. Any clue what I might have missed/have to tweak to fix this? I'd appreciate any help you can give.

    DML
    The issue is that this module hasn't been upgraded to the latest version of Zen Cart.

    Therefore two changes are needed to the out of the box version:

    1) adjust any and all files that start with <? to be <?php

    2) 'Register' the admin page. Here are instructions:https://www.zen-cart.com/content.php...e-v1-5-0-admin

    For the parameters mentioned in that link use these:
    Page Key: Store Credit (if you get an error use StoreCredit)
    Page Name: BOX_CUSTOMERS_CREDIT
    Page Filename: FILENAME_STORE_CREDIT
    Menu: Choose where you want it to appear
    Sort Order: 20

  2. #2
    Join Date
    Jan 2013
    Location
    New Port Richey, Florida
    Posts
    967
    Plugin Contributions
    0

    Default Re: Store credit and reward point module

    Installed dual pricing and now when I activate wholesale accounts that persons ability to apply credit has disappeared. Zen version 1.5.1

  3. #3
    Join Date
    Feb 2007
    Location
    Pennsylvania
    Posts
    814
    Plugin Contributions
    0

    Default Re: Store credit and reward point module

    Hi All,
    So I have this working with ZC1.5.5. Just had to change the two mysql_affected_rows to mysqli_affected_rows. So everything is working with one exception. On the checkout page when credits are applied it's actually being applied twice. In the function get_order_total function I added a line
    Code:
    echo 'ot: ' . $order_total . ' td:' . $this->deduction . '<br />';
    Now on the checkout page I see this three times. First above header, second in cart contents box and third just above store credits box.
    The first shows ot: 71 td:
    The second ot: 71 td: 71
    The third ot: -71 td: -142

    in the totals area of the cart contents the sub-total is $71 (correct), no tax(correct), no shipping(correct), store credit -142, total -71.

    This only happens when the available credit amount is greater than the order total amount. if the available credit is $200 and the cart total is $50 the entire available credit is wiped out and set to $0.

    I am really having a hard time with this one. I can not figure out why this is happening. Your help is greatly appreciated.

    Thank You,
    John
    Last edited by bumba000; 26 Nov 2017 at 12:26 AM.

  4. #4
    Join Date
    Feb 2007
    Location
    Pennsylvania
    Posts
    814
    Plugin Contributions
    0

    Default Re: Store credit and reward point module

    I have found a solution. So far (good bit of testing) I'm pretty sure this is the fix.

    In includes/modules/order_total/ot_sc.php the last line of function get_order_total() is to return $order_total + $this->deduction;

    I changed this to return $order_total; and it works. I have spent quite a bit of time going through this file and this is the best solution I've found.

    Thank You,
    John

 

 

Similar Threads

  1. v150 Adding a reward point module/add-on
    By dawneprochilo in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 10 Nov 2013, 05:16 PM
  2. Point Reward Setup - Redeem and Account
    By bhizzy in forum Managing Customers and Orders
    Replies: 0
    Last Post: 1 Apr 2010, 10:35 PM
  3. Replies: 0
    Last Post: 11 Mar 2010, 04:39 AM
  4. bug reported in reward point module
    By smart_pro in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 26 Mar 2009, 10:57 AM
  5. Error after installing reward point module
    By trisha33 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 15 Feb 2009, 11:27 PM

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