Page 1 of 1
Hook Addons
Posted: Fri Jul 10, 2026 4:56 pm
by burt
List of Hook Addons that are solely a Hook File (or a Hook and accompanying Language file).
Please feel free to add a reply as and when you find them.
Free or not. Tell us what it does, tell us where it is.
If you install said hook, feel free to post an image of what it does (assuming it outputs something to the page).
Re: Hook Addons
Posted: Fri Jul 17, 2026 11:27 am
by burt
Product Attributes on Listings
https://phoenixcart.org/forum/viewtopic.php?f=39&t=3273
product attributes.JPG
Adds in whatever options you want to show on the Product Cards in listing pages.
Made by
@Omar_one and available in the Co-op.
Re: Hook Addons
Posted: Fri Jul 17, 2026 11:54 am
by burt
QR Codes on Invoice
https://phoenixcart.org/forum/app.php/a ... n_invoice/
qrddd.jpg
Allows your customer to scan the printed QR code to easily open their Order.
Re: Hook Addons
Posted: Fri Jul 31, 2026 7:42 am
by Kofod95
Set specials on product edit
app.php/addons/free_addon/set_specials_on_product_edit/
specialsOnEdit.png
Simply adds in a way to set a specials price and date, when editing or creating a product. This means, you don't have to use the dropdown in the core "specials.php", which can be a little inconvenient for stores with many products.
Not yet updated for BS5.
Re: Hook Addons
Posted: Tue Aug 04, 2026 10:06 am
by burt
Here's one from
@bonbec showing the user what they already have in their cart prominently.
attributes2.jpg
viewtopic.php?f=39&t=2755
Re: Hook Addons
Posted: Wed Aug 19, 2026 9:17 pm
by Dan Cole
This hook adds the search and go to input boxes back to the categories/products page. I didn't like the search icon that was added to this page and resulted in an extra click. The hook also sets the search field active so you can search for an item without having to click on it either. This image shows exactly what it does.
Category_Inputs.jpg
and here is the hook. It was created with help from my code monkey Gemini.
Code: Select all
<?php
class hook_admin_catalog_catalogAutoExpandSearch {
public function listen_injectSiteStart() {
ob_start(function($buffer) {
// 1. Expand the search row permanently & add bottom margin (mb-2)
$buffer = str_replace(
'class="collapse row" id="collapseSearch"',
'class="row mb-2" id="collapseSearch"',
$buffer
);
$buffer = str_replace(
'id="collapseSearch" class="collapse row"',
'id="collapseSearch" class="row mb-2"',
$buffer
);
// 2. Remove the search toggle button from the top bar
$buffer = preg_replace('/<(a|button)[^>]*data-bs-target="#collapseSearch"[^>]*>.*?<\/\1>/s', '', $buffer);
// 3. Inject script to focus the search input automatically on load
$focusScript = <<<HTML
<script>
document.addEventListener('DOMContentLoaded', function() {
var searchInput = document.querySelector('#collapseSearch input[name="search"]');
if (searchInput) {
searchInput.focus();
}
});
</script>
HTML;
// Append the focus script right before the closing body tag
return str_replace('</body>', $focusScript . '</body>', $buffer);
});
}
}
Re: Hook Addons
Posted: Thu Aug 20, 2026 10:09 am
by burt
Hook to allow Shopowner to easily find/copy a products Anywhere HTML element from the Admin.
https://github.com/CE-PhoenixCart/Produ ... 7c67ed0005