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

PayPal Integration


Go to End


23 Posts   10457 Views

Avatar
Jedateach

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.

Avatar
GRiiDWeb

Community Member, 60 Posts

2 June 2011 at 1:12am

Hi,
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
GW

Avatar
GRiiDWeb

Community Member, 60 Posts

9 June 2011 at 7:43am

IT'S WORKING!!
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
GW

Avatar
GRiiDWeb

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?

Thanks

Avatar
Jedateach

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 %>

Avatar
GRiiDWeb

Community Member, 60 Posts

9 June 2011 at 9:15pm

Hi,
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.

Thanks

Avatar
bones

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].co.uk/index.php/PaypalExpressCheckoutaPayment_Handler/confirm?token=]http://www.[removed].co.uk/index.php/PaypalExpressCheckoutaPayment_Handler/confirm?token=[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
singleton() 
Line 2794 of DataObject.php
DataObject::get_one(,"ID" = 0,1) 
Line 2921 of DataObject.php
DataObject::get_by_id(,0) 
Line 265 of Payment.php
Payment->PaidObject() 
Line 459 of PayPalExpressCheckoutPayment.php
PaypalExpressCheckoutaPayment_Handler->doRedirect() 
Line 437 of PayPalExpressCheckoutPayment.php
PaypalExpressCheckoutaPayment_Handler->confirm(SS_HTTPRequest) 
Line 193 of Controller.php
Controller->handleAction(SS_HTTPRequest) 
Line 143 of RequestHandler.php
RequestHandler->handleRequest(SS_HTTPRequest) 
Line 147 of Controller.php
Controller->handleRequest(SS_HTTPRequest) 
Line 282 of Director.php
Director::handleRequest(SS_HTTPRequest,Session) 
Line 125 of Director.php
Director::direct(PaypalExpressCheckoutaPayment_Handler/confirm) 
Line 127 of main.php
require_once(/home/[removed]/public_html/test/sapphire/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