Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / Add-On Idea Board / Testing Bootstrap 5 On ZC 3.0.0

Testing Bootstrap 5 On ZC 3.0.0

6 Dec 2026, 5:27 PM
#1
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,935
Plugin Contributions:
26

Post #1 by dbltoe

I've built a Bootstrap 5 storefront template for Zen Cart 3.0.0, and I'm offering it to anyone testing 3.0.0 who'd like a modern template to test with.

What it is

- An encapsulated template: everything lives in one folder under zc_plugins/, and it's installed, upgraded and removed from Plugin Manager. It never writes outside that folder.

- 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 integrity hashes.

- Forked from lat9's encapsulated ZCA Bootstrap template, with thanks. Every function, class, setting and admin page is renamed, so the two can be installed side by side.

- Every storefront page, the account pages and the three-page checkout on Bootstrap 5's grid and components, plus templates for One-Page Checkout (tested with 2.7.0).

- A compatibility layer, so Bootstrap 4 markup from other plugins keeps working.

- Child templates are supported, and there are hooks for add-ons (the navigation bar, product listings, the product page and the home page).

- When you select the template, it lists any Zen Cart settings that differ from its recommendations, with the SQL to apply them, in a log file. Nothing is changed automatically.

Accessibility

- Nine color schemes, and every text and background pairing in them meets WCAG AAA contrast (7:1), at rest and on hover. All 129 colors can be edited under Tools > Bootstrap 5 Colors, and Bootstrap's own components follow them. Form-field outlines reach 3:1.

- A type scale where every size is the smallest that still meets accessibility: body text stays at 1rem, and nothing is under 14px. Everything is in rem, so browser text size and zoom scale the whole page.

- 44px touch targets on listing cards and dialog close buttons.

- The fixed navigation bar leaves room, so keyboard focus never lands underneath it.

- The AJAX product search was rewritten without jQuery. It works from the keyboard (arrow keys and Enter), announces results to screen readers, and remains an ordinary search form without scripts.

Requirements: Zen Cart 3.0.0 and PHP 8.3, 8.4 or 8.5.

Download: https://github.com/dbltoe/Bootstrap_5_Template/releases/tag/v1.0.2

Please use the zip on that release page rather than the repository's main branch, which holds work that isn't released yet.

Installing

1. Upload zc_plugins/Bootstrap5Template/ from the zip into your store's zc_plugins/ folder.

2. In Admin > Modules > Plugin Manager, select Bootstrap 5 Plugin Template and click Install.

3. In Admin > Tools > Template Selection, choose Bootstrap 5 Plugin Template.

4. Open Admin > Tools > Layout Boxes Controller once, so Zen Cart creates the template's sidebox rows, then turn on the sideboxes you want.

If you find a problem, please post it here or open an issue at https://github.com/dbltoe/Bootstrap_5_Template/issues, with the page, your PHP version and what you saw.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com