About Services Tools Blog Contact us

Live Product Grids in Content

A short code in a size guide or article shows a live grid of products from an OpenCart category, with a load more button.

  • E-commerce Integrations
  • Footwear retail
  • Website
  • Productised
  • Cloud
  • 2026

The problem

Fit guides that name products go out of date as soon as stock changes. Pasting product cards into an article means the page and the shop disagree within a week.

What it does

An editor adds a short code that names a shop category, with an optional name search and a maximum number of products. The page shows product cards from that OpenCart category. The load more button fetches the next page of the same category. If a name search could match several categories, the category number is used.

Outcomes

  • Fit guides show what the shop can sell today.
  • An editor changes a category number and does not paste cards again.
  • Load more keeps the first screen short.
  • A category with no products shows an empty grid and no old names.

Simplified mockup

Interactive preview with sample data. Nothing is sent to a server.

Girls’ school shoes

4 of 31
After the size table
UKEUmmFitting
1129177F
1230184F
1331191F
133205F
234212F
Shortcode in the article

A firm heel and a fastening the child can do. The cards below are not pasted in. They come from the shop category.

<shortcode cid="1842" q="" max="4"> </shortcode>

Name query left blank. Category 1842 is Girls’ school shoes.

Hearth lace-up
Black leatherUK 12–2
£38In stock
Mill T-bar
Navy leatherUK 11–1
£42In stock
Pebble velcro
CharcoalUK 10–13
£32Low
Quay court
BurgundyUK 1–3
£44In stock

Category id first

What the editor placed

<shortcode cid="1842" q="" max="4"> </shortcode>

Resolve

A word such as school matches more than one category. The category id wins. With no id, the name is not used and the grid is emptied rather than keeping yesterday’s cards.

Category 1842 is set
Resolved from category 1842 Name not sent
CardColourSizesPrice
Hearth lace-upBlack leatherUK 12–2£38
Mill T-barNavy leatherUK 11–1£42
Pebble velcroCharcoalUK 10–13£32
Quay courtBurgundyUK 1–3£44

HTML backups

Before write
Pages
PageBackupTablesShortcodesCheck
girls-school-shoes.htmlbackups/1842.html22Kept
boys-school-shoes.htmlbackups/1841.html22Kept
first-shoes.htmlbackups/1760.html11Kept
teenage-trainers.htmlnot written11Already had one
What the check keeps
Size tables
Same count
The chart is not rewritten
Shortcode
After the table
And once at the foot
Already tagged
Skip
No second grid

How it works

  1. Add a short code with a category number and a maximum count.
  2. Show product cards from that OpenCart category inside the article.
  3. Fetch the next page of the same category when load more is pressed.
  4. Use the category number when a name search could match more than one category.

Pipeline

flowchart LR
  A["Shortcode"] --> B["Category id"]
  B --> C["OpenCart"]
  C --> D["Product cards"]
  D --> E["Load more"]
  E --> C