Built by

RSC-Labs

Category

Shipping

Version

0.1.1

Last updated

Oct 15, 2024, 17:22:26 PM2 months ago

Medusa Shippo Elements

What is it?

Medusa Shippo Elements is a plugin which provides functionality for generating labels directly from the Admin UI.

How to install?

  1. Install the package with Copy to clipboardyarn add @rsc-labs/medusa-shippo-elements or Copy to clipboardnpm i @rsc-labs/medusa-shippo-elements.
  2. In Copy to clipboardmedusa-config.js, add the plugin to the Copy to clipboardplugins array and set Copy to clipboardenableUI
const plugins = [
// ... other plugins
{
resolve: `@rsc-labs/medusa-shippo-elements`,
options: {
token: SHIPPO_API_TOKEN,
enableUI: true
}
}
]

Getting started

Before running a Medusa please remember to set your Copy to clipboardSHIPPO_API_TOKEN in configuration.
After plugin installation, you can go to one of your orders and you will see additional UI element at the bottom.
You have there two tabs - Copy to clipboardShipping and Copy to clipboardReturn.

Shipping

This tab is used for creating a shipping label to send your items to customer.
Before that, you need to create a fulfillment using Copy to clipboardCreate fulfillment option, which is visible above (it is a part of default Admin UI functionalities).
After creating a fulfillment, you can choose such fulfillment from the list and the label configuration will be automatically filled by the items which you have chosen in fulfillment. For your convenience, also the weight is calculated, so you have all information needed to generate a label.

Return

This tab is used for creating a return label which can be used by your customer.
Before that, you need to create a return using Copy to clipboardCreate return option, which is available on the right sidebar (it is a part of default Admin UI functionalities).
After creating a return, you can choose such return from the list and the label configuration will be automatically filled.
NOTE: Shippo Elements does not provide ability to change sender address from API level. It means that you need to do manually through Shippo Elements. Please remember to switch addresses for the returns.

Configuration

Weight unit

By default Shippo Elements are using Copy to clipboardg (Copy to clipboardGram) as the weight unit. If you would like to change it, you have 4 options:
  • 'g'
  • 'kg'
  • 'oz'
  • 'lb'
To apply other weight unit, please export environment variable called Copy to clipboardMEDUSA_ADMIN_SHIPPO_WEIGHT_UNIT. For example: Copy to clipboardexport MEDUSA_ADMIN_SHIPPO_WEIGHT_UNIT='oz'

Proposals, bugs, improvements

If you have an idea, what could be the next highest priority functionality, do not hesistate raise issue here: Github issues

License

MIT

Build your own plugins

Develop your own plugins with our API to speed up your processes.

Make your plugin available via npm for it to be shared in our Plugin Library with the broader Medusa community.