1998 Posts in 530 Topics by 433 members
E-Commerce Modules
SilverStripe Forums » E-Commerce Modules » Object of class Money could not be converted to double
Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.
Moderators: martimiz, Nicolaas, Howard, Sean, Ryan M., biapar, Willr, Ingo, Jedateach, swaiba, simon_w
| Go to End | ||
| Author | Topic: | 1362 Views |
-
Re: Object of class Money could not be converted to double

6 June 2010 at 1:58pm
Hmmm. You are using the latest ecommerce from Jedatech?
I get a similar error when I undo his changes in the OrderForm class. Around line 200 in the processOrder function should read:
// Save payment data from form and process payment
$form->saveInto($payment);
$payment->OrderID = $order->ID;
$payment->Amount->Amount = $order->Total();
$payment->Amount->Currency = Order::Currency();
$payment->write();This handles the changes made in the Payment module to implement the Money class.
Hope this is of some help. Otherwise, do you have a stack trace?
-
Re: Object of class Money could not be converted to double

7 June 2010 at 12:57am
yes...same position
-
Re: Object of class Money could not be converted to double

9 June 2010 at 7:49am
Solved with last ecommerce trunk
-
Re: Object of class Money could not be converted to double

9 June 2010 at 7:53am
Solved with last trunk
| 1362 Views | ||
| Go to Top |

