### Install Bagisto Visual Debut Theme
Source: https://visual.bagistoplus.com/introduction/getting-started
Installs the default starter theme package for Bagisto Visual.
```bash
composer require bagistoplus/visual-debut
```
--------------------------------
### Install Bagisto Visual Package
Source: https://visual.bagistoplus.com/introduction/getting-started
Installs the core Bagisto Visual package using Composer.
```bash
composer require bagistoplus/visual
```
--------------------------------
### Publish Bagisto Visual Debut Theme Assets
Source: https://visual.bagistoplus.com/introduction/getting-started
Publishes the assets for the Bagisto Visual Debut theme.
```bash
php artisan vendor:publish --tag=visual-debut-assets
```
--------------------------------
### Configure Composer for Bagisto Visual
Source: https://visual.bagistoplus.com/introduction/getting-started
Ensures the alpha version of Bagisto Visual can be installed properly by setting minimum stability and preferring stable versions in composer.json.
```json
"minimum-stability": "dev",
"prefer-stable": true
```
--------------------------------
### Publish Bagisto Visual Assets
Source: https://visual.bagistoplus.com/introduction/getting-started
Publishes the necessary assets for Bagisto Visual to prepare the store for theme customization.
```bash
php artisan vendor:publish --tag=visual-assets
```
--------------------------------
### Generate Custom Bagisto Visual Section
Source: https://visual.bagistoplus.com/introduction/getting-started
Creates a new custom section with a PHP class and a Blade file, allowing developers to define custom settings and layout.
```bash
php artisan visual:make-section MyBanner
```
--------------------------------
### Required Files for Bagisto Layout Setup
Source: https://visual.bagistoplus.com/building-theme/adding-layouts
Lists the essential files that must be created and present for the Bagisto Visual layout setup to function correctly, including the default layout and its associated header and footer components.
```text
resources/views/layouts/default.blade.php
resources/views/components/header.blade.php
resources/views/components/footer.blade.php
```
--------------------------------
### Customer Login Form Example
Source: https://visual.bagistoplus.com/core-concepts/templates/available
A Blade section example for the Login Template, demonstrating a form for customer email and password input with a login submission button.
```blade
Customer Login
{{ $product->short_description }}
Price: {{ core()->currency($product->price) }}
@endif ``` -------------------------------- ### Example Bagisto Visual Template Files by Type Source: https://visual.bagistoplus.com/core-concepts/templates/overview This example lists various template files found within the `/templates/` directory, illustrating how different page types (homepage, product, category, cart, etc.) are associated with specific template formats (Blade, JSON, YAML). ```plaintext /templates/ ├── index.blade.php # Homepage template ├── product.json # Product page ├── category.json # Category page ├── cart.yaml # Cart page ├── checkout.yaml # Checkout page ├── page.yaml # CMS pages ├── search.json # Search results page ``` -------------------------------- ### Basic Header Blade Component Example Source: https://visual.bagistoplus.com/building-theme/adding-layouts Illustrates a simple Blade template for the `header.blade.php` component, containing basic navigation links. ```bladeOrder #{{ $order->id }} placed on {{ $order->created_at->format('M d, Y') }}
Total: {{ core()->currency($order->base_grand_total) }}
View DetailsYour new store is ready to be customized.
Sorry, something went wrong.
@endif ``` -------------------------------- ### Display Customer Profile Information (Blade) Source: https://visual.bagistoplus.com/core-concepts/templates/available An example Blade section to display the authenticated customer's first name, last name, and email. It also includes a link to the profile editing page. ```bladeName: {{ auth('customer')->user()->first_name }} {{ auth('customer')->user()->last_name }}
Email: {{ auth('customer')->user()->email }}
Edit Profile{{ $review->product->name }}
Rating: {{ $review->rating }} / 5
{{ $review->comment }}
Order Date: {{ $order->created_at->format('M d, Y') }}
Total: {{ core()->currency($order->base_grand_total) }}
{{ $item->product->name }}
RemoveThis will break compatibility with color schemes.