Ok I've got it in and working automatically, more or less.
Here is a link where you can see how it works with a bunch of images (scroll):
http://0stage.justmedical***DOT***bi..._Test_1_Images
Here is a link where you can see it with only a couple images (no scroll):
http://0stage.justmedical***DOT***bi...roducts_id=159
Here is a link no additional images:
http://0stage.justmedical***DOT***bi...roducts_id=123
PROBLEM: Zen is trying to apply a column display to additional images. To demonstrate, visit the first link above and scroll left.
I suspect the problem is occurring within the file where I put my code (/includes/templates/MY_TEMPLATE/templates/tpl_modules_additional_images.php).
I feel like I should just be able to say:
<?php echo '<div>' . $list_box_contents . '</div>' . "\n"; ?>
But that breaks the cart.![]()
Can somebody tell me how to strip out all the column/row stuff from this?
PHP Code:
<?php
/**
* Module Template:
* Loaded by product-type template to display additional product images.
*
* @package templateSystem
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_modules_additional_images.php 3215 2006-03-20 06:05:55Z birdbrain $
*
*/
require(DIR_WS_MODULES . zen_get_module_directory('additional_images.php'));
?>
<?php
if ($flag_show_product_info_additional_images != 0 && $num_images > 0) {
?>
<div class="responsive">
<?php
if (is_array($list_box_contents) > 0 ) {
for($row=0;$row<sizeof($list_box_contents);$row++) {
$params = "";
//if (isset($list_box_contents[$row]['params'])) $params .= ' ' . $list_box_contents[$row]['params'];
?>
<?php
for($col=0;$col<sizeof($list_box_contents[$row]);$col++) {
$r_params = "";
if (isset($list_box_contents[$row][$col]['params'])) $r_params .= ' ' . (string)$list_box_contents[$row][$col]['params'];
if (isset($list_box_contents[$row][$col]['text'])) {
?>
<?php echo '<div>' . $list_box_contents[$row][$col]['text'] . '</div>' . "\n"; ?>
<?php
}
}
?>
<br class="clearBoth" />
<?php
}
}
?>
</div>


Reply With Quote
