Developer forum

Forum » Development » Auto unpublish products from Ecommerce Shop

Auto unpublish products from Ecommerce Shop

Jose Caudevilla
Reply

Hello,

 

I have a dw solution with two ecommerces , a B2C shop and B2B shop. 

The products are updated by a ERP web service using a custom Data integration ERP Batch .

This ERP product information tell where the product has to be publish (B2C or B2B shop) and if is avaiable or not. Its obsolete or not...

 

The problem is when the publish products are updated and should be unpublished from ecommerce group.

Now i marked it as inactive but still in the ecommerce group.

Is there any way to unpublish a product from code? Maybe deleting the shopId of a product

 

Thanks,

Jose

 

 


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

I am not sure I understand your question...

If you deactivate the product, it will not display (if your query take it into consideration and you have rebuilt your index)

If you only want to remove it from one of the shops, you have to remove it from the group in that shop.

BR Nicolai

Votes for this answer: 1
 
Jose Caudevilla
Reply

Hi nicolai,

 

Maybe i explain wrong. Sorry.

I mean to the second option that you said. I only want to remove products from one of the shops.

 

I dont want deactivate products inside our shop because it still in the shop.

 

Thanks,

 

Jose

 

You must be logged in to post in the forum