traffic light as Demo 1 products?

Hello,

you have a traffic light in the demo 1 application => products => Recoder product

I see in the admin area in the "forms configurator", you have a custom function "dadabik_format_recorder_product"

Can you post here the code of this function?`
Thank you!

Michael
 

eugenio

Administrator
Staff member
Hello,
here is the code

[pre]
function dadabik_format_reorder_product($value){

if ($value === 'yes'){
return '<img src="images/red.png">';
}
return '<img src="images/green.png">';

}
[/pre]

Best,
 
Top