Some of my products have multiple images and some don't.
Those that do, I want to float all images, blurb and attributes etc to the left, and those that don't I want to align the single image central.
To get this to work, I added the following highlighted code to tpl_product_info_display.php
Although this works, I suspect the code is flawed. For if there are additional images, tpl_product_info_display.php will call the following twice:Code:<div id="mainProductBox"> <h3 id="productName"><?php echo $products_name; ?></h3> <?php require(DIR_WS_MODULES . zen_get_module_directory('additional_images.php')); ?> <?php if ($flag_show_product_info_additional_images != 0 && $num_images > 0) { ?> <div id="productImageBox2"><!-- images etc float left --> <?php } else { ?> <div id="productImageBox"><!-- image is centralised --> <?php } ?> <!-- bof Main Product Image -->
when all I really need is this part of additional_images.phpCode:require(DIR_WS_MODULES . zen_get_module_directory('additional_images.php'));
The difference is CSS is as follows:Code:<?php if ($flag_show_product_info_additional_images != 0 && $num_images > 0) { ?>
#productImageBox { }
#productImageBox2 {float:left;}
I would appreciate if someone could steer me right on this.



