263 results
for “custom module routes”
Sorted by relevance
API / Orders
Order Index Endpoint
...tes
?states=dispatched,returned
customers
Only return orders with spec ...ific customers (by id or email)
?customers=1,test@gmail.com
emails
Only return orders for specific emails
?emails=test@gmail.com
channels
Only return orders for specific channels
?ch...
Catalog Management / Tags
What is a tag?
...w you to associate products for customers convenience, this includes:
... 'Navy' products, allowing your customers to search for a more generic ...ur listings. This provides your customers with an easy way to search for similar products.
If you don't want...
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...
Admin / Mail Notifications
How do I add attachments to a mailable?
...able->attachData(
$pdf->output(),
"{$event->order->reference}-invoice.pdf",
[
'mime' => 'application/pdf',
]
);
});
This example uses the
aerocargo/pdf-invoice module to generate a PDF Invoice for the order.
Storefront / Tutorials
How can I add a tax toggle to my store?
...uire aerocargo/tax-toggler
This module adds a
tax_state() twig function that returns
inc or
ex depending on configuration, see here for more information.
Next let's create the
layouts/partials/tax-toggle.twig file:
<label class="inline-flex items-cente...
Storefront / Currencies
What is a fascia currency and how do I use it?
...
parent::register() if inside a module service provider.
If the fascia currency needs to be set when running a console command:
if ($this->app->runningInConsole() && ($currency = env('CURRENCY_CODE'))) {
$this->app->booted(function () use ($currency) {...
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...