Skip to main content
611 results
Sorted by relevance
Storefront / Breadcrumb
How do I clear the breadcrumb?
You can use the  clear() method to clear the crumbs: \Aero\Store\Facades\Breadcrumb::clear();  
Storefront / Breadcrumb
How can I filter the breadcrumb?
You can provide a filter callback to remove unwanted crumbs, it should return  true when a crumb should be kept and  false otherwise: \Aero\Store\Facades\Breadcrumb::setFilter(function ($crumb) { if ($crumb->getName() === 'Foo') { return false; ...
Storefront / Breadcrumb
How can I display the request referrer?
By default, the product page breadcrumb is built based on the referrer. For example, if a customer performs a search for "shirt" and then clicks on a listing result, the breadcrumb on the product page will be Home > Search for “shirt” > Casual Shirt. To disab...
Storefront / Breadcrumb
How can I disable the breadcrumb functionality?
There may be cases (such as an API) where the breadcrumb functionality should not use the request at all. To do this, use  dontUseRequest(): \Aero\Store\Facades\Breadcrumb::dontUseRequest();
Storefront / Products Page
How can I remove the manufacturer from the product page breadcrumb?
By default, when there is no referrer (i.e. the page was hit directly - not through a filtering or searching), the product page breadcrumb contains a crumb entry for the manufacturer.  This can be disabled: \Aero\Catalog\Models\Product::$breadcrumbContainsManu...
Storefront / Currencies
How do I change the store currency?
In order to change the store currency we need to publish the store configuration file: php artisan vendor:publish --tag aero::store-config Then locate the configurations section of the published config/aero/store.php file and update the currency_code value ...
Storefront / Currencies
What is a fascia currency and how do I use it?
A fascia currency can be set to render a different currency to the one specified in the store configuration. Setting the fascia currency The easiest way to check for and apply the fascia currency is through  store middleware. The example snippet below details ...
Storefront / Image Factory
How do I use the image factory?
The image factory can be called using the  image_factory() helper function from within PHP (.php and .blade.php) and Twig (.twig) files. When initialising an instance, the width and height of the resized image must be provided (in pixels). The image factory ou...
Storefront / Pages
What are the standard storefront pages?
Aero includes the following standard e-commerce pages. These are automatically created when you create a new Aero store: Homepage: Displays the main landing page of the store. Listings: Displays product listings based on searches or category selection. Product...
Storefront / Twig
What is Twig?
Storefront pages are built using the Twig template engine. Twig is a fast, secure and flexible PHP templating solution. Before developing with Aero, we recommend that you become acquainted with the core concepts of Twig. The official Twig documentation is a gr...
Storefront / Routing
How do I set a slug validator?
You can control if a collection of slugs is valid or not by setting your own validator: \Aero\Store\Routing\Slugs::setValidator(function ($slugs, $resolver) { if ($resolver !== 'listings') return true; if ($slugs->count() < 3 && $slugs->where('model_ty...
Storefront / Tutorials
How do I add featured products to the homepage of my store?
The recommended way to add featured products to the homepage of your store is to use the  aerocargo/listing-collections package. Install Run this command in the root of your project: composer require aerocargo/listing-collections Create a section 1. Create the...
Storefront / Tutorials
How do I add a contact form to my storefront?
1. Create the file: themes/acme/resources/forms/contact.twig Replace  acme with the name of your theme. Any files created inside the forms directory can be included on a page using {% form "contact" %}. 2. Add the twig: <form action="{{ route('form', 'contac...
General / Tutorials
How do I add a custom price to a product with a module?
In this mini tutorial, we’ll add checkboxes to a product page that allow customers to select additional charges. The product page will update the additional price dynamically as options are selected, and the total will continue to update when the product price...
Modules / General
How do I create a custom module?
When interacting with the admin, especially when making a custom module, it is important to require  aerocommerce/admin in the modules’ composer.json file. Scaffolding modules Modules can be created using artisan, a command line interface supplied with Larave...
Modules / Vue
How do I register a custom Vue component for my module?
To register a Vue component for our module, we will need to create a JavaScript file for our components and in order to initialise Vue. Link assets In order to link all the assets, which is a necessary step of registering a Vue component, we need to add a func...
Admin / Tutorials
How do I add a custom field to the new and edit product page?
In this mini tutorial we will add a notes field to the product new and edit page for the product and each variant. This mini tutorial assumes that you have a module setup or you’re happy working from the app service provider (using the boot method). You can s...
SEO / General
How do I add SEO Metadata to a page?
You can use the  \Aero\Marketing\Facades\SearchOptimization facade to add SEO Metadata to a page. See below an example of how we do it for \Aero\Store\Http\Responses\Homepage &  Aero\Store\Http\Responses\InformationPage by adding the  Aero\Store\Http\Response...