Needs review
Project:
Ubercart pictured cart block
Version:
6.x-1.0-beta3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Aug 2010 at 22:13 UTC
Updated:
4 Dec 2010 at 19:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
brad deforest commentedI didn't look at the setting close enough. There is already a setting for turning on a currency format which when turned on adds $ and rounds to 2 decimal points. Problem solved. Well thought out module. Thanks
Comment #2
mhunt commentedIt's possible bradley was using uc_acc. I'm using http://drupal.org/project/uc_aac [ Ubercart Ajax Attribute Calculations ] and have the same issue even though I have set the formats in '/admin/store/settings/store/edit/format'
Any one have any thoughts?
Comment #3
mhunt commentedI had to patch the module to correct the issue I was having by using the 'sprintf' function
lines 948 - 954:
if ($use_curr) {
$price = sprintf("%01.2f", uc_currency_format($item['price']));
}
else {
$price = $item['price'];
$price = sprintf("%01.2f", $item['price']);
}
Note that I am not a php programmer, but this seems to work for me.