Developer forum

Forum » Ecommerce - Standard features » Replacement products

Replacement products

Stephen Anthony Jackson
Stephen Anthony Jackson
Reply

Havent found much in the documentation about replacement products.

Does anyone know if it is possible to configure ecom such that a search on an old product number / ean returns the replacement product instead?

Cheers

//Steve


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Stephen

The Index contains a field with the replacement product id - but that sits on the product being faced out.

To configure the index to return the new product when searching the old SKU, I would recommend creating a custom product field, e.g. "Replaces SKU" and then on the new product have the SKU of the products it replaces and then include that field in searches so that it shows up.

The 'default' behavior of replacement products is that you leave the old product in so it can be searched, and then if it has a replacement product, show a message on the product detail page that the product has been replaced and link to that instead.

BR Nicolai

 
Stephen Anthony Jackson
Stephen Anthony Jackson
Reply

Ahhh thanks Nicolai.

We have also had a question if it is possible to configure the solution such that if you click order on the old one, that the one replacing it is automatically put into the basket. I assume this is possible by altering the template so that if a replacement is present, then you add that instead, but I think that it is possibly misleading? Would certainly have to have some very prominent notices about it on both the product list and the product detail page, and that would maybe start to get messy. I like the disable old, and linking to new approach best

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

I also think that would be misleading to just add the new product.

In my view it is better to disable the add to cart button and provide a clear message with a link to the new product.

 

You must be logged in to post in the forum