You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Add sale.channel as dependency to nereid-catalog.
Add a field called channel in nereid.website and set that in context while initializing nereid app.
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.
Change displayed_on_eshop field to a function field and will respect current channel in context to return True/False
get_absolute_url method should also respect current_channel in context and return URI accordingly.
The text was updated successfully, but these errors were encountered:
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.
The approach you have mentioned may work for extremely small catalogs where individual products can be listed, but soon it would become cumbersome.
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:channel
innereid.website
and set that in context while initializing nereid app.channel.listing
.channel.listing
model will decide if product is listed on website withproduct-identifier
asuri
.displayed_on_eshop
field to afunction field
and will respectcurrent channel
in context to return True/Falseget_absolute_url
method should also respect current_channel in context and return URI accordingly.The text was updated successfully, but these errors were encountered: