Forum
Your cart is empty
Have managed to get a products page and a products details page but when I add a product to the cart I get a message 'your cart is empty'. Totally stuck. I uploaded the default product.html and cart.html templates, but still no luck.
Can anyone suggest where I may be going wrong?
Can you post your diagnostics report?
Are you developing this live, or do you have it working on a development server elsewhere?
I'm developing it live
I'd recommend turning on debug to see what happens when you add something to the cart. If that's not possible on a live site, you might want to look at doing this in development.
I got this with debug
In the DB table perch3_shop_cart there is an entry for cartID = 33 but this shows as having no total items or products. When I look at the table perch3_pages there are no entries. I don't know what this means or how to remedy it.
Is that after posting to the cart? I'd expect to see an attempt in there to store the cart item in the database.
Perhaps the issue is your add-to-cart form. Can you show us what you have there?
This is the add-to-cart form on product.html
This needs to be a product ID. not the title:
Could you try with the default templates and see if that solves your issue?
Thanks Drew, I tried this but no joy. I think I need to start again with the shop. Delete and reinstall
Finally sorted it by changing the form action, adding a forward slash after cart.
I have exactly the same problem. Anyone got a suggestion? https://mypremiercreditcard.me