Results 1 to 10 of 2475

Threaded View

  1. #11
    Join Date
    Jul 2007
    Posts
    2,169
    Plugin Contributions
    16

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

    Quote Originally Posted by noppie View Post
    I have been to both files
    \includes\languages\english\extra_definitions\custom\reward_points.php

    here is the code
    "<?php
    define('BOX_REWARD_POINTS', 'Magic Bucks');

    define('PRODUCT_REWARD_POINT_TAG', 'magic bucks');
    define('REWARD_POINTS_IN_CART_TAG', 'magic bucksin cart');
    define('CUSTOMER_EARNED_POINT_TAG', 'magic bucks earned');
    define('CUSTOMER_PENDING_POINT_TAG', 'magic bucks pending');
    define('MINIMUM_POINT_LEVEL_TAG', 'magic bucks minimum');
    define('MAXIMUM_POINT_LEVEL_TAG', 'magic bucks maximum');
    define('CUSTOMER_TOTAL_POINT_TAG', 'magic bucks total');
    define('NO_REWARD_magic bucks_IN_CART_TAG','No rewards earned.');
    define('CUSTOMER_NOT_LOGGED_IN_TAG','Log in to see rewards earned');
    define('REWARD_POINT_TITLE','Reward magic bucks');
    define('REWARD_POINT_PROMPT','Total magic bucks: ');
    define('REWARD_POINT_VALUE_PROMPT','Total Magic Bucks Value: ');
    ?>


    and here is the \includes\templates\custom\sideboxes\tpl_reward_points.php

    <?php
    /**
    * Side Box Template for reward points
    *
    * @package templateSystem
    * @copyright Copyright 2008 Andrew Moore
    * @copyright Portions Copyright 2003-2005 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    */
    $reward_points=GetRewardPoints($_SESSION['cart']->get_products());

    $warning='';
    $content='<div id="'.str_replace('_', '-', $box_id . 'Content').'" class="sideBoxContent">';
    /*
    foreach($_SESSION['cart']->get_products() as $product)
    // if($products[$i]['products_priced_by_attribute'])
    $reward_points+=GetRewardPoints($product['id'],$product['attributes'])*$product['quantity'];
    // else
    // $reward_points+=GetRewardPoints($product['id'])*$product['quantity'];
    */
    if($reward_points>0)
    $content.='<div class="cartBoxRewardPoints">'.(int)$reward_points.'&nbsp;'.REWARD_POINTS_IN_CART _TAG.'</div>';
    else
    $warning.=NO_REWARD_POINTS_IN_CART_TAG;

    if(isset($_SESSION['customer_id']))
    $content.='<div class="cartBoxEarnedPoints">'.GetCustomersRewardPoints($_SESSION['customer_id']).'&nbsp;'.CUSTOMER_EARNED_POINT_TAG.'</div><div class="cartBoxPendingPoints">'.GetCustomersPendingPoints($_SESSION['customer_id']).'&nbsp;'.CUSTOMER_PENDING_POINT_TAG.'</div>';
    else
    $warning.=($warning?'<br />':'').CUSTOMER_NOT_LOGGED_IN_TAG;

    if($warning)
    $content.='<div id="cartBoxEmpty">'.$warning.'</div>';

    $content.='</div>';
    ?>

    can anyone help
    <?php
    define('BOX_REWARD_POINTS', 'Magic Bucks');

    define('PRODUCT_REWARD_POINT_TAG', 'magic bucks');
    define('REWARD_POINTS_IN_CART_TAG', 'magic bucksin cart');
    define('CUSTOMER_EARNED_POINT_TAG', 'magic bucks earned');
    define('CUSTOMER_PENDING_POINT_TAG', 'magic bucks pending');
    define('MINIMUM_POINT_LEVEL_TAG', 'magic bucks minimum');
    define('MAXIMUM_POINT_LEVEL_TAG', 'magic bucks maximum');
    define('CUSTOMER_TOTAL_POINT_TAG', 'magic bucks total');
    define('NO_REWARD_magic bucks_IN_CART_TAG','No rewards earned.');
    define('CUSTOMER_NOT_LOGGED_IN_TAG','Log in to see rewards earned');
    define('REWARD_POINT_TITLE','Reward magic bucks');
    define('REWARD_POINT_PROMPT','Total magic bucks: ');
    define('REWARD_POINT_VALUE_PROMPT','Total Magic Bucks Value: ');
    ?>
    Your problem is with the line in red. Fix the line and things should work.
    Last edited by countrycharm; 21 Jul 2014 at 12:16 AM.
    Is your site Upgraded to the current version 1.5.4 Yet?
    zencart-upgrades-website-installation

 

 

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