Page 1 of 2
Product not added to shopping cart
Posted: 13 Jan 2025, 21:56
by landed
I am only now realising that loss of sales due to an error. Yes my job to check more often.
I get this error when trying to add product to cart.
https://bestantigua.com/shop/transfers/ ... a-transfer
Product not added to shopping cart
Product not selected
No obvious console errors- this looks like backend to me as it raises a proper error.
Re: Product not added to shopping cart
Posted: 15 Jan 2025, 16:19
by landed
Anyone knows some debug I can do?
Re: Product not added to shopping cart
Posted: 15 Jan 2025, 22:50
by Nidzo
Which version of Joomla and Phoca Cart?
Re: Product not added to shopping cart
Posted: 15 Jan 2025, 23:17
by Jan
Hi, on your site, you are using AJAX add to cart and when you add the product to cart, you get error in console:
"<span class=\"ph-result-txt ph-error-txt\">The most recent request was denied because it had an invalid security token. Please refresh the page and try again.</span>"
So the problem is with tokens, do you use some specific cache extension on your site? When you disable AJAX add to cart, do you get the same problem?
Jan
Re: Product not added to shopping cart
Posted: 16 Jan 2025, 13:29
by landed
Thanks Jan, you have found the issue. I don't use a special cache plugin just the regular. I am using Joomla 5 and latest release of Phoca Cart.
The issue which I highlighted right at the start of using this component is the UX issue that when you add to cart you get an ugly message but then no way to get to the checkout.
Can you highlight any insight into finding what conflicting plugin may be. If I go to manage plugins if I disable one by one will it work or do I need to do it at the plugin level?
Re: Product not added to shopping cart
Posted: 18 Jan 2025, 02:04
by Jan
Hi, sending tokens inside forms is completely Joomla feature, so it is hard to say what can be wrong on your Joomla site that it does not accept the tokens. Really hard to say. If not specific cache, is on your site some specific feature (e.g. some security, etc.)?
Jan
Re: Product not added to shopping cart
Posted: 23 Jan 2025, 17:34
by landed
Can I add a button which is showing a clear path to checkout then? This would be a workaround. That's the only reason I am using the Ajax before. I'd be keen to build my own override if you can help me find the relevant code.
Re: Product not added to shopping cart
Posted: 24 Jan 2025, 03:20
by Jan
Hi, what do you mean with "clear path to checkout then"?
Re: Product not added to shopping cart
Posted: 24 Jan 2025, 11:05
by landed
As I said on this form previously when I first started with Phoca Cart which is amazing by the way. The UX flow is broken.
When you add a product to the cart then you would expect to be able to checkout with a button or some redirect to the cart. There is no easy way to provide this apart from a menu item which then the user has to hunt for.
Re: Product not added to shopping cart
Posted: 24 Jan 2025, 13:09
by Benno
Hi,
When you add a product to the cart then you would expect to be able to checkout with a button or some redirect to the cart. There is no easy way to provide this apart from a menu item which then the user has to hunt for.
Mmmmm, see
Demo and images:
Kind regards,
Benno