Skip to main content

OpenCart installation

OpenCart Testimonials with HTML Modules

OpenCart ships with an HTML Content module. Its editor has a Source button, and in OpenCart 4 the editor is set to keep whatever markup you paste, so the StoryProof div and script survive the save. You then place the module in a layout position, such as Content Bottom on the Home layout. No testimonial extension from the marketplace is needed.

  • Markup for the HTML Content module’s Source view
  • Which layout and position to pick
  • A Theme Editor footer override for the script

OpenCart markup

Code for the HTML Content module

Enter the widget id. With one widget, paste Module code into the module’s Description in Source view. If you add StoryProof modules to several layouts, use the div only there and put the script in a footer override.

Shown in StoryProof when you copy a widget’s embed code.

Part 1 · Module code: one HTML Content module with both lines

Extensions › Extensions › Modules › HTML Content › Description › Source

<div class="storyproof-testimonials">
  <div data-storyproof-widget="YOUR_WIDGET_ID"></div>
</div>
<script src="https://app.storyproof.io/embed.js" async></script>

Part 2 · Div only: each module when the script is site wide

HTML Content module › Description › Source

<div data-storyproof-widget="YOUR_WIDGET_ID"></div>

Part 3 · Footer override: script once, every page

Design › Theme Editor › Add New › common/footer › before </body>

<script src="https://app.storyproof.io/embed.js" async></script>

Save the module, assign it in Design, Layouts, and load the storefront page that uses that layout. If the module heading shows but the widget does not, reopen the module and confirm the script survived in Source view.

The code is generated in your browser and never leaves it.

The problem, solved

OpenCart testimonial headaches, fixed

  • Problem 1

    Every testimonial extension costs money

    Marketplace modules often target older OpenCart versions and add their own admin screens to learn.

  • Problem 2

    Testimonials needed on several page types

    Home, information and category pages each use a different layout, so one module seems to need copying.

  • Problem 3

    Store reviews need checking before they show

    Extension forms that publish straight to the storefront invite spam and off topic posts.

  • Problem 4

    Buyers will not type long reviews

    A text box after checkout gets one line, if anything.

  • Problem 5

    Requests depend on me remembering

    Manual follow ups after each order slip as soon as the store gets busy.

In StoryProof

Install it in OpenCart 4

Step 1 of 4

Enable the HTML Content module

Go to Extensions, Extensions, and choose Modules in the type filter. Install HTML Content if it is not installed, then open it to create a module.

Choosing a layout position

PositionGood forWatch out for
Content TopA short strip above page contentPushes the main content down
Content BottomA wall or carousel after the contentBelow the fold on long pages
Column LeftA narrow badge or compact listSome themes hide side columns on phones
Column RightSame as left, on the other sideCheck the theme renders a right column at all

Before you start

Known limits

  • Steps match OpenCart docs as of 2026-11-13

    Layouts and the Theme Editor follow docs.opencart.com, and the module fields follow OpenCart 4.1.0.3’s source, both read on 2026-11-13. Not yet tried on a live store.

  • Older versions and editors differ

    OpenCart 4 configures its editor to keep pasted markup. Older releases, or a store that swapped in another editor extension, may strip the script; check Source view after saving.

  • Themes decide what renders

    A third party theme can drop a position or rewrite common/footer. If nothing appears, check the theme’s own templates before blaming the module.

  • No OpenCart extension from StoryProof

    There is no StoryProof module on the OpenCart marketplace. The embed is all that is needed.

  • Badge on lower plans

    A small "Powered by StoryProof" badge stays under widgets until Pro.

FAQ

Questions people ask

Short answers to what usually comes up next.

Why did my script disappear after saving?

Some editors remove script tags. In stock OpenCart 4 the editor keeps them, but if yours does not, keep only the div in the module and load the script from a common/footer override.

Can a multi store setup show different widgets?

Yes. Create one HTML Content module per widget id and assign each to the layout routes for its store. Theme Editor overrides can also be set per store.

Does this replace OpenCart’s product reviews?

No. OpenCart’s reviews stay on product pages. The widget shows testimonials you approve in StoryProof, wherever you place the module.

Will a cache or minify extension break it?

It can, if it bundles or defers external scripts. Exclude embed.js from such processing and keep the src exactly as given.

Still have a question? Ask the StoryProof team or book a demo.

Skip the extension, keep the testimonials

Collect and approve them in StoryProof, then paste one embed into an OpenCart HTML module.

Sources

  1. Layouts, OpenCart Documentation. Checked 2026-11-13.
  2. Theme Editor, OpenCart Documentation. Checked 2026-11-13.
  3. HTML Content module (admin form and language strings, release 4.1.0.3), OpenCart on GitHub. Checked 2026-11-13.
  4. CKEditor configuration (allowedContent, Source button), release 4.1.0.3, OpenCart on GitHub. Checked 2026-11-13.

Last updated 2026-11-13.