CS-Cart

Product blocks

Landing pages and banners on the product page from ready-made HTML. Above the description, below it or in a tab of their own — for chosen products, categories or all of them, on a schedule.

What it can do

  • Your own HTML and CSSPaste a whole page: the body content stays, styles move to CSS and do not touch the theme.
  • ZIP import and exportA designer's archive uploads as one file, with images, video and fonts. A block exports back the same way.
  • Where to showProducts, categories with subcategories or all products, minus the excluded ones. Languages and storefronts on top.
  • ScheduleStart and end dates: a sale banner appears and disappears on its own.
  • Safe HTMLScripts, event handlers and foreign iframes are stripped on save. YouTube, Rutube, VK and Vimeo videos stay.

Manufacturers hand out ready-made landing pages for their products: images, video, tables, their own layout. Putting that into the description is painful — the editor breaks the markup, styles clash with the theme, and the same block has to be copied into a hundred products.

The add-on keeps such blocks apart from products. A block is made once, linked to products or categories and shown on the product page in the chosen place. Change the block and it changes everywhere.

What a block is

Every block is HTML, CSS and a folder of files. Styles are scoped to the block: every selector gets a prefix, and rules for html, body and :root apply to the block wrapper. So someone else’s body { font-family: … } will not restyle the shop.

Where it shows up

  • Description: above the text or below the text — the block becomes part of the description tab.
  • A separate tab — “Overview”; rename or move it in the product tab settings.

Blocks of one zone are shown in priority order. Variations get the blocks of their parent product.

Screenshots

Block HTML with highlighting. Files are referenced as assets/…
Block HTML with highlighting. Files are referenced as assets/…
Block files: drag to upload, insert into HTML with one click.
Block files: drag to upload, insert into HTML with one click.

What's new

1.0.0
  • AddedFirst release: blocks from HTML and CSS, block files, ZIP import and export, display conditions and schedule.
All changes