Hello all
I'm trying to incorporate a direct link to a product's manufacturer on the product info page, much like the manufacturer's sidebox.
I've found varying threads trying the same thing, however I can't seem to get it to work. So far what I've done is add the following line of code to product_info/main_template_vars.php:
PHP Code:
$manufacturers_id= zen_get_products_manufacturers_id((int)$_GET['products_id']);
And I'm using the following code to display the manufacturer's name and link:
PHP Code:
<a href="' . zen_href_link('manufacturers_id=' . $product_info->fields['manufacturers_id']) . '"><?php echo (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? $manufacturers_name : ''); ?></a>
Unfortunately, the link is just returning the code (' . zen_href_link('manufacturers_id=' . $product_info->fields['manufacturers_id']) . ') rather than the link to the manufacturer.
The other thing I'm trying to do is incorporate a link to a product's category when viewing all/featured/new/special products. This is the code I'm using to pull the link and category name:
PHP Code:
<a href="' . zen_href_link(FILENAME_DEFAULT, 'cPath=' . $new_cpath) . '"><h4 class="product-cat">' . zen_get_categories_name_from_product($products_all->fields['products_id']) . '</h4></a>
Unfortunately, the link returns without the category id.
Any ideas as to how I might get these two to work?
Thanks.
Bookmarks