Skip to main content
797 results
Sorted by relevance
Storefront / Image Factory
How do I use the image factory?
The image factory can be called using the  image_factory() helper function from within PHP (.php and .blade.php) and Twig (.twig) files. When initialising an instance, the width and height of the resized image must be provided (in pixels). The image factory ou...
Storefront
Pages
Storefront / Pages
What are the standard storefront pages?
Aero includes the following standard e-commerce pages. These are automatically created when you create a new Aero store: Homepage: Displays the main landing page of the store. Listings: Displays product listings based on searches or category selection. Product...
Storefront / Twig
What is Twig?
Storefront pages are built using the Twig template engine. Twig is a fast, secure and flexible PHP templating solution. Before developing with Aero, we recommend that you become acquainted with the core concepts of Twig. The official Twig documentation is a gr...
Storefront
Routing
Storefront / Routing
How do I set a slug validator?
You can control if a collection of slugs is valid or not by setting your own validator: \Aero\Store\Routing\Slugs::setValidator(function ($slugs, $resolver) { if ($resolver !== 'listings') return true; if ($slugs->count() < 3 && $slugs->where('model_ty...
Storefront
Tutorials
Storefront / Tutorials
How do I add featured products to the homepage of my store?
The recommended way to add featured products to the homepage of your store is to use the  aerocargo/listing-collections package. Install Run this command in the root of your project: composer require aerocargo/listing-collections Create a section 1. Create the...
Storefront / Tutorials
How do I add a contact form to my storefront?
1. Create the file: themes/acme/resources/forms/contact.twig Replace  acme with the name of your theme. Any files created inside the forms directory can be included on a page using {% form "contact" %}. 2. Add the twig: <form action="{{ route('form', 'contac...
General / Tutorials
How do I add a custom price to a product with a module?
In this mini tutorial, we’ll add checkboxes to a product page that allow customers to select additional charges. The product page will update the additional price dynamically as options are selected, and the total will continue to update when the product price...
Book
Modules
Modules / General
How do I create a custom module?
When interacting with the admin, especially when making a custom module, it is important to require  aerocommerce/admin in the modules’ composer.json file. Scaffolding modules Modules can be created using artisan, a command line interface supplied with Larave...
Modules
General
Modules
Vue
Modules / Vue
How do I register a custom Vue component for my module?
To register a Vue component for our module, we will need to create a JavaScript file for our components and in order to initialise Vue. Link assets In order to link all the assets, which is a necessary step of registering a Vue component, we need to add a func...
Admin
Tutorials
Admin / Tutorials
How do I add a custom field to the new and edit product page?
In this mini tutorial we will add a notes field to the product new and edit page for the product and each variant. This mini tutorial assumes that you have a module setup or you’re happy working from the app service provider (using the boot method). You can s...
SEO
General