Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Need to display manufacturer name in product detail page

Need to display manufacturer name in product detail page

Locked
This thread is locked. New replies are disabled.
9 Sep 2009, 3:56 AM
#1
tabor_carlton avatar

tabor_carlton

New Zenner

Join Date:
Aug 2009
Posts:
4
Plugin Contributions:
0

Post #1 by tabor_carlton

Just above my product title I want to show the product manufacturer.

Is there an easy system generated variable that I can call just above this:

<?php echo $products_name; ?>

Wondering if $products_name is made available for general output on the page if a manufacturer name or code will be just as accessible.

any ideas?

Tabor Carlton // Interactive Art Director

9 Sep 2009, 11:13 AM
#2
kobra avatar

kobra

Black Belt

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

Post #2 by kobra

In a copy of tpl_product_info_display.php you would have to find the following and move the highlighted into the order or before the title code
NOTE: this is currently a "li" so you need a opening and closing "ul" at where you move it or alter it omitting the li

<!--bof Product details list  -->
<?php if ( (($flag_show_product_info_model == 1 and $products_model != '') or ($flag_show_product_info_weight == 1 and $products_weight !=0) or ($flag_show_product_info_quantity == 1) or ($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name))) ) { ?>
<ul id="productDetailsList" class="floatingBox back">
  <?php echo (($flag_show_product_info_model == 1 and $products_model !='') ? '<li>' . TEXT_PRODUCT_MODEL . $products_model . '</li>' : '') . "\n"; ?>
  <?php echo (($flag_show_product_info_weight == 1 and $products_weight !=0) ? '<li>' . TEXT_PRODUCT_WEIGHT .  $products_weight . TEXT_PRODUCT_WEIGHT_UNIT . '</li>'  : '') . "\n"; ?>
  <?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>'  : '') . "\n"; ?>
  <?php echo (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? '<li>' . TEXT_PRODUCT_MANUFACTURER . $manufacturers_name . '</li>' : '') . "\n"; ?>
</ul>

Zen-Venom Get Bitten

18 Sep 2009, 12:39 AM
#3
asdesign avatar

asdesign

Zen Follower

Join Date:
Jun 2009
Location:
Israel
Posts:
152
Plugin Contributions:
0

Post #3 by asdesign

Sorry to bump this off but I'm wondering...how can I echo out the manufacturer name to display it per product on the featured / whats new display...on my main page, not the sideboxes or something.

Asdesign.co.il - Extreme Sports Blog

18 Sep 2009, 1:10 AM
#4
lissae avatar

lissae

Totally Zenned

Join Date:
Oct 2007
Location:
Australia
Posts:
814
Plugin Contributions:
0

Post #4 by lissae

Asdesign:

Sorry to bump this off but I'm wondering...how can I echo out the manufacturer name to display it per product on the featured / whats new display...on my main page, not the sideboxes or something.

I asked the same a while back [http://www.zen-cart.com/forum/showthread.php?t=120181] and was directed to this thread: http://www.zen-cart.com/forum/showthread.php?t=57734

Good luck :)

HunnyBee Design
"A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

18 Sep 2009, 1:59 AM
#5
tabor_carlton avatar

tabor_carlton

New Zenner

Join Date:
Aug 2009
Posts:
4
Plugin Contributions:
0

Post #5 by tabor_carlton

Thanks Kobra,

sorry for not writing back. That was exactly what I was looking for.

Tabor Carlton // Interactive Art Director