Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

medusa-plugin-variant-images

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

medusa-plugin-variant-images

Plugin for adding images and thumbnail to variants

latest
Source
npmnpm
Version
1.0.5
Version published
Weekly downloads
70
-1.41%
Maintainers
1
Weekly downloads
 
Created
Source

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 images and thumbnail fields.

Keywords

medusa-plugin

FAQs

Package last updated on 05 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts