Advanced Shipping Plugin Magento 2 v6.1.4

Advanced Shipping • Functions

Write your configurations more simply

€150

1 license per production Magento instance, even if it runs several websites or domains. Development, test and staging included. How do licenses work?

Shorter shipping rules

Functions adds short functions to Advanced Shipping, which is free, to write your shipping rules: destination, customer group, rate table, cart calculations. It is made for merchants and developers who write their own configurations and want to read and maintain them easily.

What the plugin does

  • Destination

    _country('FR', 'BE') checks the country, _postcode() the postcode, exact or by regular expression.

  • Customer groups

    _customerGroup() by group name or ID.

  • Rate tables

    _table() returns the price by weight, or another order value, in one line.

  • Cart calculations

    _sum(), _min(), _max() and _count() over the items, _allCat() for their categories.

  • First matching method

    with _setStopAtFirstMatch(true), only the first method that applies is offered.

What you get

  • Readable configurations

    a rate table fits in one line instead of a ten-line function.

  • A syntax-highlighting editor

    in the admin, your configurations are written in a colored code editor.

  • Nothing to rewrite

    your current configurations remain valid, the functions are added.

Example

Standard delivery to mainland France (postcodes 97 and 98 excluded), by weight, and free delivery for the Wholesale group:

addMethod('standard', [
    'title'   => "Standard delivery",
    'enabled' => _country('FR') && !_postcode('/^9[78]/'),
    'price'   => _table([[1, 5.90], [5, 8.90], ['*', 12.90]]),
]);

addMethod('pro', [
    'title'   => "Business delivery",
    'enabled' => _customerGroup('Wholesale'),
    'price'   => 0,
]);

Without the plugin, the same table is written with array_reduce and an anonymous function: the documentation shows each example with and without Functions.

FAQ

Do I need Advanced Shipping?

Yes. Advanced Shipping is free and Composer installs it with the plugin, which adds its functions to it.

Will my current configurations keep working?

Yes: the plugin adds functions without removing anything from the Advanced Shipping syntax. You can adopt them rule by rule.

Should I buy Advanced Shipping • Pro instead?

If you want at least two plugins, yes: each plugin costs €150 and Advanced Shipping • Pro bundles Functions, Unlimited Carriers and Universal Setting for €300, €150 less than the three bought separately.

For which store?

The license covers your production Magento instance, with all its websites. Your development, test and staging instances are included.

Free, no account needed. From the root of your store:

Source code and README on GitHub