Re: Reward Points Module- Live Release now available.
Quote:
Originally Posted by
aztintpimp
I want to use this module to make a website striclty for rewards points sort of like credit card miles site or coke rewards. I want to add points to cusomters everytime they refer a client to my brick and mortar location.
2 qustions. Will this work like that?
If so would someone be willing to help me install for a fee. I have tried and tried and tried to no avail. I have read thousands of post and read and reread the install stuff I still cant get it.
Thanks in advance
Check your PM
Re: Reward Points Module- Live Release now available.
OK this update on Reward Points is now active in the downloads area. NO UPGRADE NEEDED. In this update I have created and upgrade folder and created a upgrade.txt file. Maybe this will be a lot easier for the installer when installing. NO VERSION CHANGE STILL V2.1a.
Re: Reward Points Module- Live Release now available.
Quote:
Originally Posted by
damiantaylor
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 . ' ' . $reward_points . ' ' . MODULE_ORDER_TOTAL_REWARD_POINTS_DISPLAY_COWOA_TAG . UNFONT,
'text' => '',
'value' => 0);
} else {
$this->output[] = array('title' => $this->title . ':',
'text' => $reward_points,
'value' => 0);
}
}
This is great! Can you tell me the code to put it in the sidebox as well?
Re: Reward Points Module- Live Release now available.
I have a fundamental misunderstanding of how to configure this module. I want it to give everyone 10 points for every dollar they spend. Then to redeem, I want the points to be worth 100 points = $1. I am not sure I understand how to do this (there are so many different configuration areas in different menus!) Can someone explain it in simple terms? Thanks.
Also, in the Order Total Modules section, whenever I configure the "Reward Points Tiered Discount" module it turns off the "Reward Points" module so that it's just a red dot again... I can't get both of these "on" at the same time--are they one or the other for some reason? What gives?
Re: Reward Points Module- Live Release now available.
I have another question... my shopping cart template is HEAVILY modified. I tried using WinMerge to get the rewards points stuff into it but they were too different for it to make any sense. Can someone extract the relevant (rewards points) lines of code and tell me where they are, so I can figure out where to put them in my cart? Thanks so much. I couldn't find them myself--I looked!
Re: Reward Points Module- Live Release now available.
Quote:
Originally Posted by
WebKat
I have another question... my shopping cart template is HEAVILY modified. I tried using WinMerge to get the rewards points stuff into it but they were too different for it to make any sense. Can someone extract the relevant (rewards points) lines of code and tell me where they are, so I can figure out where to put them in my cart? Thanks so much. I couldn't find them myself--I looked!
You can probably get this information yourself by doing a file compare of the Rewards Points files against a vanilla set of Zen Cart files...
Re: Reward Points Module- Live Release now available.
I updated Reward Point to version 2.0b no major changes except the tpl_product_info_display.php file in the rewards points 2.0a package is missing the following code which displays the reward points on each on the product pages. This has been missing in previous version.
<!--bof Product Reward Points block --> <h2 id="productRewardPoints" class="productRewardPoints"> <?php /** * display the product reward points */ include($template->get_template_dir('/tpl_product_reward_points.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_product_reward_points.php'); ?> </h2> <!--eof Product Reward Points block -->
The update has been uploaded waiting on zen approval.
Re: Reward Points Module- Live Release now available.
Quote:
Originally Posted by
DivaVocals
You can probably get this information yourself by doing a file compare of the Rewards Points files against a vanilla set of Zen Cart files...
Actually I think I was thinking about a different module, because this one doesn't seem to edit the shopping cart. But it should. Is there a way to get the shopping cart to display something like "you will earn XX reward points for this order" underneath the total or something? I tried to hack it in based on the sidebox code but it was a miserable failure...
Re: Reward Points Module- Live Release now available.
Why do you want it to show in the first step of the shopping cart. The customer see's they will earn xxxx number of reward point on the product info page if they purchase the item. If and when they put the item in there cart they will see they are going to earn xxxx number of points in the Reward Points side box if you have it enabled. When your customer go's to checkout they will see it in there total they are getting xxxx number of Reward Points for this order. I guess I do not understand what it is you are saying or the issue you are having.
Re: Reward Points Module- Live Release now available.
I guess it's just that when people get to the shopping cart, they're not looking at the sideboxes anymore... it would be nice if it showed the total reward points available in the cart in the general cart area...