Skip to main content
262 results
Sorted by relevance
Admin / Mail Notifications
How do I set the priority of a mailable?
You can set the priority of a Mailable using the priority() method. For example: // For a specific event \Aero\Cart\Events\OrderConfirmation::whenSendingAsMail(function (\Aero\Events\Actions\Mailable $mailable, \Aero\Cart\Events\OrderConfirmation $event) { ...
Admin / Mail Notifications
How do I override the html content of a mailable?
You can set the HTML of a Mailable using the html() method. For example, the email builder uses this to render the HTML of the email from the template, rather than the body: \Aero\Events\ManagedEvent::whenSendingAsMail(function (\Aero\Events\Actions\Mailabl...
Admin / Mail Notifications
How do I add attachments to a mailable?
You can attach files to a mailable by using the  whenSendingAsMail callback: \Aero\Cart\Events\OrderConfirmation::whenSendingAsMail(function (\Aero\Events\Actions\Mailable $mailable, \Aero\Cart\Events\OrderConfirmation $event) { $pdf = \Aerocargo\PdfInvoic...
Admin / Mail Notifications
How do I add a custom mail layout?
To add a custom mail layout you can use the  addLayout() method on the mail action: \Aero\Events\Models\MailAction::addLayout('acme', 'Acme'); Then you can create the  emails.acme twig view, which will be used to render your layout: Acme {{ body | raw }}
Storefront / Image Factory
What is the image factory?
The Image Factory is a tool for generating optimised, resized versions of images on demand. It allows you to define the dimensions and apply transformations such as cropping, resizing, format conversion, and quality adjustments, while generating a signed URL f...
Blueprint / Schema
What is the schema?
The schema defines all the components that are available to the theme: Component Description Templates The major page types (e.g. homepage, product page). Sections Reusable layout components that can contain blocks. Blocks Reusable items available for use insi...
Blueprint / Configs
What is a config?
A config stores a JSON representation of the page layout created via the theme editor. Location Configs should be created at the following location in your local storage disk: "themes/{$theme}/blueprint/presets/config/{$key}.json" When you have made unsaved ch...
Blueprint / Schema
How do I change where the schema is loaded from?
Fallback Schema Location The default fallback schema location is: themes/{$theme}/blueprint/schema.json. It is the base version of the schema, one that has had no changes made via the editor. setFallbackSchemaLoader allows you to change the location that the ...
Discount Management / Discounts
How can I intercept discount code handling?
You can use the  addCodeHandler() method to add a discount handler to the cart, it will run the provided callback whenever a code is added to the cart: \Aero\Cart\Cart::addCodeHandler(function (\Aero\Cart\Cart $cart, string $code) { if ($code === 'acme') {...
Discount Management / Discounts
How can I apply multiple discount types using one code?
There are two  aerocargo modules that can be used to achieve this behaviour: aerocargo/discount-groups This module allows you to create a discount group with a code and specify the discounts you want to be applied when that code is applied to the cart. So you ...
Events / General
How do I enable mail notifications for an event?
You can enable mail notifications for an event by registering it with the \Aero\Events\ManagedHandler listener: class ServiceProvider extends \Aero\Common\Providers\ModuleServiceProvider { protected $listen = [ Acme::class => [ \Aero\E...
Setup / Installation
How do I install Aero?
Required Services First, we need to install a few required services. Composer A dependency manager for PHP (Download Composer). Node.js A JavaScript runtime that lets you run tools and apps outside of the browser (Download Node.js). Laravel Herd An all-in-one ...
Setup / Installation
What services does Aero require?
Composer A dependency manager for PHP (Download Composer). Node.js A JavaScript runtime that lets you run tools and apps outside of the browser (Download Node.js). Laravel Herd An all-in-one local development environment for Laravel and PHP, MacOS: Installatio...
Setup / Agora
What is Agora?
Agora is our platform for managing Aero projects. It allows organisations to oversee their projects, collaborate with agencies, and publish custom packages and/or themes. These packages and themes can be installed via Composer to extend or customise the functi...
Setup / Admin
How do I view the Admin?
You can view the admin by navigating to http://my-first-store.test/admin in your browser and logging in. Username: admin@example.com Password: aerocommerce Upon logging in you will be prompted to change your password & must do so before being able to navigate ...
Setup / Admin
What are the default login credentials for the Admin?
Username: admin@example.com Password: aerocommerce Upon logging in you will be prompted to change your password & must do so before being able to navigate to other pages of the admin.
Setup / Storefront
How do I view the Storefront?
You can view your storefront by navigating to http://my-first-store.test in your browser, which will be empty as your store has no listings. Importing Sample Data First, enter the store’s directory, e.g.: cd my-first-store Then run the products import command ...
Setup / Installation
How do I import data?
First, enter the store’s directory, e.g.: cd my-first-store Then run the products import command (choose one of the below): Fashion: php artisan aero:import:products:csv https://aero-data.s3.eu-west-2.amazonaws.com/products.csv Furniture: php artisan aero:im...