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


12 Posts   1827 Views


6 June 2010 at 1:58pm Community Member, 5 Posts

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
$payment->OrderID = $order->ID;
$payment->Amount->Amount = $order->Total();
$payment->Amount->Currency = Order::Currency();

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?


7 June 2010 at 12:57am Forum Moderator, 435 Posts

yes...same position


9 June 2010 at 7:49am Forum Moderator, 435 Posts

Solved with last ecommerce trunk


9 June 2010 at 7:53am Forum Moderator, 435 Posts

Solved with last trunk