Repository navigation
Bootstrap 5 Plugin Template v1.0.0
First release. The release files were updated on 2026-10-25, still as version 1.0.0, to add the type scale and the three layout fixes at the end of this list.
- An encapsulated storefront template for Zen Cart 3.0.0 (PHP 8.3 to 8.5) on Bootstrap 5.3.8 and Font Awesome 7.3.1, with jQuery 3.7.1 kept for Zen Cart and the plugins that still use it. All three load from public CDNs, pinned to exact versions with Subresource Integrity hashes.
- Forked from lat9's encapsulated ZCA Bootstrap template (Bootstrap 4.6.2, branch
encapsulation). Every function, class, setting, admin page, settings group and CSS variable is renamed (bs5t_/BS5T_), and the template recognizes itself through Zen Cart 3.0.0's template inheritance chain rather than a sharedisBootstrapflag, so both packages can be installed at once. - Bootstrap 5 throughout:
data-bs-*attributes, start/end utilities,.form-check/.form-select,.btn-close,.visually-hidden;.card-deckand.card-columnsreplaced by the grid (centerboxes flow 1 / 2 / N per row; checkout in two columns from 992px); native Bootstrap 5 modal calls. - Nine color schemes for all 129 color settings (Blue, the default, plus Red, Orange, Yellow, Green, Purple, Brown, White and Black), every pairing at 7:1 (WCAG AAA) at rest and on hover; Bootstrap's link, primary, focus, secondary-text and error colors follow the settings; form-field outlines reach 3:1. A dark page background switches Bootstrap to its dark mode.
- Tools > Bootstrap 5 Colors loads a scheme in one step, saving the current colors first; Saved Colors restores, downloads or deletes them.
- AJAX search rebuilt without jQuery: a real search form (Enter and the Search button work without scripts), aborted stale requests, a live status line, arrow-key navigation, a View All Results link carrying the keyword.
- One-Page Checkout 2.7.0: the template's OPC templates, plus the shipping-choices override OPC's own copy needed for Bootstrap 5.
- A Bootstrap 4 compatibility layer (styles plus a
data-togglebridge and bare.modal()shim) for markup from plugins and core modules. - Admin: Configuration > Bootstrap 5 Plugin Template Settings and Tools > Bootstrap 5 Colors. Selecting the template in Template Selection reports Zen Cart settings that differ from the template's recommendations and writes the SQL to apply them; nothing is changed automatically.
- Install never writes outside
zc_plugins/; uninstall removes every setting and both admin pages, and is refused while the template or a child of it is in use. - Hooks for add-ons:
NOTIFY_BS5T_PRODUCT_LISTING_COLUMNSandNOTIFY_BS5T_PRODUCT_LISTING_TOOLBAR(a listing's layout and a place above its products),NOTIFY_BS5T_NAVBAR_ITEMS(extra navbar items),NOTIFY_BS5T_PRODUCT_INFO_AFTER_MAIN(product page) andNOTIFY_BS5T_HOME_AFTER_SLIDER(home page, below the slider). The color roles and each scheme's role values are published for add-ons that build palettes. - Accessibility: 44px targets for listing-card links and dialog close buttons (search, image, quantity discounts); the fixed navbar leaves room so keyboard focus never lands under it; the colors tool has a landmark, labels, readable text and keyboard access; the readme meets AAA contrast.
- The main navigation bar gets back Bootstrap 4's 1rem side padding (Bootstrap 5 gives
.navbarnone), so a store name or logo mark and the menu button no longer touch the bar's edges. - Hardening: the home slider's banner group is escaped and the cart sidebox's gift-voucher query casts the customer id.
- Fixed from the forked code:
site_mapandpage_not_foundfatals; a stale minified AJAX search script served by default; colors never applied (CSS variable names); navbar dropdown text losing contrast; the best-sellers carousel's stray text; the recommended-settings check never running on 3.0.0; the colors tool failing without the original package installed. - A smaller type scale, each size the smallest that still meets accessibility: page headings h1 28px (Bootstrap's own smaller size on narrow screens), h2 24px, h3 20px, h4 and h5 18px, h6 16px, where Bootstrap 5 uses 40/32/28/24/20/16px. Box and card headings are 20px, including card headers marked up as h1/h2. Body text, links, menus, buttons and prices are unchanged at 1rem, and badges (the Categories box's item counts) go from 12px to 14px, so no text is under 0.875rem. Everything stays in rem for browser text size and zoom, no heading grows at any width, and every heading under 24px keeps 7:1 (WCAG AAA) contrast in light and dark mode.
- A side column with no sideboxes switched on in Layout Boxes Controller is no longer drawn as empty space; the center column takes its width (GitHub #3).
- The product listing's Price heading sets its width (the Price Column Width setting) as CSS; the
widthattribute on<th>is obsolete HTML (GitHub #2). - The product description runs full width below the picture and the price/options/cart column instead of down the left half, so a long description no longer leaves empty space beside it (GitHub #5). The Pro add-on's Product Tabs still gather it as before.
Package bootstrap5_template_v1.0.0.zip, sha256 3eeb2ad15754eaf5674a8f841b73bdb55d0145731fa7f2a064b4fc1df431399d (replaced 2026-10-25; the 2026-10-22 zip was 3693e782a9f49ce24383a4e434078f185fba33c0974cfdfa7ecb62f1e8061bfd). Release checks: lint plus manifest, readme, security-scan and upgrade-guard harnesses ALL GREEN on PHP 8.3, 8.4 and 8.5. Private until Zen Cart 3.0.0 is released.