Ich würde gerne den Hersteller des Produkts als Link zu dessen Eintrag in Joomshopping anzeigen. Welchen Code müsste ich in das template "product_default.php" denn einfügen?
Joomla: 1.7.3
02.12.2011 16:40
|
|
Michael Adrian
Name: Michael Adrian
03.08.2011
Posts: 14
|
|
02.12.2011 22:08
|
|
admin
(Support Team) Name: Admin
05.08.2010
Posts: 25940
|
|
02.12.2011 22:26
|
|
Michael Adrian
Name: Michael Adrian
03.08.2011
Posts: 14
|
Aw: Link zum Hersteller in der Produktbeschreibung
Thanks, but this only shows the "logo" as link. I want to show the name of the manufacturer as link. Background: I'm thinking of renaming "manufacturer" to "Autor", and the detail view of a book (my products) a picture of the author does not make much sense. Can you please help how to replace the logo withe the manufacturers name? |
02.12.2011 22:30
|
|
admin
(Support Team) Name: Admin
05.08.2010
Posts: 25940
|
|
02.12.2011 23:02
|
|
Michael Adrian
Name: Michael Adrian
03.08.2011
Posts: 14
|
|
02.12.2011 23:15
|
|
admin
(Support Team) Name: Admin
05.08.2010
Posts: 25940
|
Aw: Link zum Hersteller in der Produktbeschreibung
Need Change template components\com_jshopping\templates\default\product\product_default.php <?php if ($this->product->manufacturer_info->manufacturer_logo!=""){?> <div class="manufacturer_logo"> <a href="<?php print SEFLink('index.php?option=com_jshopping&controller=manufacturer&task=view&manufacturer_id='.$this->product->product_manufacturer_id, 2);?>"> <img src="<?php print $this->config->image_manufs_live_path."/".$this->product->manufacturer_info->manufacturer_logo?>" alt="<?php print htmlspecialchars($this->product->manufacturer_info->name);?>" title="<?php print htmlspecialchars($this->product->manufacturer_info->name);?>" border="0" /> </a> </div> <?php }?> change to <div class="manufacturer_logo"> <a href="<?php print SEFLink('index.php?option=com_jshopping&controller=manufacturer&task=view&manufacturer_id='.$this->product->product_manufacturer_id, 2);?>"> <?php print $this->product->manufacturer_info->name);?> </a> </div> |
02.12.2011 23:29
|
|
Michael Adrian
Name: Michael Adrian
03.08.2011
Posts: 14
|
Aw: Link zum Hersteller in der Produktbeschreibung
Thanks a lot, that works. In the code there was only a small error: In the line <?php print $this->product->manufacturer_info->name);?> the bracket after "name" is wrong. Thanks again. How can I avoid that the template is overridden by the next update? |