Zen Cart How to Include the Manufacturers Logo on the Product Info Page

If your zen cart store carries products by many different manufacturers you will want to show their logo on the product info page. This type of instant brand recognition will increase your sales of these items. This Easy Help Zen Cart Tutorial will show you how to modify your zen cart php files to show the manufacturers logo on the product info pages.

In your favorite plain text editor open the includes/templates/override/templates/tpl_product_info_default.php file. If there is not an override already made for this file, copy the includes/templates/template_default/templates/tpl_product_info_default.php to the includes/templates/override/templates/tpl_product_info_default.php.

Locate the place in the file where you want your manufacturers logo to show and add this code:

   if ($check_image = zen_get_products_manufacturers_image((int)$_GET['products_id'])) { 
     echo '<a class="manufacturer" href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturers_id) . '">' . zen_image(DIR_WS_IMAGES . $check_image) . '</a>' . "\n" ; 
   } else { 
     echo 'NO IMAGE'; 

Next, open the includes/modules/pages/product_info/main_template_vars.php file. This is a zen cart main core file so be sure to back it up and make a note of your changes for future upgrades.

Find this:

$products_manufacturer = $manufacturers_name;  

On the next line add this:

$manufacturers_id = $product_info->fields['manufacturers_id'];  

Save your changes and upload the files to your server making sure that you overwrite the files already on your server. Navigate to a product info page in your zen cart and refresh your browser to see the manufacturer logo.

If you need help with your zen cart web site please contact us for a quote.

Picaflor Azul specializes in creating beautiful, modern zen cart designs customized to meet your specific business needs. Our NexGen E Commerce designs feature responsive designs which have layouts optimized for desktops, laptops, portrait and landscape tablets, and portrait and landscape phones. A responsive design will increase your sales and conversion rates from customers who are shopping your site using their mobile devices. Read our zen cart articles to find out how our responsive designs can benefit your business.

zen cart plus picaflor azul equals success

Leave a Reply