Cart remains empty when adding to cart
Happily using shop on a standard license
The cart was collecting items as expected earlier on
Then I set up a /products.php?p={slug} query page successfully
Now the cart has stopped collecting items
Suggestions welcome thank you
We need to see your Diagnostics Report and all the relevant code to help.
What debugging steps have you followed so far?
I've updated to 2.8.30
Product page
Cart page
Can you post your Diagnostics Report please?
We also need information about the steps you have taken and your code. Otherwise we are just guessing.
Diagnotstic Report
I have installed perch standard and added shop then followed the getting started to set up products brands and taxes.
I have added the perch shop calls following
The shop page
The products page
The cart page
What changed from when it was working to now? If you go back, does it work again? You will need to give us something to go on - that's going to involve you doing some debugging and finding out what has caused it to stop working.
Changing back seems to make no difference. I made a fresh install and repeated the steps to set-up a minimum scenario.
The cart page does not appear to recieve any post variables. The cart page does recieve GET form actions.
The following test returns nothing
Home
Cart
The add to cart button has the same effect as the test. There are no carts added to the table perch2_shop_cart table.
Do you have any server side redirects in place?
Hi, I don't have redirects
Does POST work elsewhere on your site?
Yes POST is working
Can you give an example?
The test example above works now! I may have reinstalled members
Ok, great.
The cart remain empty however!
Beyond another reinstall and setup do you have any suggestions to get perch_shop_cart() working?
Can you show us your template?
Yes this is cart/cart.html and products/list.html both are unedited
products/list.html
Does it make a difference if you change this:
to this?
No, the result is the same.
What is the value of the hidden field when you view source?
A long string