Jump to content

(SOLUCIONADO) El link de las imágenes del bloque de fabricantes está roto


tvillalbac

Recommended Posts

Muy raro, de verdad. Pongo las imágenes en el bloque y el link no lleva a ningún sitio. está "Usar lista texto plano" activado y de momento me ha tocado activar "Usar cuadro combinado" porque este si que me lleva a la página del fabricante.

Acabo de seleccionar forzar compilación porque la página acabo de ponerla en producción pero ya me pasaba antes de eso.

 

la página es: http://monnalisa-shop.com/

 

la versión de Presta es 1.4.9

 

y el código del blockmanufacturer es este:

 

{*

* 2007-2012 PrestaShop

*

* NOTICE OF LICENSE

*

* This source file is subject to the Academic Free License (AFL 3.0)

* that is bundled with this package in the file LICENSE.txt.

* It is also available through the world-wide-web at this URL:

* http://opensource.or...ses/afl-3.0.php

* If you did not receive a copy of the license and are unable to

* obtain it through the world-wide-web, please send an email

* to [email protected] so we can send you a copy immediately.

*

* DISCLAIMER

*

* Do not edit or add to this file if you wish to upgrade PrestaShop to newer

* versions in the future. If you wish to customize PrestaShop for your

* needs please refer to http://www.prestashop.com for more information.

*

* @author PrestaShop SA <[email protected]>

* @copyright 2007-2012 PrestaShop SA

* @version Release: $Revision: 16235 $

* @license http://opensource.or...ses/afl-3.0.php Academic Free License (AFL 3.0)

* International Registered Trademark & Property of PrestaShop SA

*}

 

<!-- Block manufacturers module -->

<div id="manufacturers_block_left" class="block blockmanufacturer">

<h4>{if $display_link_manufacturer}<a href="{$link->getPageLink('manufacturer.php')}" title="{l s='Manufacturers' mod='blockmanufacturer'}">{/if}{l s='Manufacturers' mod='blockmanufacturer'}{if $display_link_manufacturer}</a>{/if}</h4>

<div class="block_content">

{if $manufacturers}

{if $text_list}

<ul class="bullet">

{foreach from=$manufacturers item=manufacturer name=manufacturer_list}

{if $smarty.foreach.manufacturer_list.iteration <= $text_list_nb}

<li class="{if $smarty.foreach.manufacturer_list.last}last_item{elseif $smarty.foreach.manufacturer_list.first}first_item{else}item{/if}"><a>

<img alt="{$manufacturer.name|escape:'htmlall':'UTF-8'}" href="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)}" title="{l s='More about' mod='blockmanufacturer'} {$manufacturer.name}" src="{$base_dir}img/m/{$manufacturer.id_manufacturer|escape:'htmlall':'UTF-8'}.jpg" border="0" /></a></li>

 

{/if}

{/foreach}

</ul>

{/if}

{if $form_list}

<form action="{$smarty.server.SCRIPT_NAME|escape:'htmlall':'UTF-8'}" method="get">

<p>

<select id="manufacturer_list" onchange="autoUrl('manufacturer_list', '');">

<option value="0">{l s='All manufacturers' mod='blockmanufacturer'}</option>

{foreach from=$manufacturers item=manufacturer}

<option value="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)}">{$manufacturer.name|escape:'htmlall':'UTF-8'}</option>

{/foreach}

</select>

</p>

</form>

{/if}

{else}

<p>{l s='No manufacturer' mod='blockmanufacturer'}</p>

{/if}

</div>

</div>

<!-- /Block manufacturers module -->

 

A alguien se le ocurre qué puede ser??

Edited by tvillalbac (see edit history)
Link to comment
Share on other sites

Muy raro, de verdad. Pongo las imágenes en el bloque y el link no lleva a ningún sitio. está "Usar lista texto plano" activado y de momento me ha tocado activar "Usar cuadro combinado" porque este si que me lleva a la página del fabricante.

Acabo de seleccionar forzar compilación porque la página acabo de ponerla en producción pero ya me pasaba antes de eso.

 

la página es: http://monnalisa-shop.com/

 

la versión de Presta es 1.4.9

 

y el código del blockmanufacturer es este:

 

{*

* 2007-2012 PrestaShop

*

* NOTICE OF LICENSE

*

* This source file is subject to the Academic Free License (AFL 3.0)

* that is bundled with this package in the file LICENSE.txt.

* It is also available through the world-wide-web at this URL:

* http://opensource.or...ses/afl-3.0.php

* If you did not receive a copy of the license and are unable to

* obtain it through the world-wide-web, please send an email

* to [email protected] so we can send you a copy immediately.

*

* DISCLAIMER

*

* Do not edit or add to this file if you wish to upgrade PrestaShop to newer

* versions in the future. If you wish to customize PrestaShop for your

* needs please refer to http://www.prestashop.com for more information.

*

* @author PrestaShop SA <[email protected]>

* @copyright 2007-2012 PrestaShop SA

* @version Release: $Revision: 16235 $

* @license http://opensource.or...ses/afl-3.0.php Academic Free License (AFL 3.0)

* International Registered Trademark & Property of PrestaShop SA

*}

 

<!-- Block manufacturers module -->

<div id="manufacturers_block_left" class="block blockmanufacturer">

<h4>{if $display_link_manufacturer}<a href="{$link->getPageLink('manufacturer.php')}" title="{l s='Manufacturers' mod='blockmanufacturer'}">{/if}{l s='Manufacturers' mod='blockmanufacturer'}{if $display_link_manufacturer}</a>{/if}</h4>

<div class="block_content">

{if $manufacturers}

{if $text_list}

<ul class="bullet">

{foreach from=$manufacturers item=manufacturer name=manufacturer_list}

{if $smarty.foreach.manufacturer_list.iteration <= $text_list_nb}

<li class="{if $smarty.foreach.manufacturer_list.last}last_item{elseif $smarty.foreach.manufacturer_list.first}first_item{else}item{/if}"><a>

<img alt="{$manufacturer.name|escape:'htmlall':'UTF-8'}" href="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)}" title="{l s='More about' mod='blockmanufacturer'} {$manufacturer.name}" src="{$base_dir}img/m/{$manufacturer.id_manufacturer|escape:'htmlall':'UTF-8'}.jpg" border="0" /></a></li>

 

{/if}

{/foreach}

</ul>

{/if}

{if $form_list}

<form action="{$smarty.server.SCRIPT_NAME|escape:'htmlall':'UTF-8'}" method="get">

<p>

<select id="manufacturer_list" onchange="autoUrl('manufacturer_list', '');">

<option value="0">{l s='All manufacturers' mod='blockmanufacturer'}</option>

{foreach from=$manufacturers item=manufacturer}

<option value="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)}">{$manufacturer.name|escape:'htmlall':'UTF-8'}</option>

{/foreach}

</select>

</p>

</form>

{/if}

{else}

<p>{l s='No manufacturer' mod='blockmanufacturer'}</p>

{/if}

</div>

</div>

<!-- /Block manufacturers module -->

 

A alguien se le ocurre qué puede ser??

 

Yo en tu web:

 

http://monnalisa-shop.com/manufacturer.php?id_manufacturer=1

 

Pincho en las imagenes de las "marcas", en el lateral y si me funcionan los enlaces..

Link to comment
Share on other sites

Fichero:

 

/modules/blockmanufacturer/blockmanufacturer.tpl

 

Busca esto:

 

 <li class="{if $smarty.foreach.manufacturer_list.last}last_item{elseif $smarty.foreach.manufacturer_list.first}first_item{else}item{/if}"><a>
 <img alt="{$manufacturer.name|escape:'htmlall':'UTF-8'}" href="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)}" title="{l s='More about' mod='blockmanufacturer'} {$manufacturer.name}" src="{$base_dir}img/m/{$manufacturer.id_manufacturer|escape:'htmlall':'UTF-8'}.jpg" border="0" /></a></li>

 

 

Y dejalo asi:

 


 <li class="{if $smarty.foreach.manufacturer_list.last}last_item{elseif $smarty.foreach.manufacturer_list.first}first_item{else}item{/if}">

<a href="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)}" >
 <img alt="{$manufacturer.name|escape:'htmlall':'UTF-8'}"  title="{l s='More about' mod='blockmanufacturer'} {$manufacturer.name}" src="{$base_dir}img/m/{$manufacturer.id_manufacturer|escape:'htmlall':'UTF-8'}.jpg" border="0" />
</a></li>

Link to comment
Share on other sites

Ya he provado el cambio de sintaxis. Y no lo he solucionado. ¿Es rarísimo verdad? modifique el .tpl para que no salieran los nombres; repasaré el archivo de la instalación limpia a ver si van por ahí los tiros. Pero analizando el código está correcto, no?

Link to comment
Share on other sites

jajajaja, que despistado, disculpa por darte la brasa. Era ese cambio de sintaxis lo que fallaba y no volví a forzar compilación. Ahora funciona. Muchisísimas gracias, "Don" Nadie. Curioso verdad?? Ahora cómo cambio el título del topic con solucionado delante??

 

Un placer ayudarte y servirte!

 

Si das el tema como solucionado, edita el titulo del tema, editando el primer mensaje, pulsando en editar, y después en "Usar editor completo", añadiendo la palabra "Solucionado" al titulo, esto ayudara, a mantener una mayor organización en el foro.

 

Un saludo y recuerda que estaremos en el foro, para guiarte por este mundo oscuro y tenebroso.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...