We met some problem with checkout.
When new user comes to site, choose an item to buy and click "Checkout" from /EditCartSubmit.do - nothing happens.
It was the error previously:
06-May 14:00:39 WARN (ShowCartItemsAction.java:createTempOrder:219) A temporary order could not be created
com.konakart.app.KKException: A default customer cannot be found. You must create one using the Admin App.
But when I created the default customer - the problem persists. With no error messages :(.
Of course this problem does not exist in default demo e-store (in English locale), so the problem is in some configuration.
I have no idea what config may be wrong...
Any ideas?
Thanks,
-Andrey
1) The "Store Configuration" in Admin App has following properties:
Display Coupon Entry Field: false
Enables One Page Checkout: false
Enables Checkout Without Registration: false
Enable Wish List functionality: false
2) The default locale is ru_RU.
Do you have a set of Russian Order Status records ?
do you see any exceptions in your tomcat log?
Quote from: trevor on May 06, 2010, 12:12:53 pm
Do you have a set of Russian Order Status records ?
Yes, I do (I simply copied the corresponding English text into Russian fields).
Quote from: greg on May 06, 2010, 12:31:43 pm
do you see any exceptions in your tomcat log?
No, I don't.
I tried to debug and saw that everything should work ???
1) ShowCartItems.do shows EditCartBody.jsp, which for the onClick event submit to /EditCartSubmit.do (and really try to set up document.EditCartForm.goToCheckout.value="true" (if document.EditCartForm.goToCheckout.value exists, by the way...))
1) EditCartSubmit.do comes to EditCartSubmitAction.java do where:
1.1) read
EditCartForm ecf = (EditCartForm) form;
1.2) but
ecf.getGoToCheckout().equalsIgnoreCase("true") === false, since ecf.getGoToCheckout() is just empty String.
What other conditions should be satisfied?..
I enable the setting:
Enables Checkout Without Registration: true
and now the checkout button work ok.
Thanks.
Ups... I'm afraid, the problem still exists (the success was very temporary).
So, the button (from EditCartBody.jsp)
<a style="float:right" onmouseover="setGoToCheckout()" onclick="javascript:document.forms['form1'].submit();" class="button"><span><bean:message key="common.checkout"/></span></a>
does not work (with the current configuration of the site).