Skip to main content
159 results for “custom module routes”
Sorted by relevance
Developer Documentation / Events
What are event listeners?
...ts - for example, it could be a Module Service Provideror the EventServiceProviderin the app directory of Aero. How do I add a listener to an event? <?php namespace App\Providers; use Illuminate\Auth\Events\Registered; use Illuminate\Auth\Listeners\SendEma...
Developer Documentation / Events
How do I create a new event?
...oviderof choice, for example, a module Service Provider: protected $listen = [ Registered::class => [ // insert your listener here ] ]; Extending ManagedEvent Aero’s ManagedEventis an optional classmade specifically for Aero...
Developer Documentation / Extending Core Functionality
What are models and how do I use them?
...oquent models For example, if a module provided reviewsfor products, ... return $this->hasMany(\Acme\MyModule\Models\Review::class); }); The relationship query builder can be accessed by referencing the method: $approvedReviewCount = $product->reviews()...
Developer Documentation / Google Shopping Feed
How do I generate a Google Shopping feed?
...be found on the Google Shopping module page in agora. Installing the package To install the package, simply run the following command from the project’s root directory: composer require aerocargo/google-shopping After the package has been installed: php ar...
Developer Documentation / Introduction
Introduction to backend admin slots
Slots allow for a module to include its own view on existing admin pages. See our section on backend admin slots for more information.
Developer Documentation / Payment Drivers
How do I display payment icons on checkout in my payment driver?
...uld implement the labelView method, which returns a string. This is typically a namespaced view that lives in the payment gateway module. public function labelView(PaymentMethod $method): ?string { return view('my_gateway::label', compact('method')); }
Developer Documentation / Php Traits
Aero\\Common\\Traits\\CanHaveAdditionalAttributes
...ow you to scope a query on your module to require that the model has a specific additional attribute. getAdditionalAttribute Method This method accepts an additional attributes key and allows you to get an additional attributes value using its key. saveAdd...
Developer Documentation / Google Shopping Feed
How do I export the Google Shopping feed?
...ed we need to navigate into the module’s section in the admin, and then to Google Shopping. Provided we’ve generated the taxonomies and have configured the package correctly, we can click on the Exportbutton to begin mapping out the feed. Mapping allows th...
Developer Documentation / Configuration
What is the robots file and how does it differ from normal?
... index your store. Aero automatically registers core parts of the store that should avoid being indexed and visited by bots. In order to extend this file and add modules or store specific restrictions ... $agent->push('Disallow: /my_module/'); } });
Developer Documentation / Introduction
What is an Aero Commerce Agora account and why do I need it?
...e assigned unique credentials which allows them to purchase themes and modules. These credentials must not be shared between projects as doing so will invalidate them. Without valid credentials, a project cannot receive platform updates and security fixes.
Developer Documentation / Payment Drivers
What is the payment driver interface in my payment driver?
...ter the payment driver with the payment processor, which is used by the checkout and admin modules. This should be done in a ServiceProviderusing the following call: \Aero\Payment\PaymentProcessor::registerDriver('my_gateway', \Acme\PaymentDriver::class);
Developer Documentation / Settings
What are the settings available to developers?
...u to add dynamic values to your modules that can be modified by admin users easily through the admin. The values of your settings (unless the value is the default you set) are stored in json files inside of your storage directory. └─ storage └─ app ...
Developer Documentation / Account Area
How do I create a new form for the account area?
...he data. <?php namespace Acme\MyModule; use Aero\AccountArea\AccountAr ...rovider. <?php namespace Acme\MyModule; use Aero\AccountArea\AccountAr ...ea; use Aero\Common\Providers\ModuleServiceProvider; class ServicePr ...ovider extends ModuleServiceProvider { public fun...
Developer Documentation / Admin Dashboard Lenses
How do I remove a dashboard lens from the dashboard?
... remove. <?php namespace Acme\MyModule; use Aero\Admin\Http\Responses\ ...Lens; use Aero\Common\Providers\ModuleServiceProvider; class ServicePr ...ovider extends ModuleServiceProvider { public function setup() { AdminDashboardPage::extend(fun...
Developer Documentation / Configuration
How do I change how order references are generated?
...llowing: <?php namespace Acme\MyModule; use Aero\Cart\Models\Order; us ...e Aero\Common\Providers\ModuleServiceProvider; class ServicePr ...ovider extends ModuleServiceProvider { public function setup() { Order::setReferenceGenerator(function ...
Developer Documentation / Customization
How do I remove the manufacturers name from the order items name?
...o false. <?php namespace Acme\MyModule; use Aero\Cart\Models\OrderItem ...; use Aero\Common\Providers\ModuleServiceProvider; class ServicePr ...ovider extends ModuleServiceProvider { public function setup() { OrderItem::$nameContainsManufactur...
Developer Documentation / Customization
How do I remove the manufacturer from the product slug/url?
...o false. <?php namespace Acme\MyModule; use Aero\Catalog\Models\Produc ...t; use Aero\Common\Providers\ModuleServiceProvider; class ServicePr ...ovider extends ModuleServiceProvider { public function setup() { Product::$slugContainsManufacture...
Developer Documentation / General
How to Set the Page Title for the Admin
...e title. <?php namespace Acme\MyModule; use Aero\Admin\Http\Middleware ...itle; use Aero\Common\Providers\ModuleServiceProvider; class ServicePr ...ovider extends ModuleServiceProvider { public function setup() { SetTitle::addTitle('admin.dash...