For OpenCart 2.3, 3.0, 4.0 and 4.1
Positions
- Very top of every page, under the menu, top and bottom of the page content, above the footer, very bottom of the page.
- Product page: above the pictures, and above the options and Add to Cart.
- Anywhere: name an element with a CSS selector (for example footer h5) and choose before, after, inside at the start or inside at the end.
Each block
- Its own HTML, CSS or script, written per language, with a preview while you type (scripts do not run in the preview).
- Pages: home, category, product, brand, information, search, cart, checkout, account or other pages; optionally only certain product, category, information or brand IDs.
- All devices, computers and tablets only, or phones only.
- Everyone, guests only or logged in customers only.
- One store or all stores, show from / show until dates, sort order and an on/off button.
Notes
- Your HTML is shown as written, with no added width or spacing: wrap it in a container if it should line up with the page.
- The positions fit the default theme. In a theme built differently, use the "Anywhere" position. That one is placed by the visitor's browser.
- No core files are edited. Blocks are kept if you uninstall the module, so reinstalling brings them back.
- If you use a page cache, make sure it does not show pages made for logged in customers to guests.