Phoca Cart version 5- Dutch version . By default, the Phoca Cart category view displays products in three columns, but it does not show a quantity field. If a customer wants more than one item, they must either click Add to Cart multiple times or open the More Information page.
Below is a simple method to display a quantity input directly in the category view.
1. Edit the Layout File
Open the following file: /components/com_phocacart/layouts/form_part_start_add_to_cart_list.php
Locate the line containing:
echo (int)$sectionId > 0 ? '<input type="hidden" name="sectionid" value="'. (int)$sectionId.'" >' : '';
Place your cursor directly below this line and insert:
echo JText::_('COM_PHOCACART_QUANTITY');
echo '<input type="show" name="quantity" value="1">';
After saving, the quantity field becomes immediately visible in the category view.
2. Make the Change Update‑Safe (Override)
To prevent losing your modification during a Phoca Cart update, create a template override.
1. In the Joomla backend, go to:
System → Templates → Site Templates → Cassiopeia → Create Overrides
2. Navigate to:
Components → com_phocacart → items
3. Joomla will create the folder:
templates/cassiopeia/html/com_phocacart/items
4. Copy the file
/components/com_phocacart/layouts/form_part_start_add_to_cart_list.php
into the new override folder.
Your quantity field is now safely overridden and will survive updates.
Remark: according to Copilot the instructions “echo JText::_('COM_PHOCACART_QUANTITY');
echo '<input type="show" name="quantity" value="1">';” must stay in the layout file after creating the override. I don’t understand why, but I trust Copilot.
Credits
Solution found with the help of Copilot after many hours of searching.
Quantity Entry in Category View (Phoca Cart – Cassiopeia)
-
geldolto
- Phoca Newbie

- Posts: 4
- Joined: 25 Nov 2025, 19:11