Skip to main content
611 results
Sorted by relevance
Search / Listings
What is the listing attributes pipeline?
The listing attributes pipeline is used to build the attributes for the  Aero\Search\Elastic\Models\Listing model. It can be extended to add new attributes or modify existing attributes. For example you can modify the listing's name to include the attributes w...
Settings / General
What setting types are available?
As of 15/09/2026, there are ten setting types available: Type Description String Stores text values. Boolean Stores  true/ false values. Integer Stores whole-number values. Float Stores decimal values. Array Stores multiple values of different types. Eloquent ...
Settings / Model Settings
How do I add model settings to a model?
Model settings provide a consistent way to store configurable settings against an Eloquent model. There are various steps needed to be followed to setup model settings for a model. First, add the  \Aero\Common\Traits\CanHaveSettings to the model and optionally...
Settings / Setting Definitions
How do I add setting definitions to a model?
Setting definitions allow you to define settings via the admin UI. To add a setting definition for a model, you must add the model type, you can do this using the model class or relation key. For example: // By class \Aero\Common\Models\SettingDefinition::addM...
Discount Management / Discounts
How do I add a custom amount resolver?
The cart discount implementations use the  \Aero\Cart\Traits\DeterminesAmount trait, which allows you to set a custom amount resolver for a discount type For example you can set a limit for percentage discounts: \Aero\Cart\PercentageDiscount::resolveAmount(fun...
Discount Management / Price Lists
How do I resolve custom price lists?
To resolve custom price lists you can create a customer group in the Admin and create price lists that are only available for customers in that group. First, create a setting for this customer group so that you can easily access it in code: \Aero\Common\Facade...
Events / General
What are the available events?
Order Events Class Mail Notifications? \Aero\Cart\Events\AbstractOrderEvent - ↳  \Aero\Admin\Events\CustomerFacingOrderCommentAdded Yes ↳  \Aero\Admin\Events\OrderFlagAttached Yes ↳  \Aero\Admin\Events\OrderFlagUpdated Yes ↳ \Aero\Admin\Events\OrderFlagDetach...
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...