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

Provision to list products on multiple nereid websites #77

Open
tarunbhardwaj opened this issue Jun 8, 2015 · 3 comments
Open

Provision to list products on multiple nereid websites #77

tarunbhardwaj opened this issue Jun 8, 2015 · 3 comments

Comments

@tarunbhardwaj
Copy link
Contributor

Currently product can either be listed on all websites or None. There should be a provision to list product on some selected websites.

This can be achieved by introducing sale channel in this module in following way:

  1. Add sale.channel as dependency to nereid-catalog.
  2. Add a field called channel in nereid.website and set that in context while initializing nereid app.
  3. Listing of products on website can be managed by channel.listing. channel.listing model will decide if product is listed on website with product-identifier as uri.
  4. Change displayed_on_eshop field to a function field and will respect current channel in context to return True/False
  5. get_absolute_url method should also respect current_channel in context and return URI accordingly.
@tarunbhardwaj
Copy link
Contributor Author

@sharoonthomas and @prakashpp 💭 ?

@prakashpp
Copy link
Collaborator

as discussed before, I like this idea :+1

@sharoonthomas
Copy link

  1. I think nereid-catalog should be independent of sale channel. Just like product is independent of sale. It should be possible for a company to just use the catalog system and display their catalog online while not selling them.
  2. The approach you have mentioned may work for extremely small catalogs where individual products can be listed, but soon it would become cumbersome.

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

No branches or pull requests

3 participants