New Zenner
- Join Date:
- Jun 2007
- Posts:
- 44
- Plugin Contributions:
- 0
add manufacturer link to product_listing.php
I have added a manufacturer's name and link to a product page.
But I also want to add it to product_listing.php
the orginal code:
case 'PRODUCT_LIST_MANUFACTURER':
$lc_align = '';
$lc_text = '<a href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing->fields['manufacturers_id']) . '">' . $listing->fields['manufacturers_name'] . '</a>';
break;
Changing it to this puts in the correct name, but the link is 404
$lc_text = '<a href="' . zen_href_link($listing->fields['manufacturers_url']) . '">' . $listing->fields['manufacturers_name'] . '</a>';
It seems that $listing->fields['manufacturers_url'] is empty.
How do I add the url to the $listing->fields ?
thx