Page 153 of 248 FirstFirst ... 53103143151152153154155163203 ... LastLast
Results 1,521 to 1,530 of 2475
  1. #1521
    Join Date
    Sep 2008
    Posts
    108
    Plugin Contributions
    0

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

    Quote Originally Posted by hem View Post
    Would a better idea be to display something like "If you had an account you would have earned X reward points on this purchase". That would encourage more people to create an account with you.
    How about removing the reference to the bonus points from order total alltogether, would that work..? The customer would see the points in the sidebar box when logged in... And then maybe just have general info on reward points on main page or on page 4 or something.

  2. #1522

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

    If anyone is wanting to display a different message for COWOA custmers, here's how I did it...as for having a negative impact, I haven't noticed.
    In fact, I have had customers sign up for a full account and ask if they can have their points from their COWOA order, which I'm always glad to do!
    The good thing about this mod is the points do get stored against the COWOA order so you can see how many points to transfer across to the full account.

    Add the following defines to file includes/languages/english/modules/order_total/ot_reward_points_display.php
    Code:
    define('MODULE_ORDER_TOTAL_REWARD_POINTS_DISPLAY_COWOA_TITLE', 'With a full account, you could have earned');
    define('MODULE_ORDER_TOTAL_REWARD_POINTS_DISPLAY_COWOA_TAG', 'points!');
    define('FONT_RED','<font color="red">');
    define('UNFONT','</font>');
    Add the code below shown in red to function process() in file includes/modules/order_total/ot_reward_points_display.php
    Code:
        function process() 
    	{
    		global $order;
    
    		$reward_points=GetRewardPoints($order->products);
    		
    		$GlobalRewardPointRatio=GetGlobalRewardPointRatio();
    		$AdjustValue=GetRewardPointAdvancedCalculateValue();
    		$reward_points+=$AdjustValue*$GlobalRewardPointRatio;
    		
    		if(isset($_SESSION['redeem_value']))
    		{
    			/*
    			$redeem_ratio=GetRedeemRatio($_SESSION['customer_id']);
    			$reward_points=$reward_points/$redeem_ratio;
    			$reward_points=$reward_points-$_SESSION['redeem_value'];
    			$reward_points=$reward_points*$redeem_ratio;
    			*/
    			$reward_points=$reward_points-($GlobalRewardPointRatio*$_SESSION['redeem_value']);
    		}
    
    		if($reward_points<0)
    		 $reward_points=0;
    		
    		$reward_points=zen_round($reward_points,0);
    		$_SESSION['REWARD_POINTS_EARNED']=$reward_points;
    		
    		if ($_SESSION['COWOA']) {
    		 $this->output[] = array('title' => FONT_RED . MODULE_ORDER_TOTAL_REWARD_POINTS_DISPLAY_COWOA_TITLE . '&nbsp;' . $reward_points . '&nbsp;' . MODULE_ORDER_TOTAL_REWARD_POINTS_DISPLAY_COWOA_TAG . UNFONT,
                                   'text' => '',
                                   'value' => 0);
    		} else {
    		 $this->output[] = array('title' => $this->title . ':',
                                   'text' => $reward_points,
                                   'value' => 0);
    		}
        }

  3. #1523
    Join Date
    Sep 2007
    Location
    Dublin, Ireland
    Posts
    1,288
    Plugin Contributions
    8

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

    Quote Originally Posted by damiantaylor View Post
    If anyone is wanting to display a different message for COWOA custmers, here's how I did it...as for having a negative impact, I haven't noticed.
    In fact, I have had customers sign up for a full account and ask if they can have their points from their COWOA order, which I'm always glad to do!
    The good thing about this mod is the points do get stored against the COWOA order so you can see how many points to transfer across to the full account.
    Nice one Damian- Do you mind if I include that in the mod as a supplemental addon?
    Andrew

    Andrew Moore
    Omnicia Agile Development
    www.omnicia.com

  4. #1524
    Join Date
    Sep 2008
    Posts
    108
    Plugin Contributions
    0

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

    Quote Originally Posted by damiantaylor View Post
    If anyone is wanting to display a different message for COWOA custmers, here's how I did it...
    Thanks, but this just gave me a blank checkout_payment..?

  5. #1525

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

    Hi Andrew,
    You can use that code, no problem.

    Unicorn,
    Are you using the latest version of the mod? If memory serves correctly I have 1.33a.
    Does your original process() function look like this:

    Code:
        function process() 
    	{
    		global $order;
    
    		$reward_points=GetRewardPoints($order->products);
    		
    		$GlobalRewardPointRatio=GetGlobalRewardPointRatio();
    		$AdjustValue=GetRewardPointAdvancedCalculateValue();
    		$reward_points+=$AdjustValue*$GlobalRewardPointRatio;
    		
    		if(isset($_SESSION['redeem_value']))
    		{
    			/*
    			$redeem_ratio=GetRedeemRatio($_SESSION['customer_id']);
    			$reward_points=$reward_points/$redeem_ratio;
    			$reward_points=$reward_points-$_SESSION['redeem_value'];
    			$reward_points=$reward_points*$redeem_ratio;
    			*/
    			$reward_points=$reward_points-($GlobalRewardPointRatio*$_SESSION['redeem_value']);
    		}
    
    		if($reward_points<0)
    		 $reward_points=0;
    		
    		$reward_points=zen_round($reward_points,0);
    		$_SESSION['REWARD_POINTS_EARNED']=$reward_points;
    		
    		$this->output[] = array('title' => $this->title . ':',
                                  'text' => $reward_points,
                                  'value' => 0);
        }
    A blank page usually means a php syntax error or an undefined field.

  6. #1526
    Join Date
    Sep 2008
    Posts
    108
    Plugin Contributions
    0

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

    Quote Originally Posted by damiantaylor View Post
    Hi Andrew,
    You can use that code, no problem.

    Does your original process() function look like this:


    A blank page usually means a php syntax error or an undefined field.
    Yes, it does... May have gotten a synax error, though I cannot figure out where and why. I'll have another look at it! :)

  7. #1527

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

    try commenting out the bit of added code, so the function would look like this:

    Code:
        function process() 
    	{
    		global $order;
    
    		$reward_points=GetRewardPoints($order->products);
    		
    		$GlobalRewardPointRatio=GetGlobalRewardPointRatio();
    		$AdjustValue=GetRewardPointAdvancedCalculateValue();
    		$reward_points+=$AdjustValue*$GlobalRewardPointRatio;
    		
    		if(isset($_SESSION['redeem_value']))
    		{
    			/*
    			$redeem_ratio=GetRedeemRatio($_SESSION['customer_id']);
    			$reward_points=$reward_points/$redeem_ratio;
    			$reward_points=$reward_points-$_SESSION['redeem_value'];
    			$reward_points=$reward_points*$redeem_ratio;
    			*/
    			$reward_points=$reward_points-($GlobalRewardPointRatio*$_SESSION['redeem_value']);
    		}
    
    		if($reward_points<0)
    		 $reward_points=0;
    		
    		$reward_points=zen_round($reward_points,0);
    		$_SESSION['REWARD_POINTS_EARNED']=$reward_points;
    /*	
    		if ($_SESSION['COWOA']) {
    		 $this->output[] = array('title' => FONT_RED . MODULE_ORDER_TOTAL_REWARD_POINTS_DISPLAY_COWOA_TITLE . '&nbsp;' . $reward_points . '&nbsp;' . MODULE_ORDER_TOTAL_REWARD_POINTS_DISPLAY_COWOA_TAG . UNFONT,
                                   'text' => '',
                                   'value' => 0);
    		} else {
    */
    		 $this->output[] = array('title' => $this->title . ':',
                                   'text' => $reward_points,
                                   'value' => 0);
    //		}
        }
    If that works, I think it must be one of the defines that hasn't been defined:
    Code:
    FONT_RED
    MODULE_ORDER_TOTAL_REWARD_POINTS_DISPLAY_COWOA_TITLE
    MODULE_ORDER_TOTAL_REWARD_POINTS_DISPLAY_COWOA_TAG 
    UNFONT

  8. #1528
    Join Date
    Jan 2010
    Posts
    65
    Plugin Contributions
    0

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

    Quote Originally Posted by hem View Post
    I tested it here and it is working exactly as it should- No payment method is being asked for on purchases with a zero total. Are you using any other checkout mod that might be causing this?
    The only other payment methods I'm using are 2Checkout and PayPal Express.

  9. #1529
    Join Date
    Mar 2009
    Posts
    609
    Plugin Contributions
    0

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

    I updated my order status using super orders batch update and none of the orders have had their points moved from pending to earned.

    I'm using Advanced which state Pend: [Order Processing] Earn: [Order Completed]

    Why haven't the points updated.

  10. #1530

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

    Hi i was wondering if anybody had an answer to this problem.

    I am trying to change the message for reward points shown in the product page. at the moment it says "33 reward points"
    However i would like it to display as "Worth 33 Reward Points"

    How can i move the Number of points?

    So far i have tried changing the tpl_products_reward_points.php code to this;

    Code:
    echo PRODUCT_REWARD_POINT_TAG.'&nbsp;'.$reward_points'&nbsp;'PRODUCT_REWARD_POINT_TAG_1.;
    and added 'PRODUCT_REWARD_POINT_TAG_1.; into the reward_points.php in the extra definitions directory.

    But this doesn't seem to work. I just blanks my page. If i remove the last 'PRODUCT_REWARD_POINT_TAG_1.; from the line in tpl it works again. What am i missing?

 

 

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