Do it in the template instead, in the zen_href_link function, adding your special extra string as the 2nd param. zen_href_link(base URL, params to add)
Do it in the template instead, in the zen_href_link function, adding your special extra string as the 2nd param. zen_href_link(base URL, params to add)
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
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 -->