Skip to main content
157 results for “custom module routes”
Sorted by relevance
Developer Documentation / Admin Reports
How do I create a custom report?
To create and register a custom report you need to use the Aero ...ervice providers boot method or module service providers setup method. ... report. <?php namespace Acme\MyModule; use Acme\MyModule\Reports\OrdersReport; use Aero\ ...port; use Aero\Common\Providers\ModuleServiceProvider; class ServicePr...
Storefront Developer Documentation / Themes
How do I create a custom twig function?
Aero can extend Twig to add custom functions that can then be used ...hroughout the shop. To create a custom twig function, we have to acces ... Service Providerbelonging to a module. In order to create a custom twig function, we have to add the following piec...
Developer Documentation / Settings
Do do I set the default value of my custom setting?
...t value. <?php namespace Acme\MyModule; use Aero\Common\Facades\Settin ...gs; use Aero\Common\Providers\ModuleServiceProvider; use Aero\Common ...; class ServiceProvider extends ModuleServiceProvider { public func ... Settings::group('acme-my-module', function (SettingGroup $group...
Developer Documentation / Validation
How do I create custom validation requests?
To create a custom validation request, we need to ... aerocommerce/core. To create a custom request, open the terminal in t ...ave to do this manually. To add custom messages for our validation err ...erated stub } If we wish to set custom validation messages public func...
Developer Documentation / Events
How do I add a custom event to a Service Provider?
...g in your application. Adding a custom event to a ServiceProvidermeans ...breaks down into two options: a Module ServiceProvider, or any of the Providers listed under app/Providersof our shop’s root directory. Event directory: app/Events Listener directory...
Developer Documentation / Listings And Search
How do I add custom facets to listing and search?
... navigation in eCommerce allows customers the ability to refine down a ...eror the **setup()**method of a module ServiceProvider. \Aero\Search\FacetSettings::registerFacet('stock', 'Stock Status'); The document structure can then be extended to add the fac...
Developer Documentation / Validation
How do I set a custom order validator for shipping methods?
...e shipping rates (you can set a custom order validator for shipping ra ... Monday. <?php namespace Acme\MyModule; use Aero\Cart\Models\Order; us ...thod; use Aero\Common\Providers\ModuleServiceProvider; use Carbon\Carb ...; class ServiceProvider extends ModuleServiceProvider { public func...
Developer Documentation / Validation
How do I use a custom total item price totalizer for a shipping rate?
Setting a custom item price totalizer allows you ...r items. <?php namespace Acme\MyModule; use Aero\Cart\Models\OrderItem ...Rate; use Aero\Common\Providers\ModuleServiceProvider; use Illuminate\ ...; class ServiceProvider extends ModuleServiceProvider { public func...
Developer Documentation / Validation
How do I use a custom total item weight totalizer for a shipping rate?
Setting a custom item weight totalizer allows yo ...r items. <?php namespace Acme\MyModule; use Aero\Cart\Models\OrderItem ...Rate; use Aero\Common\Providers\ModuleServiceProvider; use Illuminate\ ...; class ServiceProvider extends ModuleServiceProvider { public func...
Developer Documentation / Resource Lists
How do I add a custom column to the product list?
...s a resource list you can add a custom column like this: More informat ...ce List? <?php namespace Acme\MyModule; use Aero\Admin\ResourceLists\P ...List; use Aero\Common\Providers\ModuleServiceProvider; class ServicePr ...ovider extends ModuleServiceProvider { public func...
Developer Documentation / Resource Lists
How do I add a custom column to the order list?
...s a resource list you can add a custom column like this: More informat ...ce List? <?php namespace Acme\MyModule; use Aero\Admin\ResourceLists\O ...List; use Aero\Common\Providers\ModuleServiceProvider; class ServicePr ...ovider extends ModuleServiceProvider { public func...
Developer Documentation / Events
How do I make custom mail notification events?
...edEvent. <?php namespace Acme\MyModule\Events; use Aero\Events\Managed ...rovider. <?php namespace Acme\MyModule; use Acme\MyModule\Events\MyEvent; use Aero\Common ...\Providers\ModuleServiceProvider; use Aero\Events ...; class ServiceProvider extends ModuleServiceProvider { protected $...
Developer Documentation / Settings
How do I access a custom setting?
You can access a setting by using the settingfunction that is available in PHP, Blade, and Twig. You simply need to pass your setting group name, a full stop, and then the settings name. setting(‘acme-my-module.allow_list’)
Developer Documentation / Validation
How do I set a custom order validator for shipping rates?
...de runs. <?php namespace Acme\MyModule; use Aero\Cart\Models\Order; us ...Rate; use Aero\Common\Providers\ModuleServiceProvider; use Carbon\Carb ...; class ServiceProvider extends ModuleServiceProvider { public function setup() { ShippingRate:...
Developer Documentation / Account Area
How do I add a custom CSS file to the account area?
You can add a custom CSS file to the account area by creating a file named account-area.cssin your public directory. Example contents where we're overriding the default colours: :root { --bpa-color-primary: deepskyblue; --bpa-color-success: forestgree...
Developer Documentation / Admin Dashboard Lenses
How do I create a custom dashboard lens?
...e period 1 year ago, or 3 for a custom period. This array has a date key that has the same structure as the second parameter. This array also has a text key that holds text to be displayed to explain the comparison. Here is the code for our top shipping co...
Developer Documentation / Admin Dashboard Lenses
How do I use a custom view for my dashboard lens?
... make your dashboard lens use a custom view. To do this you need to set the protected $viewstring on your lens to the view you would like to use. <?php namespace Aero\Admin\Lenses; use Aero\Admin\AdminLens; use Illuminate\Http\JsonResponse; use Illuminate...
Developer Documentation / Admin Filters
How do I create a custom admin filter?
To create a custom admin filter you need to create a class that extends Aero\Admin\Filters\AdminFilterand implements the handle method. handle Method This method is executed on every request made to a report or resource list with your filter and accepts 2 para...