Great concentrated info there!
You also need to change the way you are writing your code. You are trying to output the link immediately instead of putting it into $lc_text for later output.
PHP Code:
PRODUCT_LIST_DESCRIPTION) . '
<!--bof Product URL -->
<?php
if (zen_not_null($products_url)) {
if ($flag_show_product_info_url == 1) {
?>
<p id="productInfoLink" class="productGeneral centeredContent">
<?php echo sprintf(TEXT_MORE_INFORMATION, zen_href_link(FILENAME_REDIRECT, "action=url&goto=" . urlencode($products_url), "NONSSL", true, false)); ?>
</p>
<?php
} // $flag_show_product_info_url
}
?>
<!--eof Product URL -->
</div>';
needs to become something like
PHP Code:
PRODUCT_LIST_DESCRIPTION) . $product_url_link . '
</div>';
and before the $lc_text = line, add this
PHP Code:
$product_url_link = '';
if (zen_not_null($products_url)) {
if ($flag_show_product_info_url == 1) {
$product_url_link = '
<!--bof Product URL -->
<p class="productInfoLink productGeneral centeredContent">
' . sprintf(TEXT_MORE_INFORMATION, zen_href_link(FILENAME_REDIRECT, "action=url&goto=" . urlencode($products_url), "NONSSL", true, false)) . '
</p>
<!--eof Product URL -->
';
} // $flag_show_product_info_url
}
I don't know if $flag_show_product_info_url is set in the product listing page, or only in the product info page. If this doesn't work, that would be something to look at.
Bookmarks