Hi @nicolas,
for the reason (discussed before) I created a new section in product / show_block_dimensions ... like this:
<!-- PFAND -->
<span id="pfand">zzgl. Pfand: <?php echo $this->element->pfand ?> €<br/></span>
<!-- EO PFAND -->
This works but has a problem: If the value (pfand) is empty, the text (zzgl. Pfand) is still displayed. Which is technically correct, I know! But I want to display the whole line only if it contains a value. So I tried the following:
<!-- PFAND -->
<?php
if(!empty($this->element->pfand) { ?>
<span id="pfand">zzgl. Pfand: <?php echo $this->element->pfand ?> €<br/></span>
<?php
}
?>
<!-- EO PFAND -->
But it doesn't work. I get the error:
ERROR 0 - syntax error, unexpected token "{" in /path_to_website/templates/astroid_template_two_ghc/html/com_hikashop/product/show_block_dimensions.php:44
This is line 44:
if(!empty($this->element->pfand) { ?>
What did I wrong?
Cheers
Rusty