Total Posts: 92
Marzipane World Capital (Lübeck, Germany)
a small question:
i created a custom picture atribute to display the logo of the manufacturer, i can even display it in the frontend.
trouble is: if it is empty, the rendering of the page will stop.
that is the code for the display:
<img id="image-3" src="<?php echo $this->helper('catalog/image')->init($_product, 'manufacturer_pic')->resize(50); ?>" alt="<?php echo $this->htmlEscape($_product->getName()) ?>" />
how do i get an default picture instead of an error? help appreciated