Skip to main content
599 results for “install a theme”
Sorted by relevance
General / Response Builders
How do I attach middleware to a response builder?
Since Aero does not expose the underlyi ...ng routes and controllers, middleware can be attached directly to the response bu ...ilder. This allows for code to be executed be ...fore the main pipeline is run. For example, to restrict all products from being accessibl...
Search / Listings
How can I add a custom facet?
You can add a custom facet by extending the listing doc ...ument. For example you can add a Stock Status facet: \Aero\Search\Elastic\Documents\ListingDocument::add('string-facetsacets', function ($document) { ...$stock = $document->getModel()->availableStock() > 0; return ...
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\SettingDefinit...
Developer Documentation / Php Traits
Aero\\Common\\Traits\\CanHaveAdditionalAttributes
This trait can be added to a model class. When added your model will have the ability to have additional attributes. The trait adds the following methods: additionals Method This is the relationship method. This provides t ...he relationship to Aero\Common\Models\A...
Admin / Dashboard
What are the available lenses?
Key Class Permission revenue-lens Aero\Admin\Lenses\RevenueLens reports. ...orders average-order-value-lens Aero\Admin\Lenses\AverageOrderValueLens reports.orders top-shipp ...ing-countries-lens Aero\Admin\Lenses\TopShippingCountries ...Lens reports.orders return-rate-lens Aero\Admin\Lenses\Return...
Admin / Transformers
How do I add custom data to a transformer?
You can add a custom field using the  add() method and returning an array: \Aero\Admin\Transformers\ProductTransformer::add(function ($data) { /* @var \Aero\Catalog\Models\Product */ $produc ...t = $data['pra['product']; return [ ...'foo' => 'bar', ]; }); You can add a cast...
Admin / Dashboard
How do I add a custom dashboard lens to the dashboard?
..., you must register your lens: \Aero\Admin\Facades\Admin::registerLens(\Aero\Admin\Lenses\OrdersLens::class); Then you can add it to the Dashboard: \Aero\Admin\Http\Responses\AdminDashboardPage::extend(function (\Aero\Admin\Http\Responses\AdminDa...
Developer Documentation / Module Development
How do I register a custom Vue component for my module
To register a Vue component for our module, w ...e will need to create a JavaScript file for our components and in order to initialize 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...
Search / Listings
How can I add custom attributes to the listing model?
You can extend the  \Aero\Search\Elastic\Pipelines\ListingAttributes pipeline to add custom attributes to the listing model. ...For example you can moan modify the listing's name to include the attributes when the listing is sp ...lit by them. \Aero\Search\Elastic\Pipelines\Lis...
Search / Documents
What are the available documents?
There are 2 documents available: Aero\Search\Elastic\Documents\ListingsDocument ...used to hold information about the listings that are shown on the storefront. Aero\Search\Elastic\Documents\ProductDocument u ...sed to hold information about the products within t...
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::addLayoAction::addLayout('acmeaddLayout('acmeayout('acme', �acme', 'Acme&Acme'); Then you can create the  emails.acme twig view, which will be use ...d to render your layout: Acme {{ body | raw }}
Admin / Tables
What are the available tables?
Customers Aero\Admin\Tables\Customers\CustomerOrdersTable Aero\Admin\Tables\Customers\CustomerVouchersTable Fulfillments Aero\Admin\Tables\Fulfillments\FulfillmentIte ...msTable Orders Aero\Admin\Tables\Orders\OrderCreateFulfillmentTable Aero\Admin\Ta...
General / Announcements
Admin v1.2 Released
The main focus of 1.2 are the improvements to the mail notifications screens, where the team have worked on making it easier for retailers to know what variables are available to pop into their email templates (for example, knowing {{ order.reference...
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 / Transformers
What are the available transformers?
Class Description \Aero\Admin\Transformers\AttributesTransformer This transformer is used in the ProductT ...ransformer to transform the product's attribute groups. \Aero\Admin\Transformers\BaseTagTransformer This transformer is used to generate the data for a new tag. \Aero...
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. S...
Storefront / Twig
How do I add a custom twig function?
You can use the  add() method to add a custom twig function: \Aero\Store\Twig\Extensions\TwigFu ...nctions::add([ new \Twig\TwigFunction( ... function () { return 'bar'; }), ]); And then use it in twig: {{ foo() }}
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 passwassword & must do so before being ... able to navigate to other pages of the admin.