263 results
for “custom module routes”
Sorted by relevance
Developer Documentation / Module Development
How do I setup routes for my custom module?
...o create and properly configure module routing.
Creating routes
The first step to creating module routes is to create a directory named routeson the same level as the srcdire ...ormation refer to "Anatomy of a custom module.phpfile in the routesdir...
Developer Documentation / Module Development
How do I create a custom module?
...admin, especially when making a custom module, it is important to require
ae ...rocommerce/adminin the modules’
composer.jsonfile.
Scaffoldi ...ng modules
Modules can be created using artisan, ...The easiest way to create a new module is to open the terminal, naviga...
Modules / General
How do I create a custom module?
...admin, especially when making a custom module, it is important to require
ae ...rocommerce/admin in the modules’
composer.json file.
Scaffold ...ing modules
Modules can be created using artisan, ...The easiest way to create a new module is to open the terminal, naviga...
Developer Documentation / Module Development
Anatomy of a custom module
└─ module
└─ database
└ ...ect directoryafter installing a module detects migrations from all modules installed on Aero, which have ...ithin the public directory of a module can be published, to then be ac ...cessed anywhere in Aero. Some modules might require the public folde...
Developer Documentation / Extending Core Functionality
How do I add a custom price to a product with a module?
...utorial assumes that you have a module setup or you’re happy working f ...d). You can see how to set up a module here (link).
Adding the Prices ...will add a
$pricesarray to our module service provider that will be t ...e) keys.
<?php
namespace Acme\MyModule;
use Aero\Common\Providers\Modu...
Developer Documentation / Module Development
How do I register a custom Vue component for my module
...egister a Vue component for our module, we will need to create a JavaS ...e need to add a function to the module Service Provider. This is the c ... return [
'vendor/module-name' => __DIR__ . '/../public' ...mponents/NewComponent
window.newModule = {
install(Vue) {
...
Developer Documentation / Admin Product Picker Component
How do I use the product picker in my custom module?
...ce Lists and Create Order form. Modules such as aerocargo/upsellsalso ...m any admin view inside of your module that extends the official admin ... <a href="{{ route('admin.modules') }}" class="btn">@include('ad ...a>
<span class="ml-4">My Module</span>
</h2>
<div class="...
General / Tutorials
How do I add a custom price to a product with a module?
...es to a product page that allow customers to select additional charges ...rial assumes you already have a module set up, or are happy working di ...for information on setting up a module.
1. Add the extra prices
We’ll ...e available extra prices in our module service provider. For this exam...
Modules / Vue
How do I register a custom Vue component for my module?
...egister a Vue component for our module, we will need to create a JavaS ...e need to add a function to the module Service Provider. This is the c ...place
aerocargo/acme with your module vendor & name.
After defining a ...="{{ asset(mix(components.js', 'modules/aerocargo/acme')) }}"></script...
Developer Documentation
Module Development
Module Development
Book
Module...
Developer Documentation / Extending Core Functionality
How do I add a custom field to the new and edit product page?
...utorial assumes that you have a module setup or you’re happy working f ...d). You can see how to set up a module here (link).
Adding the Databas ...e and load them from within the modules service provider.
<?php
use Il ... views we will load them in the module service provider using the
$th...
Cart / Tutorials
How can I add a customer-selected gift wrapping option?
...::create('Gift Wrap');
$option->setPriceInc($price->inc()->value);
$item->addOption($option)->setNotCombinable();
}
return $next($item);
});
Checkout the
aerocargo/product-options module, for an easier way to do things like this.
Developer Documentation / Extending Core Functionality
How to add a custom field to the address forms?
...der Code
<?php
namespace Acme\MyModule;
use Aero\Common\Providers\ModuleServiceProvider;
class ServicePr ...ovider extends ModuleServiceProvider
{
public func ...der Code
<?php
namespace Acme\MyModule;
use Aero\Common\Providers\ModuleServiceProvider;
class ServicePr...
Developer Documentation / Admin Vue
How do I add custom clips to the redactor editor
...the clip. This can be done in a module service providers setupmethod o ...viders bootmethod. If you use a module service provider, do not forget ... register your views under your modules namespace using the $this->loa ...mmethod.
<?php
namespace Acme\MyModule;
use Aero\Admin\AdminSlot;
use ...
Developer Documentation / Admin Vue
How do I add a custom Vue component to the admin?
...the
assetLinksfunction to your modules service provider so that your modules assets are publicly linkable. ...An example module service provider can be found h ...), you need to ensure that your module's components javascript file is ...e the javascript file from your module and then register the component...
Developer Documentation / Account Area
How do I create a custom page in the account area?
To create and register a custom account area page you need to u ...reaPage.
<?php
namespace Acme\MyModule;
use Acme\MyModule\AccountArea\Pages\CustomPage;
use Aero\AccountArea\Accou ...Area;
use Aero\Common\Providers\ModuleServiceProvider;
class ServicePr...
Admin / Vue
How do I add a custom Vue component to the admin?
...he
assetLinks function to your modules service provider so that your modules assets are publicly linkable. ...An example module service provider can be found h ...), you need to ensure that your module's components javascript file is ...e the javascript file from your module and then register the component...