Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Trying to get Product URL on product listing....

Trying to get Product URL on product listing....

Locked

Views: 1,857

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
25 May 2006, 11:30 AM
#1
duffster2004 avatar

duffster2004

New Zenner

Join Date:
Mar 2006
Posts:
89
Plugin Contributions:
0

Trying to get Product URL on product listing....

Hiya, Im trying to get the Products Info URL from the product info page onto the new products listing....

Ive found this code in tpl_product_info_display.php,

<?php if (zen_not_null($products_url)) { if ($flag_show_product_info_url == 1) { ?>
<span class="productGeneral centeredContent"><?php echo sprintf(TEXT_MORE_INFORMATION, zen_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($products_url), 'NONSSL', true, false)); ?></span>
<?php Is there any way I could apply this to the product new listing? Ive triedit at it doesnt work, but I cannot see what it cant call from another php file.... Any ideas? Been tryiong to dothis for awhile.
27 May 2006, 9:17 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Trying to get Product URL on product listing....

I have been playing with the code you referenced with about the same results... I am not much of a coder and for sure do not have a good understanding of the php pieces & interaction.

Maybe a real coder will chime in on this one.

27 May 2006, 1:41 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Trying to get Product URL on product listing....

The /modules/products_new/header_php.php does not call the field products_url from the products_description table ...

You could add a function to do this look up for you so you do not need to touch the core code ... or you would need to edit the core code file listed above and add the field to the select statement so you can use it ...