Please Log in or Create an account to join the conversation.
$color=$item['Select16'];
if ( $color) {
echo '<p class="color">The color is : '. $color.'</p>';
}
$old_price=$item['Select17'];
if ( $old_price && ( $old_price>$product_price ) ) {
print '<p class="sale"><span>'.$currency.' '.money_format('%!.2n', $old_price).'</span></p>';
}
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
echo '<div class="prijs">€'.$product_price.'</div>';
@$x=$item['Select6'];
if ($x > $item['Prijs']) {
print '<h2>Aanbieding</h2><div class="prijs sale">oude prijs: ' . money_format('%!.2n', $x).'</div>';
}
$list=array();
if ( @$item['Select4'] ) { $list[]='Merk : ' . $item['Select4']; }
if ( @$item['Select5'] ) { $list[]='Kleur : ' . $item['Select5']; }
if ( @$item['Select8'] ) { $list[]='Model : ' . $item['Select8']; }
if ( @$item['Select7'] ) { $list[]='Materiaal : ' . $item['Select7']; }
if ( count($list) ) {
echo '<ul class="product"><li>'.join('</li><li>',$list).'</li></ul>';
}
$description='';
if ( @$item['Select8'] ) { $description.='Dit is een ' . strtolower($item['Select8']); }
if ( @$item['Select4'] ) { $description.=' van het merk <strong>' . $item['Select4']."</strong>"; }
if ( @$item['Select5'] ) { $description.=' in de kleur ' . strtolower($item['Select5']); }
if ( @$item['Select7'] ) { $description.=' en gemaakt van : ' . strtolower($item['Select7']); }
if ( $description ) {
echo '<p class="des">'.$description.'</p>';
}
echo $item['description'];
if ( $product_price > 0 ) {
print '<p class="prijs"><span>'.$currency.' '.money_format('%!.2n', $product_price).'</span></p>';
}
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
dalens wrote: Thank you very much!
Please, how to get this piece of code to look like a list:
Please Log in or Create an account to join the conversation.