Link zum Hersteller in der Produktbeschreibung

02.12.2011 16:40
#1
Michael Adrian
Joomshopping forum user no avatar
Name: Michael Adrian
03.08.2011
Сообщения: 14
Quote
Link zum Hersteller in der Produktbeschreibung

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 22:08
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Сообщения: 25940
Quote
Aw: Link zum Hersteller in der Produktbeschreibung

Try
/administrator/index.php?option=com_jshopping&controller=config&task=catprod

Show manufacturer logo

 
02.12.2011 22:26
#3
Michael Adrian
Joomshopping forum user no avatar
Name: Michael Adrian
03.08.2011
Сообщения: 14
Quote
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
#4
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Сообщения: 25940
Quote
Aw: Link zum Hersteller in der Produktbeschreibung

Will be in new version.

 
02.12.2011 23:02
#5
Michael Adrian
Joomshopping forum user no avatar
Name: Michael Adrian
03.08.2011
Сообщения: 14
Quote
Aw: Link zum Hersteller in der Produktbeschreibung

any idea when that will be? I need to go productive asap...

 
02.12.2011 23:15
#6
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Сообщения: 25940
Quote
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
#7
Michael Adrian
Joomshopping forum user no avatar
Name: Michael Adrian
03.08.2011
Сообщения: 14
Quote
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?

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.