Hi everyone, can somebody please help me out with the following:
Product Page - I'm wanting to amend a small portion for my websites benefit.
On the 'tpl_product_info_display.php' or 'Product Page' as we know it , I would like the "product URL" section below to only appear when the user is logged in. I know I need to do something with checking the session, but do not have the PHP knowledge to sort this.
To display this segment when the user is logged in only, else display nothing:
Code:
<!--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 -->
The reason for doing this is because I am using the URL to link to another website that is for logged in users only (but does not need to be strictly secure) and it needs to come from each specific product page.
Any help appreciated.
Thanks
Bookmarks