While containers form the storefront structure, blocks basically populate this structure with contents and functionality. Blocks can be viewed as separate boxes which represent a particular storefront component. This can be a search form, a currency or a language selector, top menu, product filter, banner, list of products, text, HTML insertion, etc. Just everything that can appear on the storefront is created using blocks.
Blocks differ from each other in the type of data they represent. However, blocks with the same data type can have different content, appearance, and configuration. Moreover, certain blocks may be assigned to specific items/pages only. This makes blocks a highly powerful and flexible tool for building custom storefronts and creating individual pages out of a typical framework.
CS-Cart already offers a number of predefined blocks. Use them to quickly add the most popular and common storefront components. In addition, you can create custom blocks based on the available templates.
You can rearrange blocks in the frame, add and remove blocks, edit block properties, activate and disable blocks, assign blocks to specific items/pages.
Note
To edit blocks from the “Top panel”, “Header” or “Footer”, edit the Default layout page.
When adding a block, you can use one of the following options:
To add an existing block:
Click the + icon on the container where the block should be placed and select Add Block.
Select Use Existing Block tab.
Choose a block from the list and click its icon.
The block will appear among the other objects in the frame.
To create and add a new block:
The block will appear among the other objects in the frame. Also, it will be added to the list of existing blocks.
Move the cursor over the block and click the trash can icon.
When prompted, confirm the action.
If a layout page represents a group of pages (for example, detailed product pages on the storefront), blocks are automatically assigned to all items in the group.
However, you can hide a block infor a specific item (product, category, page, etc.), if you want to hide the block on the corresponding storefront page. Similarly, you can force a block to appear on a particular storefront page if the block is deactivated in the layout page settings.
To hide/show a block on the storefront page of an item:
Questions & Feedback
Have any questions that weren't answered here? Need help with solving a problem in your online store? Want to report a bug in our software? Find out how to contact us.