Closed (fixed)
Project:
e-Commerce
Version:
4.7.x-1.x-dev
Component:
stores
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
4 Nov 2006 at 22:56 UTC
Updated:
21 Nov 2006 at 21:01 UTC
Any Flexicharges appear in the store as a zero amount, it looks like the value is not getting stored correctly/at all in the transaction
Comments
Comment #1
deadmalc commentedIt looks like this may be the store module that isn't saving any of the misc field values?
Comment #2
simefixing this now.
Comment #3
simefixed, thanks
http://drupal.org/cvs?commit=44501
Comment #4
deadmalc commentedThe flexicharge is being added to the store correctly if it is a flat value, however if it is a percentage e.g. 17.5%
It shows up as 17.50 units of currency, rather than the percentage value e.g.
Items ordered
Quantity Item Price
1 Day Moisturiser with Natural Environmental Protection
£19.00
Shipping: £0.00
V.A.T.: £17.50
Flat Rate Shipping: £3.99
Total: £40.49
Comment #5
simeAh, my fix was a bit dramatic. I think I'm adding the charge to the transaction correctly now.
http://drupal.org/cvs?commit=44536
Give it another go.
Comment #6
deadmalc commentedThat just foobars the misc fields completely....
Comment #7
deadmalc commentedIf your just adding:
$txn->misc[$key]->price = $amount;
What is $key??? it isn't defined anywhere in the function that I can see
Comment #8
simeeck. fixed now I hope. Please confirm
Comment #9
deadmalc commentedItems ordered
Quantity Item Price
1 Day Moisturiser with Natural Environmental Protection
£19.00
: £3.99 <---- This is the "Flat Rate Shipping" looks like it has been inserted at the beginning of misc rather than in the correct place.
Shipping: £0.00
V.A.T.: £0.00
Flat Rate Shipping: £0.00
Total: £22.99
Comment #10
deadmalc commentedItems ordered
Quantity Item Price
1 Day Moisturiser with Natural Environmental Protection
£19.00
: £3.99
Shipping: £0.00
V.A.T.: £0.00
Flat Rate Shipping: £0.00
Total: £22.99
previous post got corrupted due to use of dodgy text :-(
Comment #11
simeI am not doing this justice obviously. I'll have to look at this more closely ASAP
Comment #12
deadmalc commentedLooks like I managed to post after your last fix!
It works like a charm! (K)
Thanks very much!!
Comment #13
deadmalc commentedI suppose I should close this then ;)
Comment #14
(not verified) commented