Posted by openbook on December 3, 2009 at 11:52am
1 follower
| Project: | Ubercart Percent Rate with Minimum Rate |
| Version: | 6.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Im not sure if this a feature is by design or a bug but I couldnt get the default percentage rate (added in the admin area) to apply for shippable products, it only works when I set the percentage rate on a per product basis. Looking at the code I cant see where default percentage would be applied. Ive added the following code at line 110 which seems to fix the issue:
// the default percent rate is loaded if no product override is found.
if (!$return['minpercentrate']) {
$result = db_query("SELECT mid, percent_rate FROM {uc_minpercentrate_methods}");
while ($rate = db_fetch_object($result)) {
$return['minpercentrate'][$rate->mid] = $rate->percent_rate;
}
}if this is indeed a bug then Im happy to roll this in to a patch.