Phoca Cart 6.1.3 - Products not adding to cart after update

Phoca Cart - complex e-commerce extension
Serebro2ew
Phoca Member
Phoca Member
Posts: 17
Joined: 22 Jul 2026, 19:55

Phoca Cart 6.1.3 - Products not adding to cart after update

Post by Serebro2ew »

Hi all,

I'm running into a serious issue after updating Phoca Cart from 6.1.1 to 6.1.3. The "Add to Cart" button no longer works. Clicking it does nothing, and items cannot be added to the shopping cart.

I've checked the component settings and permissions, and everything seems to be in order. I also made sure that the "Add to Cart" feature is enabled for the products.

Could this be a bug introduced in 6.1.3? Is there a hotfix or a workaround available? I would really appreciate any help or pointers.

Thanks!
Serebro2ew
Phoca Member
Phoca Member
Posts: 17
Joined: 22 Jul 2026, 19:55

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

Post by Serebro2ew »

2. Database structure warnings – in the component's database check, I see the following:
· Table jsonIOv5g_phocascart_attributes has an incorrect type or attributes for column published (int) from file 4.0.8.sql.
· 277 database changes checked, 48 changes were skipped because they did not change the table structure.
Serebro2ew
Phoca Member
Phoca Member
Posts: 17
Joined: 22 Jul 2026, 19:55

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

Post by Serebro2ew »

Astroid Framework
Framework Version: 3.4.2
Template Version: 1.0.6

Версия PHP 8.2.31
Версия Joomla Joomla! 5.4.7 Stable [ Kutegemea ] 7-July-2026 16:00 GMT
Serebro2ew
Phoca Member
Phoca Member
Posts: 17
Joined: 22 Jul 2026, 19:55

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

Post by Serebro2ew »

switched my site to the default Cassiopeia template to rule out theme conflicts, but the issue persists. Products still cannot be added to the cart. Clicking the add button does nothing
User avatar
Nidzo
Phoca Expert
Phoca Expert
Posts: 551
Joined: 07 Nov 2018, 14:55

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

Post by Nidzo »

Check phocacart_attributes table in your database using phpMyAdmin and look for published

`id` int(11) NOT NULL AUTO_INCREMENT,
`product_id` int(11) NOT NULL,
`title` varchar(255) NOT NULL DEFAULT '',
`alias` varchar(255) NOT NULL DEFAULT '',
`required` tinyint(1) NOT NULL DEFAULT '0',
`type` tinyint(1) NOT NULL DEFAULT '0',
`attribute_template` int(11),
`is_filter` int(11) NOT NULL DEFAULT 1,
`published` int(1) NOT NULL DEFAULT '1',
`checked_out` int unsigned,
`checked_out_time` datetime,
`ordering` int(11) NOT NULL DEFAULT '0',
`date` datetime NOT NULL,
`params` text,
`language` char(7) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
KEY `idx_product` (`product_id`),
KEY `idx_alias` (`alias`),
KEY `idx_language` (`language`)


Image
Serebro2ew
Phoca Member
Phoca Member
Posts: 17
Joined: 22 Jul 2026, 19:55

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

Post by Serebro2ew »

I have verified the table schema, and the field published defined as int(1) NOT NULL DEFAULT '1' is correct and matches the required specification.
Serebro2ew
Phoca Member
Phoca Member
Posts: 17
Joined: 22 Jul 2026, 19:55

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

Post by Serebro2ew »

In Console F 12 onClick: Request URL
https:///component/phocacart/?task=checkout.add&format=json&f2d65e4fbb4355e59bcc9dacfd54c6ec=1&checkoutview=0
Request Method
POST
Status Code
301 Moved Permanently
Remote Address
31.31.196.240:443
Referrer Policy
strict-origin-when-cross-origin
Serebro2ew
Phoca Member
Phoca Member
Posts: 17
Joined: 22 Jul 2026, 19:55

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

Post by Serebro2ew »

Hello everyone,

The "Add to cart" button uses an AJAX POST request to:
/component/phocacart/?task=checkout.add&format=json&...
The request returns a 301 Moved Permanently redirect to:
/component/phocacart.html?task=checkout.add&...
Because of the redirect, the browser changes the POST to GET, so the cart never gets updated.
What I tried:

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
User avatar
Nidzo
Phoca Expert
Phoca Expert
Posts: 551
Joined: 07 Nov 2018, 14:55

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

Post by Nidzo »

Try to leave SEO friendly URL on and disable SEF plugin in plugins.
Post Reply