Page 2 of 2

Re: Phoca Cart 6.1.3 - Products not adding to cart after update

Posted: 23 Jul 2026, 14:23
by Serebro2ew
What I have already tried:
Disabled "Add Suffix to URL" in the SEF plugin – didn't help.
Disabled the SEF plugin itself – didn't help.
Tried intercepting the request via JavaScript – this solved the problem, but I had to add custom notifications manually.

I'm looking for a solution that does not require modifying code and keeps SEO‑friendly URLs working without any workarounds.

Re: Phoca Cart 6.1.3 - Products not adding to cart after update

Posted: 23 Jul 2026, 17:07
by Jan
Hi,

seems like there is some specific protection on problem on the server.

To test:
Try to disable completely the SEF
Try to add the product to the cart and follow the link in Javascript console

let me know the AJAX link and let me know the answer on your server.

Do you use some specific security extensions which can e.g. somehow block some urls on your site or some specific redirect extension because of 301 ?

Jan

Re: Phoca Cart 6.1.3 - Products not adding to cart after update

Posted: 23 Jul 2026, 21:40
by Serebro2ew
Thank you for the detailed debugging steps.



· I do not use any security extensions (no Admin Tools, RSFirewall, sh404SEF, or similar) on either site.
· The problem occurs on two separate Joomla! sites after a recent update (both sites were updated around the same time).

Re: Phoca Cart 6.1.3 - Products not adding to cart after update

Posted: 23 Jul 2026, 21:43
by Serebro2ew
Я уже так делал

Temporarily disabled "Search Engine Friendly URLs" in Global Configuration → Site → SEO. After that, the cart worked perfectly.
Re-enabled SEF URLs – the problem came back.

I want to keep SEF URLs enabled

Re: Phoca Cart 6.1.3 - Products not adding to cart after update

Posted: 23 Jul 2026, 21:46
by Serebro2ew
To test:
Try to disable completely the SEF
Try to add the product to the cart and follow the link in Javascript console

let me know the AJAX link and let me know the answer on your server.

Ок

Re: Phoca Cart 6.1.3 - Products not adding to cart after update

Posted: 26 Jul 2026, 12:59
by Serebro2ew
delete

Re: Phoca Cart 6.1.3 - Products not adding to cart after update

Posted: 26 Jul 2026, 12:59
by Serebro2ew
delete

Re: Phoca Cart 6.1.3 - Products not adding to cart after update

Posted: 26 Jul 2026, 13:16
by Serebro2ew
Hello everyone,
I'm still struggling with the add‑to‑cart issue when SEF URLs are enabled.
The problem:
When I click the "Add to cart" button, the request goes to /component/phocacart/?task=checkout.add&...
The server responds with a 301 Moved Permanently redirect to /component/phocacart.html?...
In the browser's Network tab, the Type column shows "Redirect" for the first request (see attached screenshot).
Because of the redirect, the browser changes the POST request to a GET request, so the product is never added to the cart.

https://yapx.ru/album/eCE98

Re: Phoca Cart 6.1.3 - Products not adding to cart after update

Posted: 26 Jul 2026, 13:50
by Serebro2ew
Hello everyone,
I'm happy to report that I finally found the root cause of the 301 redirect issue with the add‑to‑cart functionality.
After hours of debugging, I discovered that the issue was caused by a rule in the .htaccess file:

apache
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^(.+)/$
RewriteRule ^(.+)/$ https://domen.su/$1 [R=301,L]

This 301 redirect changed the POST request to a GET request, so the product was never added to the cart.

Re: Phoca Cart 6.1.3 - Products not adding to cart after update

Posted: 26 Jul 2026, 17:35
by Nidzo
Good to hear you solved the problem. Enjoy using Phoca Cart.