Add a status field (enabled/disabled) to stores

Created on 4 November 2017, over 7 years ago
Updated 3 October 2023, over 1 year ago

Hello,

I started to create a market place on my site and I would like to moderate the stores.
That is to say that when a user creates a store, I do not want it to appear on the site and in the search engines (google, ...).
It must be unpublished or disabled.

If his shop is valid, I activate or publish it and change the role of the user to "Store Owner".

When a node is not published, it is inaccessible. We should do the same with the stores.
If a store is disabled, it must also disable the affected products.

To enable or disable a store, you must add rules.

- If the store contains products, it can not be disabled. You must display a message "To disable this store, you must first disable the associated products."

- If a deactivated product is associated with a disabled store and I want to activate this product. You must display a message "To activate this product, you must first activate the associated store".

If the conditions are not met, the enable / disable check box is not clickable and the warning message is displayed.

I think this feature should be part of Drupal Commerce ..

Stores must have the status "Posted" or "Unpublished".

With a new permission "See all stores" and "See unpublished stores that I own".

When the "Content Moderation" module is stable, it can take into account the stores.

This would be useful for the "Commerce multistore".

Feature request
Status

Needs work

Version

2.16

Component

Store

Created by

🇫🇷France zenimagine

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Open on Drupal.org →
    Core: 9.5.x + Environment: PHP 8.0 & MySQL 5.7
    last update over 1 year ago
    Not currently mergeable.
  • @neha-mahajan opened merge request.
  • 🇮🇳India Sivaji_Ganesh_Jojodae Chennai

    We are requiring this feature in our project. Would like to see this added shortly.

  • 🇪🇸Spain willeaton

    From what I can see, this patch does nothing more than create the field, anyone can do that via the entity system. What we need is to make sure that the commerce module takes this into account in all the important places (checkout, order creation, store_domain resolvers etc

    I think this feature makes a lot of sense. You create a store, you have orders associated to a store, then you close it. Is there another way of approaching this?

Production build 0.71.5 2024