Blocks are the building components that make up your storefront's visual structure and functionality. They represent various elements that can be positioned throughout your store to create a cohesive and functional user experience.
The Venddor platform includes several types of blocks that serve different purposes:
Block Type | Description | Common Use Cases |
---|---|---|
Navigation Menus | Provides navigation links to different sections of your store | Header, footer, sidebar navigation |
Banner Blocks | Displays promotional content, images, or calls to action | Homepage sliders, promotional announcements |
Product Blocks | Shows products in various formats and groupings | Featured products, new arrivals, related items |
Search Forms | Allows customers to search your product catalog | Header search, advanced search pages |
Content Blocks | Displays custom HTML, text, or media content | About us information, policy text, brand stories |
Interactive Elements | Provides functionality for user interaction | Contact forms, newsletter signup, social feed |
Administrators can customize their storefront by positioning blocks on different layouts. This allows for complete control over the structure and appearance of store pages.
The Venddor API allows you to programmatically manage blocks, enabling custom integrations and automated store customization. See the Blocks API endpoints for more details.
{ "block_id": "12345", "type": "products", "name": "Featured Products", "status": "A", "position": 10, "properties": { "template": "blocks/product_grid.tpl", "item_number": 4 } }