Skip to content

How can I define a product with descriptions in more languages? #463

Answered by sarahelsaig
DotCat1985 asked this question in Q&A
Discussion options

You must be logged in to vote

If you enable the OrchardCore.ContentLocalization feature and the product contains LocalizationPart, you can add localized versions of the product.

Unfortunately simple InventoryPart-based inventory tracking is not supported for this scenario, because of the design limitations of OC's OrchardCore.ContentLocalization module. (Localized content items are clones at the time of creation with only a reference to each other, they can't share/synchronize content part data.) You have two options:

  • First, replace LocalInventoryProvider with your own IProductInventoryProvider implementation that stores the inventory registry somewhere else independent of the content item content (e.g in a site set…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@DotCat1985
Comment options

@sarahelsaig
Comment options

Answer selected by DotCat1985
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants