Developer forum

Forum » Ecommerce - Standard features » Image rules based on group context

Image rules based on group context

Martin Grønbekk Moen
Martin Grønbekk Moen
Reply

We have a customer who wants to show different product images based on which group context the customer is viewing the product.

Lets say you have a shoe. This shoe is unisex, it can be used by both men and women. So naturally the shoe is present in both categories "Shoes -> Men" and "Shoes -> Women".

The shoe is available in two colors, pink and blue. So if someone is looking at the product through "Shoes -> Men" the default image should be the blue shoe, and if the group context is "Shoes -> Women" the image should be of a pink shoe.

The question is if this is something that can be achieved using the standard tools available to the latest DW application, or if it is something that has to be custom made. If so, how would you aproach this?


Replies

 
Nicolai Pedersen
Reply

Hi Martin

There is no feature to support that scenario. There is a {GroupID} parameter for image patterns, but it takes the primary group and not the group from the context. So you have to do some logic in your template to achieve this.

BR Nicolai

 

You must be logged in to post in the forum