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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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, Ed, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba

Object of class Money could not be converted to double


Go to End


12 Posts   3602 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