I have the following raw query:
This returns the best price per product type, and I would like the background-color property of the price field to become green when the price is lower than the relevant product type from the above query. Can anyone maybe give me an example implementation?
I've tried using the Dynamic Logic extension, and tried playing around with the setFieldCss function, but I must be missing something because I could not get it to work. Or should I do this in a hook or a formula rather?
Any help would be greatly appreciated as always.
Code:
SELECT product_coal AS product, MIN(price_per_ton) AS best_price_per_ton FROM commodity GROUP BY product_coal ORDER BY id ASC;
I've tried using the Dynamic Logic extension, and tried playing around with the setFieldCss function, but I must be missing something because I could not get it to work. Or should I do this in a hook or a formula rather?
Any help would be greatly appreciated as always.
Comment