Built by

andriinuts

Category

Other

Version

1.0.5

Last updated

Jan 5, 2024, 20:17:39 PM5 months ago

Medusa-Plugin-Variant-Images

Adding possibility to add images to the product variants.

Getting started

Installation
yarn add medusa-plugin-variant-images

Usage

Configuration

This plugin requires min version of packages:
"@medusajs/medusa": "^1.14.0",
"@medusajs/admin": "^7.0.0"
"medusa-react": "^9.0.4",
"@medusajs/ui": "^1.0.0",
"@medusajs/icons": "^1.0.0",

Add to medusa-config.js

add to your plugins list
///...other plugins
{
resolve: 'medusa-plugin-variant-images',
options: {
enableUI: true,
},
},

Update database schema

Run the following command from the root of the project to udpate database with a new table required for storing product variant
npx medusa migrations run

How to get images from variant

After enabling this plugin, each variant will contains
Copy to clipboard
images
and
Copy to clipboard
thumbnail
fields.

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.