Developer forum

Forum » Feature requests » Image for discounts

Image for discounts

Nuno Aguiar
Reply

Hi,

 

More and more we are getting requests for adding an image to a discount to be assigned to the orderline. I think it makes perfect sense too.

 

We are making a workaround using Items, where the user adds an image to a discount (dropdown), but takes requires more work to develop, steps for the client to assign, and needs to clean them after a while.

 

Best Regards,

Nuno


Replies

 
Nicolai Høeg Pedersen
Reply

A discount has an ID or name. Use that to locate the image that fits the discount.

<img src=”files/images/discount!--@discountid-->.jpg”>

Use Razor or getimage alternative file if you want to check for if the image exists.

 
Nuno Aguiar
Reply

Hi Nicolai,

 

Yes, we've done that as well, but since the DiscountID is not simple to get for some less-techky users, we used an Item list.

 

Nevertheless, if the Discount matrix were to have an image field, would be easier

 

Best Regards,

Nuno Aguiar