Skip to content

Feat/marketplace complete toggles#1263

Open
bindugayathri wants to merge 2 commits into
mercurjs:mainfrom
bindugayathri:feat/marketplace-complete-toggles
Open

Feat/marketplace complete toggles#1263
bindugayathri wants to merge 2 commits into
mercurjs:mainfrom
bindugayathri:feat/marketplace-complete-toggles

Conversation

@bindugayathri

Copy link
Copy Markdown

Summary

Added vendor product management controls to the Marketplace Settings. This PR introduces a new setting that allows administrators to enable or disable vendor product creation, alongside the existing product approval requirement. Both settings are persisted using store metadata, ensuring reliable configuration without relying on legacy feature flags.

Changes

  • Added a Marketplace Vendor Products settings section containing:
    • Require Product Approval toggle.
    • Allow Vendor Product Creation toggle.
  • Implemented backend validation to prevent vendors from creating products when product creation is disabled.
  • Updated the vendor products API to return an appropriate error response when creation is restricted.
  • Unified boolean setting persistence using the store-boolean-setting utility.
  • Added localization entries for the new settings in en.json.

Testing

Executed the integration test suite:

yarn test:integration http/product/vendor/product-approval-setting.spec.ts

Checklist

  • Updated localization files where required.
  • Added/updated tests covering the new functionality.

Linked Issues

Fixes #1238

@bindugayathri
bindugayathri requested a review from vholik as a code owner July 17, 2026 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improvement: Allow automatic approval of proposed products

1 participant