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 the Bagisto Visual and prepares your store for theme customization.
Step 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.