SilverCart Forum
We moderate this Forum and we're here to help. Have you already run a forum search to check if your problem has already been solved?
You can help us helping you by providing detailed error messages, screenshots and logfile entries.
Page: 1 , 2 | ||
Topic Checkout not working | 4811 Views |
Checkout not working
5 August 2011 at 5:08pmHi
I have just installed a clean version of Silverstripe 2.4.5 with the latest release of Silvercart. I have installed the test data and test configuration.
When I try to checkout as an anonymous users (only way I have tried) when I get to the Overview step and click on the Place Order action button, the page just redirects back to the Overview page.
I am struggling to workout how the steps are configured in the checkout process and why the call to NextStep is just pushing me back to the same step without any sort of message or error.
Any help much appreciated as I would really like to approve Silvercart for use in our development projects.
Kind regards
Jason
Re: Checkout not working
6 August 2011 at 7:08amHello Jason,
did you install test data via the back office or via _config.php? Did you download SilverCart version 1.1 or the repositories tip?
Re: Checkout not working
8 August 2011 at 5:49pmHi Roland
I am using the tip version from the repository and the test data was created in the admin interface not _config.php.
Jason
Re: Checkout not working
8 August 2011 at 6:07pmHello Jason,
I cannot reproduce your problem. Sascha will help you because he designed the checkout and is our expert. You will hear from him tomorrow. In Germany it is 6.00pm, we are done for today;)
Please tell me your server/browser/apache stats.
Re: Checkout not working
9 August 2011 at 12:45pm Last edited: 9 August 2011 2:13pmHi Roland
I am running this on Mac OS X 10.6.8 using the built in http and php (5.3.4). I am using the latest Safari browser to view the site.
Jason
UPDATE: I have replaced the silvercart tip with 1.1 and I still can not get the checkout to complete.
Re: Checkout not working
9 August 2011 at 3:15pmHello Jason,
on my local Linuxbox I could reproduce this error. I'll have a look into the issue and give you an update on the progress (and hopefully a solution) soon.
Best regards,
Sascha
Re: Checkout not working
9 August 2011 at 3:41pmThat is good news Sascha, worst thing to fix is an unreproducible problem. Hopefully it will be a quick fix.
Might be worth an overview post on your blog about how the checkout works in conjunction with the custom form module. It appears to be quite a flexible setup, but very difficult to grasp when just looking at the code as a whole.
Being able to easily customise the checkout workflow is very important for our evaluation process.
Many thanks
Jason
Re: Checkout not working
9 August 2011 at 4:51pmHi Jason,
the fix can be applied in no time: just rename the folder "/silvercart-prepayment" to "silvercart_payment_prepayment" and the checkout will run smoothly.
As you noticed the Silvercart checkout is very flexible. Every payment module can define it's own steps without a limit on the number/behaviour of steps. The only prerequisite for this is that a payment module's directory starts with "silvercart_payment_".
The problem you encountered has it's root in the name of the prepayment repository ("silvercart-prepayment") which is used as the folder name when cloning.
Although it's mentioned in the installation instructions (http://www.silvercart.org/documentation/techbase/discover/setting-up-silvercart/) that you have to rename the directories I stumbled about this, too ;)
We're thinking about some ways to make it easier to install the whole Silvercart package and to provide error messages in dev mode in such cases as you encountered to prevent such errors in the future.
I hope that everything will work out smoothly now for you.
Best regards,
Sascha