Thanks for your offers! :smile:
However, the credits are for the Dev Team of Zen Cart. As they are working very hard and provide the software free for us.
Please donate to the Zen Cart Team!
And if my help worth then also donate them all to the Zen Cart Team too. :smile:
Return to you issue:
The quick fix is as had mentioned above, try to insert the <br class="clearBoth" /> to the file.
Suggest to modify, copy the following file
includes/templates/template_default/templates/tpl_product_info_display.php
And save the file to your override directory as
includes/templates/YOUR_TEMPLATE/templates/tpl_product_info_display.php
Then modify the copied file and in line no. 116 - 130,
it has the following:
<!--bof Product details list -->
<?php if ( (($flag_show_product_info_model == 1 and $products_model != '') or ($flag_show_product_info_weight == 1 and $products_weight !=0) or ($flag_show_product_info_quantity == 1) or ($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name))) ) { ?>
<ul id="productDetailsList" class="floatingBox back">
<?php echo (($flag_show_product_info_model == 1 and $products_model !='') ? '<li>' . TEXT_PRODUCT_MODEL . $products_model . '</li>' : '') . "\n"; ?>
<?php echo (($flag_show_product_info_weight == 1 and $products_weight !=0) ? '<li>' . TEXT_PRODUCT_WEIGHT . $products_weight . TEXT_PRODUCT_WEIGHT_UNIT . '</li>' : '') . "\n"; ?>
<?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>' : '') . "\n"; ?>
<?php echo (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? '<li>' . TEXT_PRODUCT_MANUFACTURER . $manufacturers_name . '</li>' : '') . "\n"; ?>
</ul>
<br class="clearBoth" />
<?php
}
?>
<!--eof Product details list -->
<!--bof Attributes Module -->
Please note in line no. 124, it has: <br class="clearBoth" />
and in line no. 129, it has a blank line.
And We only need to move the line no. 124 to the line no. 129 (the blank line).
And then it should read as:
<!--bof Product details list -->
<?php if ( (($flag_show_product_info_model == 1 and $products_model != '') or ($flag_show_product_info_weight == 1 and $products_weight !=0) or ($flag_show_product_info_quantity == 1) or ($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name))) ) { ?>
<ul id="productDetailsList" class="floatingBox back">
<?php echo (($flag_show_product_info_model == 1 and $products_model !='') ? '<li>' . TEXT_PRODUCT_MODEL . $products_model . '</li>' : '') . "\n"; ?>
<?php echo (($flag_show_product_info_weight == 1 and $products_weight !=0) ? '<li>' . TEXT_PRODUCT_WEIGHT . $products_weight . TEXT_PRODUCT_WEIGHT_UNIT . '</li>' : '') . "\n"; ?>
<?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>' : '') . "\n"; ?>
<?php echo (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? '<li>' . TEXT_PRODUCT_MANUFACTURER . $manufacturers_name . '</li>' : '') . "\n"; ?>
</ul>
<?php
}
?>
<!--eof Product details list -->
<br class="clearBoth" />
<!--bof Attributes Module -->
After this, will solve the extra spaces for attribute options.
Beause of the <br class="clearBoth" /> itself also create space. Therefore, for further improve and minimize the space created by <br class="clearBoth" /> which will affect other areas.
In the css, modify the below section
.clearBoth {
clear: both;
}
Add one line for line-height and read as follow.
.clearBoth {
clear: both;
line-height: 0; /* To reduce blank space affect other areas */
}
Hope this helps.