Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

E-Commerce Modules /

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba, simon_w

Object of class Money could not be converted to double


Go to End
Reply


12 Posts   1882 Views

Avatar
ChrisS

Community Member, 5 Posts

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?

Avatar
biapar

Forum Moderator, 435 Posts

7 June 2010 at 12:57am

yes...same position

Avatar
biapar

Forum Moderator, 435 Posts

9 June 2010 at 7:49am

Solved with last ecommerce trunk

Avatar
biapar

Forum Moderator, 435 Posts

9 June 2010 at 7:53am

Solved with last trunk

Go to Top