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.
Phoca Cart 6.1.3 - Products not adding to cart after update
-
Serebro2ew
- Phoca Member

- Posts: 17
- Joined: 22 Jul 2026, 19:55
- Jan
- Phoca Hero

- Posts: 49497
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Cart 6.1.3 - Products not adding to cart after update
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
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
If you find Phoca extensions useful, please support the project
-
Serebro2ew
- Phoca Member

- Posts: 17
- Joined: 22 Jul 2026, 19:55
Re: Phoca Cart 6.1.3 - Products not adding to cart after update
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).
· 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).
-
Serebro2ew
- Phoca Member

- Posts: 17
- Joined: 22 Jul 2026, 19:55
Re: Phoca Cart 6.1.3 - Products not adding to cart after update
Я уже так делал
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
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
-
Serebro2ew
- Phoca Member

- Posts: 17
- Joined: 22 Jul 2026, 19:55
Re: Phoca Cart 6.1.3 - Products not adding to cart after update
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.
Ок
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.
Ок
-
Serebro2ew
- Phoca Member

- Posts: 17
- Joined: 22 Jul 2026, 19:55
Re: Phoca Cart 6.1.3 - Products not adding to cart after update
delete
Last edited by Serebro2ew on 26 Jul 2026, 13:45, edited 1 time in total.
-
Serebro2ew
- Phoca Member

- Posts: 17
- Joined: 22 Jul 2026, 19:55
Re: Phoca Cart 6.1.3 - Products not adding to cart after update
delete
Last edited by Serebro2ew on 26 Jul 2026, 13:45, edited 1 time in total.
-
Serebro2ew
- Phoca Member

- Posts: 17
- Joined: 22 Jul 2026, 19:55
Re: Phoca Cart 6.1.3 - Products not adding to cart after update
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
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
-
Serebro2ew
- Phoca Member

- Posts: 17
- Joined: 22 Jul 2026, 19:55
Re: Phoca Cart 6.1.3 - Products not adding to cart after update
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.
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.
- Nidzo
- Phoca Expert

- Posts: 551
- Joined: 07 Nov 2018, 14:55
Re: Phoca Cart 6.1.3 - Products not adding to cart after update
Good to hear you solved the problem. Enjoy using Phoca Cart.