611 results
Sorted by relevance
Storefront / Events
What are the available events?
Products
Event
Description
product.loaded
Fired when the product component has finished mounting and is marked as loaded.
product.images-updating
Fired when the product images are about to be updated because the image set changed.
product.images-updated
Fired ...
Storefront / Events
How do I run a custom event?
You can run your own custom event using the
runEvent() method:
window.Aero.runEvent('acme', { foo: 'bar' });
And listen for it wherever needed:
window.AeroEvents.on('acme', (data) => {
console.log(data);
});
Cart / General
How can I add a custom code handler?
You can use the
addCodeHandler() method to add custom behaviour for specific codes when applied to the cart.
For example you can create a discount code that adds a free sample pack to the cart.
First, define some settings to control this behaviour:
\Aero\Comm...
Cart / Tutorials
How can I add a customer-selected gift wrapping option?
This tutorial will walk you through adding a "Gift wrap" checkbox to the product page, which when selected will add the product to the cart with the additional £1 charge associated with it being gift wrapped.
First, define some settings to control the behaviou...
Account Area / General
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.css in your public directory.
Example contents where we're overriding the default colours:
:root {
--bpa-color-primary: deepskyblue;
--bpa-color-success: forestgre...
Account Area / General
How can I configure the account area?
ENV Variables
Variable
Default
Description
AERO_ACCOUNT_AREA_THEME
aerocommerce/account-area
Defines the namespace that should be registered as having the views and resources for the account area. This should only be changed under unique circumstances.
AERO_AC...
Account Area / Forms
What are the default forms in the account area?
Class
Description
AccountAddressEditForm
The edit address form.
AccountAddressNewForm
The new address form.
AccountDetailsForm
The account details form.
AccountLoginForm
The login form.
AccountPasswordForgotForm
The forgotten password form.
AccountPasswordRese...
Account Area / Sets
What are the default sets in the account area?
Class
Method
Route
AccountLoginSet
Post
login
AccountLogoutSet
Post
logout
AccountRegisterSet
Post
register
AccountPasswordForgotSet
Post
password.forgot
AccountPasswordResetSet
Post
password.reset
AccountAddressNewSet
Post
account.new-address
AccountAddressEd...
Account Area / Pages
What are the default pages in the account area?
Class
Route
Description
AccountLoginPage
login
A page where users can log in.
AccountRegisterPage
register
A page where guests can register.
AccountPasswordForgotPage
password.forgot
A page where users can send a password reset email to their email.
AccountPas...
Account Area / Pages
How do I create a custom page in the account area?
To create and register a custom account area page you need to use the
Aero\AccountArea\AccountArea::registerPage() helper method.
This method expects you to pass a class that extends
Aero\AccountArea\AccountAreaPage:
\Aero\AccountArea\AccountArea\AccountArea...
Account Area / Sets
How do I create a custom set in the account area?
Sets are used for POST/PUT/DELETE requests.
To create and register a custom account area set you need to use on of the following methods:
Aero\AccountArea\AccountArea::registerPost()
Aero\AccountArea\AccountArea::registerPut()
Aero\AccountArea\AccountArea::reg...
Account Area / Forms
How do I create a custom form in the account area?
To create a form you need to create a class that extends the
\Aero\AccountArea\AccountAreaForm class:
The
$sections array lists the views used to render the form.
The
method() method defines the method that the form will use (this should be
post,
get,
pu...
Account Area / Pages
How do I add a section to an existing account area page?
You can use the
addSection() method(s) to add a section to an existing form:
\Aero\AccountArea\Http\Responses\AccountLoginPage::extend(function (\Aero\AccountArea\Http\Responses\AccountLoginPage $page, \Closure $next) {
// Add it as the first section
...
Search / Tutorials
How can I distribute search jobs across multiple queues?
You can use the
setQueueResolver() method to distribute search jobs across multiple queues:
For example, let's say you have 10 search queues you want to utilise, you could distribute search jobs between them randomly:
\Aero\Search\Jobs\SearchJob::setQueueReso...
API / General
What are the available endpoints?
Orders
Method
Endpoint
Permission
Description
GET
/api/orders
orders.index
List orders
GET
/api/orders/{id}
orders.view
Get an order
POST
/api/orders
orders.store
Create an order
POST
/api/orders/{id}/flags/{id}
orders.flags.store
Attach a flag
DELETE
/api/ord...
API / General
What conventions does the API use?
Attribute Conventions
Keys generally match the attribute name on their respective models.
Exception: Attributes ending in "_code" should omit the suffix when passed to the API, e.g.
currency_code =>
currency
Relationship Conventions
Nested data should use a ...
API / General
What responses does the API return?
Code
Scenario
200 Success
The request was processed successfully.
201 Created
One (or multiple) resources were created.
400 Bad Request
Cannot process request due to client error.
401 Unauthorised
Invalid bearer token provided.
404 Not Found
Endpoint not foun...
API / Orders
Order Index Endpoint
Structure
See
View Order Endpoint for the structure of the order payload inside the
data array.
Scopes
Name
Description
Example
visible
Only return visible orders (those which have been ordered)
?scope=visible
outstanding
Only return outstanding orders
?scop...