Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

associate specific products to specific channel #9437

Closed
ghena opened this issue Feb 11, 2024 · 1 comment
Closed

associate specific products to specific channel #9437

ghena opened this issue Feb 11, 2024 · 1 comment
Labels
Done When enhancement is done. Feature Request Issues filed as feature requests.

Comments

@ghena
Copy link

ghena commented Feb 11, 2024

Is your feature request related to a problem? Please describe.

V affected on 2.0
I didnt found a feature able to associate a product to a specific channel.

Describe the solution you'd like

For example i have 2 channels, and a lot of products.
I would like to assign each channels specifics products to display on the frontend.

Describe alternatives you've considered

Futher maybe the source inventory should be linked to a specific channels

Additional context

No response

@ghena ghena added the Feature Request Issues filed as feature requests. label Feb 11, 2024
@ghena ghena changed the title associate specifics products to specific channel associate specific products to specific channel Feb 11, 2024
@jitendra-webkul
Copy link
Member

Implemented in PR #9833. This implementation will work only with new or fresh databases. Existing databases will continue to function as before, meaning status will remain non-channel based because all the product attribute values and the attribute itself are non-channel based.

If you want status to be channel-based in the existing database, follow these manual steps:

  1. Update the value_per_channel column to 1 for the attribute with id = 7 or code = status in the attributes table. This step will convert the status attribute to be channel-based.

  2. Convert the status attribute saved in product_attribute_values to be channel-based by running the following query on the database:

    UPDATE product_attribute_values
    SET channel = 'default',
        unique_id = CONCAT_WS('|', 'default', locale, product_id, attribute_id)
    WHERE attribute_id = 7;

Ensure you update your default channel accordingly in the above query.

@jitendra-webkul jitendra-webkul added the Done When enhancement is done. label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Done When enhancement is done. Feature Request Issues filed as feature requests.
Projects
None yet
Development

No branches or pull requests

2 participants