I need to modify the results output based on one additional field
I select an additional field (class from item-field)
<div class="item-field {._class} {render_class}">
<?php
$trida="{._class}";
var_dump($trida);
?>
{?.key}<div class="item-field-label {label_render_class}">{.key}</div>{/.key}
{@select key=._class}
this will display correctly.
but if I want to use the class in a condition
{@none}
{.value|s}
<?php
if($trida == "ct431") {
$productID = "{.value|s}";
var_dump($productID);
};
?>
{/none}
so the comparison doesn't work and $trida looks empty
I do it in /www/plugins/jamegafilter/content/layouts/default/product-item.php
Is there any way to make the condition work?