Closed (fixed)
Project:
e-Commerce
Version:
master
Component:
product
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
10 Jul 2006 at 15:01 UTC
Updated:
14 Dec 2006 at 12:45 UTC
Jump to comment: Most recent file
When using european price notation (comma for decimal separator, dot for thousand separator) the price of a product is multiplied by 100 after editing it.
This is caused by the unformatted value of price, which consequently is wrongly interpreted by the valid_product_price() function.
This patch solves the problem by formatting the price according to the shop number format settings.
Cheers, Danny
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | product.module_5.patch | 1.75 KB | dvdweide |
| #4 | product.module_3.patch | 2.27 KB | dvdweide |
| #1 | product.module_2.patch | 2.63 KB | dvdweide |
| product.module_1.patch | 747 bytes | dvdweide |
Comments
Comment #1
dvdweide commentedI've found two other places where price formatting doesn't take place as it should:
- function product_overview
- function product_shortlist
New patch is attached.
This patch works fine, so i've taken the bold decision to promote the status to 'path ready to be committed'.
The problem also exists in cvs.
Cheers, Danny
Comment #2
dvdweide commentedAh.. too quick!!
Forgot to move the version to CVS
Comment #3
sunPatch works like a breeze.
Comment #4
dvdweide commentedUnfortunately another modification has also enterd into thiis patch.
It's an extension to the function "product_unit_nice_name" to enter cycles in hours and minutes to recurring payments.
Since it has nothing to do with this bug, i'v removed it from this new patch.
Excuses for this mistake!
Danny
Comment #5
sunWhy are there changes to billing cycle?
Comment #6
dvdweide commentedOoops!
That's the other modification that i really had to remove. It's related to the other one, ofcourse.
It's there only for testing purposes to make subscriptions expire faster.
It has been removed now.
Sorry again!
..Maybe i should have stayed in bed a little longer...
Danny
Comment #7
sunPatch applies and works fine.
Comment #8
mo6Just ran into the same problem(s). Nice work, Danny.
Now let's hope someone will commit these patches asap (in 4.7 as well please).
Comment #9
sun*bump*
Still not committed! Still applies!
Comment #10
simeassigning to myself
Comment #11
simeFinally committed, thanks guys.
http://drupal.org/cvs?commit=46779
http://drupal.org/cvs?commit=46780
Comment #12
(not verified) commented