Re: Reward Points Module- Live Release now available.
Quote:
Originally Posted by
medeano
Sorry just one small question in the rewards admin folder there is a file called - sqlpatch.zip
Do i have to apply this patch ??
Many thanks
Just unzip it to your admin/ folder- It fixes a bug in the original.
Re: Reward Points Module- Live Release now available.
Quote:
Originally Posted by
ryanb4614
I have the newest version, I use a cash value discount not a % percent..... but in the "My account" is shows it as a percent and everything else is a $ as it should be
PHP Code:
if(defined(MODULE_ORDER_TOTAL_REWARD_POINTS_DISCOUNT_STATUS) && MODULE_ORDER_TOTAL_REWARD_POINTS_DISCOUNT_STATUS==true)
{
$row=GetRewardPointDiscountRow($total_points);
if($row!=null)
$points_value=$row['discount'].'%';
else
$points_value="0%";
}
Are you using 1.27a? I'll check this out in the morning...
Re: Reward Points Module- Live Release now available.
Yes I am. It is only is in under "my account" view account information. Everywhere else it works. Thank you!
Re: Reward Points Module- Live Release now available.
Make sure you've extracted the tpl_account_edit_default.php to your correct custom folder- the full code for that segment should be:
PHP Code:
<fieldset>
<legend><?php echo REWARD_POINT_TITLE; ?></legend>
<?php
$total_points=getCustomersRewardPoints($_SESSION['customer_id']);
if(defined(MODULE_ORDER_TOTAL_REWARD_POINTS_STATUS) && MODULE_ORDER_TOTAL_REWARD_POINTS_STATUS==true)
{
$redeem_ratio=GetRedeemRatio($_SESSION['customer_id']);
$points_value=$currencies->format($total_points*$redeem_ratio);
}
else
if(defined(MODULE_ORDER_TOTAL_REWARD_POINTS_DISCOUNT_STATUS) && MODULE_ORDER_TOTAL_REWARD_POINTS_DISCOUNT_STATUS==true)
{
$row=GetRewardPointDiscountRow($total_points);
if($row!=null)
$points_value=$row['discount'].'%';
else
$points_value="0%";
}
echo '<label class="inputLabel">'.REWARD_POINT_PROMPT.'</label>'.'<label class="inputLabel">'.$total_points.'</label>';
echo '<br class="clearBoth" />';
echo '<label class="inputLabel">'.REWARD_POINT_VALUE_PROMPT.'</label>'.'<label class="inputLabel">'.$points_value.'</label>';
?>
<br class="clearBoth" />
</fieldset>
Re: Reward Points Module- Live Release now available.
Quote:
Originally Posted by
hem
Make sure you've extracted the tpl_account_edit_default.php to your correct custom folder- the full code for that segment should be:
PHP Code:
<fieldset>
<legend><?php echo REWARD_POINT_TITLE; ?></legend>
<?php
$total_points=getCustomersRewardPoints($_SESSION['customer_id']);
if(defined(MODULE_ORDER_TOTAL_REWARD_POINTS_STATUS) && MODULE_ORDER_TOTAL_REWARD_POINTS_STATUS==true)
{
$redeem_ratio=GetRedeemRatio($_SESSION['customer_id']);
$points_value=$currencies->format($total_points*$redeem_ratio);
}
else
if(defined(MODULE_ORDER_TOTAL_REWARD_POINTS_DISCOUNT_STATUS) && MODULE_ORDER_TOTAL_REWARD_POINTS_DISCOUNT_STATUS==true)
{
$row=GetRewardPointDiscountRow($total_points);
if($row!=null)
$points_value=$row['discount'].'%';
else
$points_value="0%";
}
echo '<label class="inputLabel">'.REWARD_POINT_PROMPT.'</label>'.'<label class="inputLabel">'.$total_points.'</label>';
echo '<br class="clearBoth" />';
echo '<label class="inputLabel">'.REWARD_POINT_VALUE_PROMPT.'</label>'.'<label class="inputLabel">'.$points_value.'</label>';
?>
<br class="clearBoth" />
</fieldset>
I replaced what you had, its the same that I had anyways. Still shows as this:
Total Reward Point Value: 20%
When it should be Total Reward Point Value: $20 .... Everything is located in the correct directory. Please let me know. I don't see anything in the code that points to it that it should use a $ insted when using a cash discount not a % discount.... Again this only in the my account settings, during checkout everything is how it should and it deducts correctly using $, its just showing wrong in the "My Account". Thank you.
Re: Reward Points Module- Live Release now available.
Check your configuration table in MySQL and double check that MODULE_ORDER_TOTAL_REWARD_POINTS_STATUS has been inserted.
Re: Reward Points Module- Live Release now available.
where would the exact location be I could only find:
MODULE_ORDER_TOTAL_REWARD_POINTS_DISPLAY_STATUS
Re: Reward Points Module- Live Release now available.
Quote:
Originally Posted by
ryanb4614
where would the exact location be I could only find:
MODULE_ORDER_TOTAL_REWARD_POINTS_DISPLAY_STATUS
If you have phpmyadmin open your zencart database and search for it in the configuration table.
Re: Reward Points Module- Live Release now available.
nothing comes up for: MODULE_ORDER_TOTAL_REWARD_POINTS_STATUS
Re: Reward Points Module- Live Release now available.
hmm- it looks like you need to run the update.sql through the sql patch.