This plugin is based on medusa-custom-attributes developped by Rigby.
The Medusa Plugin Product Custom Attributes is designed to enhance your e-commerce platform with custom attributes, providing compatibility with versions >= 1.20.0 of @medusajs/medusa
.
- Diverse Attribute Types: The plugin supports multi, single, range and boolean attributes, enabling a wide range of attribute customizations. 🤯
- Effortless Ranking: Easily rank attribute values via a drag-and-drop interface in the admin panel. 🤌🏻
- Efficient Product Filtering: Filter your products with ease by using these custom attributes. 💪
- Category-Based Attributes: You can get attributes specific to particular categories, ensuring attribute relevance. 👀
To get started, install the Medusa Plugin Product Custom Attributes with either npm or yarn:
npm install medusa-plugin-product-custom-attributes
or
yarn add medusa-plugin-product-custom-attributes
(Optional) Next toggle categories feature flag to your .env:
MEDUSA_FF_PRODUCT_CATEGORIES=true
Next, add the plugin to your medusa-config.js file as follows:
const plugins = [
// ...
{
resolve: `medusa-plugin-product-custom-attributes`,
options: {
enableUI: true,
projectConfig: {
store_cors: STORE_CORS,
admin_cors: ADMIN_CORS,
},
},
},
];
And run migrations:
npx medusa migrations run
Now you're all set and ready to launch! 🚀