Base Setup
Introduction
There are 2 ways to set up the base configuration for Venta Theme
- Automatic Mode - does everything via a single CLI command
- Manual - all configs are changed manually
Automatic Mode mostly fits new projects, and first-time Venta Theme setups, where Manual can be used to refine which configs are required for the exact store.
Automatic Mode
The venta:demo-data command is a custom Magento CLI utility designed to quickly initialize key demo configurations for the Venta Theme. By executing a single command, developers can replicate the essential setup found on the official Venta demo site - ideal for local development, testing, or showcasing theme capabilities.
The venta:demo-data command
This command automates the setup of essential demo configurations—such as search suggestions, PDP accordions, and product attributes—ensuring a ready-to-use Venta theme environment that mirrors the official demo site.
How to run
d/magento venta:demo-dataWhat it configures
- Search suggestions
- Product tab attributes, pre-filled with demo content on all products:
- Returns
- Warranty
- Global product tabs with their CMS blocks:
- Delivery
- Payment Methods
- Product Detail Page (PDP): attributes displayed under the product title:
- SKU
- Color
- Climate
WARNING
venta:demo-data is meant for the first-time setup of a fresh environment. It skips anything that already exists: attributes, CMS blocks and configured global tabs are left untouched, so re-running it on a store with existing content changes nothing. On an established store, manage tabs from the Admin Panel instead, see Product Tabs.
Manual
These actions are all to be done from the Admin Panel.
Homepage
Go into Content -> Pages, delete the Home Page (home) and run:
bin/magento setup:upgradeA recurring script will re-create the homepage with the Venta Theme homepage.
404 Page
Go into Stores -> Configuration -> General -> Web and under Default Pages set the CMS No Route Page to Venta - 404 Not Found, or run:
bin/magento config:set web/default/cms_no_route venta-no-routeTheme Configurations
Go into Stores -> Configuration -> Magebit -> Theme and under Image Zoom Settings set the Enable Zoom to Yes, or run:
bin/magento config:set magebit_theme/image_settings/zoom 1Go into Stores -> Configuration -> Magebit -> Theme and under Image Zoom Settings set the Maximum Zoom Level to 150, or run:
bin/magento config:set magebit_theme/image_settings/zoom_level 150Go into Stores -> Configuration -> Magebit -> Theme and under Catalog set the Move Out-of-Stock Products to End of Listings to Yes, or run:
bin/magento config:set magebit_theme/catalog/move_out_of_stock_to_end 1Go into Stores -> Configuration -> Magebit -> Theme and under Catalog set the Hide Out-of-Stock Products in Cross-Sells, Upsells and Related to Yes, or run:
bin/magento config:set magebit_theme/catalog/hide_out_of_stock_in_related_crossell_upsell 1Go into Stores -> Configuration -> Magebit -> Cart Actions and under General set the Action after add to cart to Show Minicart, or run:
bin/magento config:set ajax/general/after_atc_action minicartGo into Stores -> Configuration -> Magebit -> Layered Navigation and under AJAX set the Ajax Layered Navigation Enabled to Yes, or run:
bin/magento config:set magebit_layered_navigation/ajax/enabled 1Go into Stores -> Configuration -> Magebit -> Infinite Scroll and under General set the Infinite Scroll Enabled to Yes, or run:
bin/magento config:set infinite_scroll/general/enabled 1