This package has been deprecated

Author message:

Moved to @pinelab/vendure-plugin-shipping-by-weight-and-country

vendure-plugin-shipping-by-weight-and-country
TypeScript icon, indicating that this package has built-in type declarations

7.0.0 • Public • Published

Shipping by weight and country Vendure Plugin

Vendure version

Official documentation here

This plugin adds a shipping eligibility checker to Vendure that checks the total weight and the shipping country of an order, to verify if a shipping method is eligible for a given order.

The weight of a product can be configured on the customfield Product.weight. You can configure the units to be in KG, grams or whatever unit you like.

Some examples:

  • Create a shippingmethod for orders placed in Australia, with a total order weight between 10kg and 40kg
  • Create a shippingmethod for all orders except the ones placed in Canada and Norway, with a total order weight below 1100 grams

Getting started

  1. Add the following to the plugins in vendure-config.ts:
plugins: [
  ...
    ShippingByWeightAndCountryPlugin.init({
      /**
       * Weight unit used in the eligibility checker
       * and product customfield.
       * Only used for displaying purposes
       */
      weightUnit: "kg",
      /**
       * The name of the tab the customfield should be added to
       * This can be an existing tab
       */
      customFieldsTab: "Physical properties"
    })
  ...
]
  1. Start your server
  2. Login to the admin UI and go to Shipping methods
  3. Create a new shippingmethod
  4. Under Shipping eligibility checker you should see Check by weight and country

This checker can be used to have a shippingmethod eligible for an order based on the total weight and shipping country of an order.

Readme

Keywords

none

Package Sidebar

Install

npm i vendure-plugin-shipping-by-weight-and-country

Weekly Downloads

0

Version

7.0.0

License

MIT

Unpacked Size

13.2 kB

Total Files

8

Last publish

Collaborators

  • mbrug