hi guys,
i try to set RADIO BUTTONS because i would like insert an image different for every option.
Example, i have these radio button
Option 1 and Option 2
If i click and choose OPTION 1 the extra field background will be BLACK if i choose OPTION 2 background will be YELLOW (just an example).
My question is: What type of code i must insert? How i specify IF OPTION 1 value or IF OPTION 2 value?
I put this:
<?php if($this->item->params->get('catItemExtraFields') && count($this->item->extra_fields)): ?>
<?php $custom = $this->item->extra_fields; ?>
<span class="new">
<?php echo $custom[20]->value;?>
</span>
<?php endif; ?>
Somebody can help me?
Regards,
A.
i try to set RADIO BUTTONS because i would like insert an image different for every option.
Example, i have these radio button
Option 1 and Option 2
If i click and choose OPTION 1 the extra field background will be BLACK if i choose OPTION 2 background will be YELLOW (just an example).
My question is: What type of code i must insert? How i specify IF OPTION 1 value or IF OPTION 2 value?
I put this:
<?php if($this->item->params->get('catItemExtraFields') && count($this->item->extra_fields)): ?>
<?php $custom = $this->item->extra_fields; ?>
<span class="new">
<?php echo $custom[20]->value;?>
</span>
<?php endif; ?>
Somebody can help me?
Regards,
A.