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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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

PayPal Integration

Go to End

23 Posts   8692 Views


Forum Moderator, 238 Posts

1 June 2011 at 10:49am

Edited: 01/06/2011 10:51am

Remove the line:

'PayPalPayment' => 'Paypal Payment', //old paypal payment

to make sure there is only one paypal payment.

View the README file found within the folder for the new paypal payment type for instructions on how to configure in _config.php.

When you get a 500 error, you should also get an error message...which we can then look at to figure out what is going wrong. Make sure your site is in dev mode... then you can copy+paste the message here for help.


Community Member, 60 Posts

2 June 2011 at 1:12am

Many thanks for you advice again.
I'm starting to see where I'm going off track.
I work full time and develop/build sites part time. I think, working on this in the evenings, after a full day at work, is not the best idea as I will have a tired brain.
I'll have a couple of days rest and start again with fresh eyes. I'm determined to get this working!

Thanks again


Community Member, 60 Posts

9 June 2011 at 7:43am

Just needed that last little bit of help to get it going.
One thing I do miss is the 'go to checkout' link in the cart section in the left column. Is there a chance of getting that back?

Thanks again


Community Member, 60 Posts

9 June 2011 at 8:35am

I've answered my own question.
I've got various versions of the commerce module, so I've looked back at the previous templates go get what I needed and adapted.
It's really taking shape now.
What I'd like to acheive is to have the top level prodcucts page only show featured items that I've ticked as a featured product. 've had a go with the 'old' templates, but can't seem to get it just to do this. Any pointers or clues?



Forum Moderator, 238 Posts

9 June 2011 at 9:46am

@Gridweb, you should be able to add <% control FeaturedProducts %> ... <% end_control %> to your ProductGroup template. This will show all the featured products within that product group.

Inside the control tag, you might be able to simply add something like <% include ProductGroupItem %>


Community Member, 60 Posts

9 June 2011 at 9:15pm

That seems a good idea.
I'm wanting to have only the featured items and nothing else at the top level to give users a 'taster', but all items in the relevant groups to show.
I guess I'm asking not only what to add, but what to remove so as not to break the product groups at the next level.

I've got the quantities and checkout button back in the left column cart, so it's coming togeter.



Community Member, 110 Posts

18 October 2011 at 10:56pm

I'm having a problem right at the end of the payment procedure, which I hope someone can help me with.

After successfully completing the PayPal payment, the redirect back to by website fails ("Server Error"), the URL is [url=http://www.[removed]]http://www.[removed][removed]&PayerID=[removed])

Refreshing the page returns to my site's homepage, and all seems fine.

I get the following error report via email:

Error: singleton() Called without a class
At line 343 in /home/[removed]/public_html/test/sapphire/core/Core.php 

singleton() Called without a class 
Line 343 of Core.php
Line 2794 of DataObject.php
DataObject::get_one(,"ID" = 0,1) 
Line 2921 of DataObject.php
Line 265 of Payment.php
Line 459 of PayPalExpressCheckoutPayment.php
Line 437 of PayPalExpressCheckoutPayment.php
Line 193 of Controller.php
Line 143 of RequestHandler.php
Line 147 of Controller.php
Line 282 of Director.php
Line 125 of Director.php
Line 127 of main.php
Line 63 of index.php

I'm SO close! Can anybody help me with this last part, please? Many thanks

Go to Top