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
Now, I have a product and a sales channel, but I don't know how to attact a product to the sales channel. Upser/createProduct UpsertProductDTO extends UpdateProductDTO type has nothing for channels. IProductModuleService has no method for set sales channel like createProductCategories. ISalesChannelModuleService type has no such method for assign a product, too.
Another question is - by default it seems that products without a sales channel aren't public querable, why and how to stop that?
The text was updated successfully, but these errors were encountered:
Another question is - by default it seems that products without a sales channel aren't public querable, why and how to stop that?
In the Store API, we require products to be associated with a sales channel, as this is an indication from where the purchase of the products was made. If you don't need multiple sales channels in your setup, you can use the default channel. This is also how the default Medusa starter is set up.
I am unable to get the link loaded inside the workflow using the container.resolve() if I access the container from the framework then it works ? What could be wrong ?
What Medusa version and documentation are you using?
Issue Summary
I am using producTService to create a product and sales channel Service to create a sales channel like:
Now, I have a product and a sales channel, but I don't know how to attact a product to the sales channel. Upser/createProduct
UpsertProductDTO extends UpdateProductDTO
type has nothing for channels.IProductModuleService
has no method for set sales channel likecreateProductCategories
.ISalesChannelModuleService
type has no such method for assign a product, too.Another question is - by default it seems that products without a sales channel aren't public querable, why and how to stop that?
The text was updated successfully, but these errors were encountered: