A complete e-commerce footer built with Bootstrap 6 for online stores: customer help, shop and company link columns, a newsletter signup with a first-order discount, a delivery and returns highlights row, generic payment method icons and a currency selector. Use this shop footer template on product listings and category pages where shoppers look for help links and trust signals.
How it works
A short .ecf-sample strip stands in for the end of a product grid. The <footer class="ecf-root"> has four parts:
.ecf-perks: four highlights (delivery, returns, secure checkout, support hours) with inline SVG icons. The free delivery threshold is a.ecf-moneyelement withdata-ecf-usd="50"..ecf-main: the brand block with the.ecf-newsform, then three<nav class="ecf-col">columns, each labelled by its heading. The company column ends with an<address class="ecf-contact">..ecf-pay-row: payment methods drawn as neutral SVG icons with text labels (no real card or wallet logos) and the currency control. The currency control is a Bootstrap 6 Menu: a button withdata-bs-toggle="menu"and a flat.menuofbutton.menu-itemelements carryingdata-ecf-currency..ecf-legal: copyright, legal links and social links.
script.js is an ES module. It writes the current year into .ecf-year. Choosing a currency marks the item active with aria-current, updates the button label, converts every [data-ecf-usd] amount with ECF_RATES (rounded to 5), announces the change in .ecf-currency-status and closes the menu with Menu.getInstance(). The choice is saved in localStorage inside try/catch. The newsletter form validates the email, shows errors in .ecf-news-msg, simulates sending and then shows the discount code.
Customization
--ecf-accentand--ecf-accent-inkon.ecf-page: change the coral icons, focus outlines, Sale link and code badge.--ecf-ink,--ecf-muted,--ecf-lineand--ecf-soft: adjust text, dividers and the payment chip background.--ecf-radius: rounds the inputs, buttons, payment chips and menu (6px by default).ECF_RATESandECF_SYMBOLSinscript.js: add currencies or set real rates; add a matchingmenu-itemwithdata-ecf-currency.- Add
data-ecf-usdto any price in the footer to have it follow the selected currency. - Replace the
window.setTimeoutin the submit handler withfetch()to your newsletter provider.
Use cases
- Fashion and homeware shops: help links and returns promises sit next to every product list
- Stores selling abroad: shoppers switch the display currency from the footer
- Direct-to-consumer brands: the newsletter offers a first-order discount code
Accessibility
Each link column is a <nav> with aria-labelledby, contact details use <address>, and the payment list is labelled "We accept". The currency Menu supports arrow keys and Escape, and the selection is announced through a polite live region. Form errors set aria-invalid and are linked through aria-describedby. Social links use generic icons with the network name in visually hidden text. Controls are at least 40px tall on phones and show a focus outline.
Bootstrap 6 notes
Built on Bootstrap 6.0.0-alpha.1, so alpha APIs can still change. The currency picker uses the new Menu (data-bs-toggle="menu", .menu, .menu-item, .menu-header, data-bs-placement="top-end") instead of the Bootstrap 5 dropdown, the form uses form-field instead of an mb-3 wrapper, and btn-outline theme-secondary replaces btn-outline-secondary.