Hallo,
ich habe die ExtraFields nach meinen Bedürfnissen konfiguriert.
Siehe Code:
<div class="catItemExtraFields">
<ul>
<?php foreach ($this->item->extra_fields as $key=>$extraField): ?>
<?php if($extraField->value): ?>
<li class="<?php echo ($key%2) ? "odd" : "even"; ?> type<?php echo ucfirst($extraField->type); ?> group<?php echo $extraField->group; ?>">
<span class="catItemExtraFieldsLabel"><?php echo $extraField->name; ?></span>
<span class="itemExtraFieldsValue">
<?php
if ($extraField->type == 'multipleSelect') {
$extraOptions = explode(',',$extraField->value);
?>
<?php foreach ($extraOptions as $extraOption): ?>
<ul class="<?php echo $extraOption; ?>"><?php echo $extraOption; ?></ul>
<?php endforeach; ?>
<?
} else
echo $extraField->value;
?>
</span>
</li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
<div class="clr"></div>
</div>
<?php endif; ?>
Funktioniert auch wie gewollt. Leider habe ich ein problem mit dem extraFieldsLabel. Ich schaffe es nicht, die ExtraFieldValues in einem Block darzustellen.
Hier ist der Link der Webseite, wo ihr das Problem erkennen könnt:
www.versandkostenfrei-bestellen24.de/mode-versandkostenfrei.html
Hoffe ihr habt Tipps.
Danke vorweg
ich habe die ExtraFields nach meinen Bedürfnissen konfiguriert.
Siehe Code:
<div class="catItemExtraFields">
<ul>
<?php foreach ($this->item->extra_fields as $key=>$extraField): ?>
<?php if($extraField->value): ?>
<li class="<?php echo ($key%2) ? "odd" : "even"; ?> type<?php echo ucfirst($extraField->type); ?> group<?php echo $extraField->group; ?>">
<span class="catItemExtraFieldsLabel"><?php echo $extraField->name; ?></span>
<span class="itemExtraFieldsValue">
<?php
if ($extraField->type == 'multipleSelect') {
$extraOptions = explode(',',$extraField->value);
?>
<?php foreach ($extraOptions as $extraOption): ?>
<ul class="<?php echo $extraOption; ?>"><?php echo $extraOption; ?></ul>
<?php endforeach; ?>
<?
} else
echo $extraField->value;
?>
</span>
</li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
<div class="clr"></div>
</div>
<?php endif; ?>
Funktioniert auch wie gewollt. Leider habe ich ein problem mit dem extraFieldsLabel. Ich schaffe es nicht, die ExtraFieldValues in einem Block darzustellen.
Hier ist der Link der Webseite, wo ihr das Problem erkennen könnt:
www.versandkostenfrei-bestellen24.de/mode-versandkostenfrei.html
Hoffe ihr habt Tipps.
Danke vorweg