there are some code as this:
<div class="test">
<div class="upsell-tags">
<?php echo $this->getChildHtml('product_additional_data') ?>
<?php echo $this->getChildHtml('upsell_products') ?>
</div>
</div>
i want to add a if condition before the <div class="test">. how do i do? thank you.
when i add the following code, it shows me an error,. why?
<?php if(isset($this->getChildHtml('upsell_products'))):?>.....
<?php endif;?>
From the PHP docs:
You’re passing the return value of a function, which isn’t a valid use. You’ll need to do something like