Again thank you for taking the time to help me. It is very much appreciated
Printable View
hi how do i get my reward points to not round up if anything i need to round down to the nearest pound.
we are giving 0.02p for every point earned, £1 = 1 point.
I think my question may have been overlooked.
I'd like to know if there's a way to exclude group discount customers from using their reward points, or disabling reward points for these customers completely. I would appreciate any help with this if possible.
to get the points to show up as just a number instead of $400.00 , i used the following code edit in super_orders.php
change:
to:Code:<?php
for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) {
echo ' <tr>' . "\n" .
' <td align="right" class="'. str_replace('_', '-', $order->totals[$i]['class']) . '-Text">' . $order->totals[$i]['title'] . '</td>' . "\n" .
' <td align="right" class="'. str_replace('_', '-', $order->totals[$i]['class']) . '-Amount">' . $order->totals[$i]['text'] . '</td>' . "\n" .
' </tr>' . "\n";
}
One issue I still have though: when I 'Edit Order Totals' and change the Reward Points Earned, it changes in Super Orders but the actual amount awarded in RPM doesn't change. Any ideas?Code:<?php
for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) {
if ($order->totals[$i]['class'] == 'ot_reward_points_display') {
$display_title = $order->totals[$i]['title'];
$display_text = substr(ltrim($order->totals[$i]['text'],"$"),0,-3);
}
else {
$display_title = $order->totals[$i]['title'];
$display_text = $order->totals[$i]['text'];
}
echo ' <tr>' . "\n" .
' <td align="right" class="'. str_replace('_', '-', $order->totals[$i]['class']) . '-Text">' . $display_title . '</td>' . "\n" .
' <td align="right" class="'. str_replace('_', '-', $order->totals[$i]['class']) . '-Amount">' . $display_text . '</td>' . "\n" .
' </tr>' . "\n";
}
I also have Super Orders and Edit Orders installed, and wanted the Reward Points to transfer from Pending to Earned when the order is paid (Complete). I don't use batch updating, so my workaround is just when the order is updated in Super Orders, check the status and run the appropriate Reward Points function.
In super_order.php, under case 'update_order': , after this:
I added this:Code:// OK, we have our Customer Notified Status Number, now update the Order Status History Table
update_status($oID, $status, $customer_notified, $comments);
// Is the Customer Notified Status Number a 1, then send the customer and E-Mail with the status update.
if ($customer_notified == '1') {
email_latest_status($oID);
}
Code:if(($check_status->fields['orders_status'] < 5 && $status == 5)){
//if previous status was Pending, Shipped, or Returned AND new status is Complete/Paid
TransferCustomerPointsFromPending($oID);
$messageStack->add_session('Pending points transferred for Order ' . $oID , 'success');
}
if(($check_status->fields['orders_status'] == 5 && $status < 5)){
//if previous status was Complete Paid AND new status is Pending, Shipped, or Returned
//take back the points if somehow they un-pay
TransferCustomerPointsToPending($oID);
$messageStack->add_session('Earned points transferred back to Pending for Order ' . $oID , 'success');
}
Does anyone have a report already written to show Points Redeemed per customer over time? (Just looking for a way to track how much $ we're "giving away".)
Thanks all in advance!
Could someone try to answer the question below please, I already posted it few weeks ago with no response.
I would appreciate if someone could clarify this feature:
Delete Old Reward Transactions Period
Set the age (in days) to keep the reward point transactions. Outstanding reward points pending after this period will be lost. Set to 0 to keep all transactions.
Is this mean that any points that are earned will not be deleted no matter what? I setup this module using Sunrise Period of 1 so pending points become earned the next day but I like these earned points to be deleted after 30 days but looks like the system doesn't delete earned points?