Skip to main content
797 results
Sorted by relevance
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
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
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
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...
Book
Setup
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
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