@deenruv/order-line-attributes-plugin
v1.0.6
Published
Plugin that adds custom attribute fields to OrderLine entities, including discount tracking, modified pricing, text-based attributes with a custom input component, and a selected image relation field.
Readme
@deenruv/order-line-attributes-plugin
Plugin that adds custom attribute fields to OrderLine entities, including discount tracking, modified pricing, text-based attributes with a custom input component, and a selected image relation field.
Installation
pnpm add @deenruv/order-line-attributes-pluginConfiguration
import { OrderLineAttributesServerPlugin } from '@deenruv/order-line-attributes-plugin';
// In your Deenruv server config:
plugins: [
OrderLineAttributesServerPlugin,
]Features
discountBy(int) — Discount amount applied to the order linemodifiedListPrice(string, public) — Modified price value for displayattributes(text) — Free-form attributes field with a custom "attributes-input" UI componentselectedImage(Asset relation) — Associated image for the order line with a custom "selected-image-input" UI component- Multi-language labels and descriptions (English and Polish)
Admin UI
This plugin extends the admin UI with custom input components for order line attributes, including an attributes editor and a facet values selector displayed on the order detail page.
API Extensions
This plugin does not add any GraphQL API extensions. It registers custom fields on the OrderLine entity, which are automatically exposed through the standard Deenruv GraphQL API.
