Developer forum

Forum » Swift » Dynamic Badges

Dynamic Badges

Davy Capiau
Reply

Hi,

Is it possible to generate a badge on a product depending on the customer? For example we have a 3+1 discount rule, but it's only applicable on a subset of customers. We want to combine it with a badge "3+1", but only want the selected customers to see it.

If not, any other 'dynamic' alternatives?

Kr

Davy


Replies

 
Karsten Thuen Dynamicweb Employee
Karsten Thuen
Reply

Hi Davy

Great question. We do not have anything in the current Swift implementation for this. But if you have accress to someone who can do the code, the functionality can be added in the code in \Files\Templates\Designs\Swift\Components\EcommerceBadge.cshtml 

And this is also where you can see how the basic badge implementation is done.

 

Best regrads
Karsten Thuen

 

You must be logged in to post in the forum