Getting Started
Bagisto Visual gives you a full visual editing experience for your storefront — with real-time preview, drag-and-drop sections, and theme customization.
This guide will help you:
- Install Bagisto Visual
- Add the default starter theme
- Launch the visual editor
- Add and edit content
- Create your first custom section
Prerequisites
Before you begin, make sure you have:
- PHP version 8.2 or later
- A running Bagisto store (version 2.3 or later)
Step 1: Install Bagisto Visual
Install the package via Composer:
INFO
If you're installing an alpha/beta version, ensure your project accepts dev packages:
composer config minimum-stability dev && composer config prefer-stable trueThis allows Composer to install pre-release versions of Bagisto Visual.
composer require bagistoplus/visual:^2.0@devThen publish the assets:
php artisan vendor:publish --tag=visual-assetsThis installs Bagisto Visual and prepares your store for theme customization.
Optional: Enable Template Assignments
Template assignments let products, categories, and CMS pages use custom templates from the Bagisto admin. This feature stores assignments in the database, so enable it only when you need persistent per-resource templates.
Add the environment flag:
BAGISTO_VISUAL_TEMPLATE_ASSIGNMENTS=trueThen run the package migrations:
php artisan migrateStep 2: Install the Starter Theme
Install the default theme package:
composer require bagistoplus/visual-debut:^2.0@devAnd publish its assets:
php artisan vendor:publish --tag=visual-debut-assetsOnce installed, the theme will appear in your Bagisto admin under the menu Bagisto Visual -> Themes.
Click Customize to launch the visual editor.
Step 3: Launch the Visual Editor
From the admin panel, navigate to Bagisto Visual → Themes and click Customize on the Visual Debut theme.
The editor interface has three main areas:
- Left Sidebar – Browse pages, add sections, manage content structure
- Center Preview – Live preview of your storefront with real-time updates
- Right Panel – Edit settings for the selected section or block
Editor tools:
- Page Selector – Switch between Home, Product, Collection, and other pages
- Device Preview – Test mobile, tablet, and desktop layouts
- Language Switcher – Customize content for different locales
- Save – Save your work as draft
- Publish – Make changes live on your storefront
TIP
Changes in the editor are not visible to customers until you click Publish. This lets you experiment freely.
ℹ️ For a full breakdown of the interface, see Theme Editor: Interface Guide
Step 4: Add and Edit Content
Adding Sections
Sections are the building blocks of your pages. To add a new section:
- Click Add Section in the left sidebar
- Browse available sections (Hero, Newsletter, Featured Products, etc.)
- Click a section to add it to your page
- The section appears in both the preview and sidebar
Customizing Sections
Once a section is added:
- Click the section in the preview or sidebar to select it
- The right panel shows available settings:
- Text fields for headings and descriptions
- Image uploads for backgrounds and media
- Color pickers for styling
- Link fields for buttons and CTAs
- Layout options for columns and spacing
- Changes appear instantly in the preview
- Drag sections in the sidebar to reorder them
Working with Blocks
In v2 themes, sections can contain blocks — reusable components you can add, remove, and rearrange:
- Click Add Block within a section to add components
- Drag blocks to reorder them
- Each block has its own settings
- Blocks can be nested (columns inside tabs, galleries inside accordions)
TIP
Use the undo/redo buttons if you make a mistake. Your changes are only saved when you click Save or Publish.
Step 5: Create a Custom Section
Ready to build your own sections? Use the Artisan command:
php artisan visual:make-section MyBannerThis generates two files:
PHP class:
app/Visual/Sections/MyBanner.php- Defines section settings (text fields, images, selects)
- Configures which blocks it accepts
- Controls section behavior
Blade template:
resources/views/sections/my-banner.blade.php- The HTML structure of your section
- Access settings via
$sectionvariable - Render child blocks with
@children
Example section class:
public static function settings(): array
{
return [
Text::make('heading', 'Heading')->default('Welcome'),
Textarea::make('description', 'Description'),
Image::make('background', 'Background Image'),
];
}Once created, your section will appear in the Add Section menu in the editor.
🧱 For complete guides on building sections and blocks, see:
Troubleshooting
Composer installation fails
Check minimum stability settings:
composer config minimum-stability dev
composer config prefer-stable trueAssets not loading
Republish assets:
php artisan vendor:publish --tag=visual-assets --force
php artisan vendor:publish --tag=visual-debut-assets --forceWhat's Next?
Learn the fundamentals:
- Sections – Understand sections
- Blocks – Understand blocks
- Theme Editor Guide – Master the visual editor
Start building:
- Creating Sections – Build custom sections
- Creating Blocks – Create reusable blocks
- Settings Guide – Add configuration options
You're ready to build a beautiful, customized storefront — visually.