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 9776 Views

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

26 July 2011 at 7:17pm

Hi Roland,
thanks for testing.
I tried both dev mode and live mode,
I have no underscore in url,
I have a silverstripe-cache, also put in a /tmp/silverstripe-cache just now (thats the older silverstripe style, right) with 777 rights, also added /temp folder (in the root, I didnt know that was needed),
But no change, so I think it might just be my shared webhost. I will try installing on a different webhost and that will probably do it.
thanks,

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

26 July 2011 at 9:09pm

Hi bit99,

do you have the possibility to check the php.log and the error.log? Usually there are entries that give a good hint on what's going on.

I really would like to sort this out :-)

Cheers
Ramon

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

27 July 2011 at 6:16am

Hi Ramon,
I tried installing on a different domain, and unfortunately I get the same error.
(its the same webhosting company though).

I dont get an error log.
upon adding the second item to the cart I get redirected to:
/webshop/productgroups/testgroup1/2/Testproduct2/customHtmlFormSubmit
where of course /webshop/productgroups/testgroup1/2/Testproduct2/ is the product I try to add, and I get an error in customHtmlFormSubmit,

not really sure what to try next,
is there any specific server configuration I need to have other than what is standard for silverstripe?
do you have a list for me to make sure I have it correct?
and maybe also a list of what folders need 777 got assets and silverstripe-cache 777?

I noticed you made a few small changes with the latest update - I used to get a confirmation email to both the shopper as well as the administrator when a new shopper signed up, good change.
And I noticed you changed the install instructions on how to include the testdata.
And all testdata products are unavailable by default (most likely due to the new stockquantity).

something else I noticed - after adding the testdata the frontend menu by default goes in the order: /TestProductGroup1/TestProductGroup2/... but as soon as you edit one product in the first group - then that TestProductGroup moves to the end of the menuorder, at least for me?

thanks,

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

27 July 2011 at 7:46am

Hello bit99,

i was talking about the /temp folder of the apache. It is there for sure, you do not need to create it.
As long as I do not have any error message of SilverStripe or the Apache I can only guess what the real bug is.
On a fresh installation with example products the StockQuantity of all products is set to zero. That's why they are unavailable if you switch on stock management. I changed the code and the stock quantity of each product will be set to 1.
I also once had that behavior that the order of the product groups changed. I will have a look at it.
I really appreciate your feedback.

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

27 July 2011 at 9:20am Last edited: 27 July 2011 9:29am

Hi,
I should just try a different webhost and I am sure it will work, just that this webhost has been great in the past for other stuff.
Do you have any webhost (shared/decent price) to recommend for use with silvercart?

I have /tmp/ folder, but nothing really from the last couple of days, except this from a day and a half ago:
# Mon Jul 25 17:40:18 2011
# Query_time: 1.047801 Lock_time: 0.018037 Rows_sent: 38 Rows_examined: 38
use "thenameofmysilvercartdatabase";
SHOW FULL FIELDS IN "Member",

but that doesnt seem relevant. the rest is from weeks ago.

for the stockquantity being zero/out of stock by default. I think you misunderstood me, I like that, think it makes total sense that you have to actively set the quantity to be able to sell.

The backend interface is great, I just want to up and run the way it is, and start to put in some of my own products. and its most likely just some server stuff since I seem to be the only one with problems.

thanks,

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

29 July 2011 at 10:26am

Hi bit99,

thanks for your feedback on the backend. This is great to hear.

Would you mind sharing with us where you are hosting your application right now and where you are located?

Perhaps it would make sense if we offer you a smoothly running SilverCart installation?

Cheers
Ramon

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

29 July 2011 at 8:23pm Last edited: 29 July 2011 8:44pm

I am in Canada and I am hosting with hostmonster.com. I like them actually, used them lots in the past.

I am thinking - you dont have a screenshot of your phpinfo (if you just blankout your sensitive info) and I could compare line by line to my own settings and adjust? is that possible?

Or I could move to a different webhost that you know is configured for silvercart. Thats probably the best way, although I am slightly cost sensitive so I was hoping for shared hosting.
I only have around 60-80 items right now - I am guessing you are used to bigger shops.

thanks,

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

29 July 2011 at 10:45pm Last edited: 29 July 2011 10:46pm

Hi bit99,

here you go, it is from one of our internal development boxes:

It's overflow:hidden, so you best download the image.

Hope it works!

Cheers
Ramon

PS: It is NOT the amount of products that makes a shop a "big" shop ;-)