CartController ajax refresh logs "No template found for checkout/_partials/cart-summary-items-subtotal" with Hummingbird theme
Prerequisites
- I understand and accept the project's code of conduct.
- I have already searched in existing issues and found no previous report of this bug.
Describe the bug and add attachments
On a shop using the Hummingbird theme (or a child theme of it), every cart update from the cart or checkout page logs this informational entry in Advanced Parameters → Logs:
No template found for checkout/_partials/cart-summary-items-subtotal
When the cart is refreshed over ajax, CartController always renders the partial checkout/_partials/cart-summary-items-subtotal:
// controllers/front/CartController.php (~line 165) 'cart_summary_items_subtotal' => $this->render('checkout/_partials/cart-summary-items-subtotal'),
This partial exists in the Classic theme but is not shipped with Hummingbird. FrontController::render() catches the PrestaShopException thrown by TemplateFinder, logs it through PrestaShopLogger::addLog() and returns an empty string. Hummingbird's templates have no element matching the summaryItemsSubtotal selector, so the empty response is never used.
The shop keeps working, but a log entry is written on every cart change. On a live shop this fills the logs quickly and hides real problems.
Hummingbird 2.1.2 (via a child theme)
Steps to reproduce
- Install PrestaShop 9.1.5 with the Hummingbird theme (or a child theme with parent: hummingbird).
- In the front office, add a product to the cart and open the cart page.
- Change the quantity or remove a product (this triggers the ajax refresh in CartController::displayAjaxRefresh / updateCart).
- Go to Advanced Parameters → Logs.
- A new severity 1 entry appears: No template found for checkout/_partials/cart-summary-items-subtotal.
Expected behavior
Changing the cart with Hummingbird should not produce log entries. Any of these would fix it:
- Hummingbird ships an (empty) templates/checkout/_partials/cart-summary-items-subtotal.tpl, or
- CartController only renders the partial when the active theme provides it, or
- the core stops requesting partials that Hummingbird doesn't use.
Actual Result
No response
PrestaShop version where the bug happens
9.1.5
How have you installed PrestaShop
Fresh install fomr download
PHP version(s) where the bug happened
8.5.11
Your company or customer's name goes here (if applicable).
MARK-APP
Source: PrestaShop/PrestaShop