CarlitoBrigante |
05-27-2004 01:46 PM |
The system doesn't seem to properly calculate exceptions... while it gives you the right discounts, if you don't have enough money, you have no access to that action. For example, if I buy Italics username for 500, and I have 200 gils left, and I want to reset the username to normal (cost: 0), the system doesn't let me access that action - it always controls against the "normal" full price of the action.
I think the problem is here, in ushop.php
PHP Code:
// Run through the standard procedure...
$rcost = calculate_discounted_price($action['cost'], $action['tax']);
$rcost = calculate_taxed_price($rcost, $action['tax']);
$cost = uttpoints_number_format($rcost);
$cost = uttstore_actions_cost_exceptions($cost);
if ($rcost > $points) {
$message = "You do not have enough points for this.";
uttstore_print_end_message($message);
}
It should check for $cost >$points - or, it should be like this:
PHP Code:
// Run through the standard procedure...
$rcost = calculate_discounted_price($action['cost'], $action['tax']);
$rcost = calculate_taxed_price($rcost, $action['tax']);
$rcost = uttpoints_number_format($rcost);
$rcost = uttstore_actions_cost_exceptions($rcost);
if ($rcost > $points) {
$message = "You do not have enough points for this.";
uttstore_print_end_message($message);
}
Zachery?
|