Skip to main content
611 results
Sorted by relevance
General / Services
What is the tax accountant service?
The Tax Account is the service responsible for determining the tax multiplier that should be applied to a product price. It uses the store's tax configuration together with the current customer's tax information and location to determine which tax rules and ra...
General / Services
What is the combination serializer service?
The combination serializer service is used to serialize and deserialize models. Serializing This is used to take a collection of models and convert them into a string that can be used to find a corresponding combination. Let's say you have a category called  m...
General / Services
What is the login blocker service?
The login blocker service can be used to block customers from logging in based on criteria. For example, you might want to blacklist certain IPs. First, define a setting to store blacklisted IPs: \Aero\Common\Facades\Settings::group('customers', static functio...
General / Services
What is the volume service?
The volume service is used to normalize volumes into the store's base unit ( cm^3 by default) as well as convert between different units. Units By default the volume service has the following units: mm^3 cm^3 m^3 Adding a Unit Use  addUnit() to add a unit, for...
General / Services
What is the weight service
The weight service is used to normalize weights into the store's base unit ( g by default) as well as convert between different units. Units By default the weight service has the following units: g oz lb kg Adding a Unit Use  addUnit() to add a unit, for examp...
Catalog Management / Listing Rules
How can I add a custom listing rule?
To add a custom listing rule you need to create a class that extends  Aero\Catalog\Rules\ListingRule\AttributedWithRule. For example we will add a rule that checks if the listing has specific attributes. First, we need to index the attribute ids so that they c...
Admin / Tables
What are the available tables?
Customers Aero\Admin\Tables\Customers\CustomerOrdersTable Aero\Admin\Tables\Customers\CustomerVouchersTable Fulfillments Aero\Admin\Tables\Fulfillments\FulfillmentItemsTable Orders Aero\Admin\Tables\Orders\OrderCreateFulfillmentTable Aero\Admin\Tables\Orders\O...
Admin / Tables
How do I add a column to an existing table?
You can use the  add() method(s) to add a column to an existing table: \Aero\Admin\Tables\Orders\OrderUnfulfilledItemsTable::extend(function (\Aero\Admin\Tables\Orders\OrderUnfulfilledItemsTable $table) { // Add it at the end $table->column('reference'...
Checkout / General
How do I add a Custom CSS File to the Checkout?
You can add a custom CSS file to the checkout by creating a  checkout.css file in your public directory. Example contents where we are changing the checkout to use a black background: .header { background-color:#000000; } .header__progress li:before { ...
Checkout / General
How do I change the logo in the checkout?
You can change the logo in the checkout by creating this file:  resources/vendor/checkout/sections/logo.twig and putting your logo contents inside of it. Example contents: <a href="{{ route('home') }}" title="{{ trans("checkout::general.return_to_store_link") ...
Checkout / Tutorials
How do I add a marketing opt-in to the checkout?
This article covers how to insert a checkbox into the checkout flow, that when ticked, will allow you to send information to a third party system. In order to add a marketing optionally opt-in to the checkout we first need to extend the  CheckoutCustomerPage t...
Storefront / Tutorials
How do I add a header image to the listings page?
On a listings page we can pass through an image from the admin using the  combination variable in the listings.twig view. The combination is the data model that holds the information for the particular listings page being viewed - since listings can be made u...
Storefront / Vue
How do I use a custom vue component in the storefront?
You need to add the  assetLinks function to your modules service provider so that your modules assets are publicly linkable. An example module service provider can be found here: https://github.com/aerocargo/admin-example-vue/blob/master/src/ServiceProvider.p...
Storefront / Twig
What are twig functions?
Twig functions are reusable functions that can be called from within Twig templates to perform a specific task or return a value. They are typically used to keep template logic simple and readable by moving more complex or reusable operations into functions. A...
Storefront / Twig
What are the available twig functions?
Twig function Description Typical Usage / Notes aero(key) Retrieves a value from the current store using the supplied key. Useful for accessing store-level properties dynamically. locale() Returns the current store locale as a two-letter language code, e.g. e...
Storefront / Twig
How do I add a custom twig function?
You can use the  add() method to add a custom twig function: \Aero\Store\Twig\Extensions\TwigFunctions::add([ new \Twig\TwigFunction('foo', function () { return 'bar'; }), ]); And then use it in twig: {{ foo() }}
Storefront / Tutorials
How can I add a tax toggle to my store?
First, install  aerocargo/tax-toggler: composer require 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.t...
Storefront / Tutorials
How can I add a cart panel to my store?
This tutorial will provide the code needed to setup a cart panel slide-out system for your store. First, lets add the  layouts/partials/cart-panel.twig code: <div id="cart-panel" class="cart-panel isolate fixed z-[999] bottom-0 right-0 max-h-full overflow-y-au...