Thanks Dr Byte, That works perfectly. Just incase anyone wants to create something similar, the final code is as below for the tpl_product_info_display.php in the templates folder.
This is the Product URL adding the Client ID (or whatever you require) to pass a user to a different website and keep track of them. It will only show when the user is logged in.
Code:
<!--bof Product URL Hacked to only show when Logged in added '&& isset($_SESSION['customer_id'])' -->
<?php
if (zen_not_null($products_url) && isset($_SESSION['customer_id'])) {
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).'&userid='.$_SESSION['customer_id'], 'NONSSL', true, false)); ?></p>
<?php
} // $flag_show_product_info_url
}
?>
<!--eof Product URL -->
:-)
Bookmarks