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.

SebastianRamon

Page: 1 , 2 , 3
Topic "Add to Cart" function not working from the detailed product page 9412 Views

"Add to Cart" function not working from the detailed product page

18 July 2011 at 10:15pm

Hi,
i've just started to play around with SilverCart to see what its capable of and i like a lot what you have done so far.
But there seems to be a problem, whenever i try to Add something to Cart from a detailed product item page it doesnt work and takes me to a "Server error page".
If i try to add products to cart from the product group page then everything works just fine.

i reinstalled from scratch both SilverStripe and also SilverCart (with the test data) but the problem is still there.
Any ideas?

Qlc

Re: "Add to Cart" function not working from the detailed product page

18 July 2011 at 10:20pm

Just noticed that if the cart is completely empty then adding the very first item to the cart - it works. But once there are things in the cart it stops working again.

Re: "Add to Cart" function not working from the detailed product page

19 July 2011 at 3:59pm

Hi
Can you post the entries of the logfile if there are any?

Cheers
Ramon

Re: "Add to Cart" function not working from the detailed product page

22 July 2011 at 5:40am Last edited: 22 July 2011 5:59am

Hi,
I am getting this exact same error on a brand new installation, first item adds to cart, works to view cart, increase/decrease, then adding a second item gives you an errorpage:
/webshop/productgroups/testgroup1/customHtmlFormSubmit

saying: "Server error
Sorry, there was a problem with handling your request."

for me it doesnt matter if the first item comes from the detailed page or from the listings page.

Tried a bunch of small stuff, increased memory in different _config files
ini_set('memory_limit', '128M');

got a silverstripe-cache folder in root.

I am on shared hosting.

could it be a chmod issue on some file or folder? got the assets to 777.

thanks,

Re: "Add to Cart" function not working from the detailed product page

22 July 2011 at 8:28am Last edited: 22 July 2011 8:29am

Hi bit99,

thanks for your feedback.

Can you please check if the BCMath extenstion is installed on the server you are hosted on?

Calling phpinfo() will give you a clue about that.

There was an issue when this extension was not installed.

We have refactored the code and do not need it in 1.1, though.

Cheers
Ramon

Re: "Add to Cart" function not working from the detailed product page

22 July 2011 at 8:51am

Hi Ramon,
thanks for the fast reply,
I just checked and it says:
BCMath support    enabled
I got PHP Version 5.2.17
CGI/FastCGI
Suhosin (has caused me problems in the past - not with SS though)
memory_limit   128M

anything you want me to check?

thanks,

Re: "Add to Cart" function not working from the detailed product page

22 July 2011 at 2:51pm Last edited: 22 July 2011 4:08pm

Hi bit99,

do you have access to the error.log and/or php.log?

If we are lucky, the error message was logged away.

Cheers
Ramon

PS: Who does host your installation if I may ask?

Re: "Add to Cart" function not working from the detailed product page

22 July 2011 at 3:02pm

Hello bit99,

are you logged in as admin? If so, please register a regular customer and tell me if the error is still there.

Greetings,

Roland