Otro problema con las imágenes?

  • Posts: 86
  • Thank you received: 2
11 years 7 months ago #67149

Acabo de instalar Hikashop Business 1.6.0 (descargado hoy de vuestra Web) y tengo un problema con las miniaturas. Tengo configurada la vsita de categorías en modo "tabla" y en este modo no se muestran las miniaturas. Viendo las propiedades de las imágenes que no se muestran estas hacen referencia a la ruta "/media/com_hikashop/upload/thumbnail_100x66/image004.jpg" y este directorio no existe o no fue creado.

Ahora bien, en el checkout la miniatura aparece porque hace referencia a la ruta "media/com_hikashop/upload/thumbnail_100x100/image004.jpg" y este directorio (100x100) sí esta creado.

La miniatura también aparece cuando configuro la vista de categoría como "Bloques" ya que temabién la ruta señalada es "media/com_hikashop/upload/thumbnail_100x100/image004.jpg"

El problema lo tengo solamente con la vista de categoría en modo "Tabla". Por algun motivo el script no está generando la carpeta correspondiente o está solicitando la imagen en un directorio erróneo.

Yo necesito mostrar los productos en modo "Tabla".

Hace unos días tuve elmismo problema al cargar la última versión en un sitio existente, pero en esa oportunidad el problema lo tenía en el checkout que no mostraba la miniatura, el cual se solucionó descargando e instalando nuevamente el componente Hikashop 1.6.0. Ahora lo tengo en la vista de categorías en modo "Tabla" a pesar de que acabo de instalar la última verdsión de Hikashop.

Muchas gracias y esero su respuesta.

Please Log in or Create an account to join the conversation.

  • Posts: 81563
  • Thank you received: 13071
  • MODERATOR
11 years 7 months ago #67294

Hi,

From what I understand, the problem comes from the fact that you had edited one of the view files of HikaShop via the menu Display->Views before updating to the newest version of HikaShop.
Because of that, you didn't get the modifications required for the new thumbnails display system.
I would recommend to check the different files of the view "product" via the menu Display->Views and if some have been edited, to restore the original file and that should solve the problem.

Please Log in or Create an account to join the conversation.

  • Posts: 86
  • Thank you received: 2
11 years 7 months ago #67328

Gracias Nicolas por su respuesta.

Vovlí a restarurar el archivo listing_table.php a la versión original que trae Hikashop 1.6.0 y la miniatura aparece, pero no respeta el tamaño configurado en configuracion >> pantalla >> Archivos/Imágenes. A pesar de configurar las medidas de las miniaturas a 100x100 píxeles y las medidas de las imágenes de los productos en 250x250 píxeles, en la vista de categoría en modo tabla la miniatura se muestra del mismo tamaño que la foto del producto (250x250 px).

El código referente a la imagen en modo Tabla en el archivo listing_table.php es el siguiente:

<div style="height:<?php echo $divHeight;?>px;text-align:center;clear:both;" class="hikashop_product_image">
                <div style="position:relative;text-align:center;clear:both;width:<?php echo $divWidth;?>px;margin: auto;" class="hikashop_product_image_subdiv">
                <?php if($this->params->get('link_to_product_page',1)){ ?>
                  <a href="<?php echo $link;?>" title="<?php echo $this->escape($this->row->product_name); ?>">
                <?php }
                  echo $this->image->display(@$this->row->file_path,false,$this->escape($this->row->file_name),"","", $width ,$height);
                  $main_thumb_x = $this->image->main_thumbnail_x;
                  $main_thumb_y = $this->image->main_thumbnail_y;
                  $horizontal = '0';
                  $vertical = -'10';
                  $this->classbadge->placeBadges($this->image, $this->row->badges, $vertical, $horizontal);
                  $this->image->main_thumbnail_x = $main_thumb_x;
                  $this->image->main_thumbnail_y = $main_thumb_y;
                if($this->params->get('link_to_product_page',1)){ ?>
                  </a>
                <?php } ?>
                </div>
              </div>

Y el código que aparece para la imagen en la vista "Bloques" es:
<div style="height:<?php echo $this->image->main_thumbnail_y;?>px;text-align:center;clear:both;" class="hikashop_product_image">
  <div style="position:relative;text-align:center;clear:both;width:<?php echo $this->image->main_thumbnail_x;?>px;margin: auto;" class="hikashop_product_image_subdiv">
  <?php if($this->params->get('link_to_product_page',1)){ ?>
    <a href="<?php echo $link;?>" title="<?php echo $this->escape($this->row->product_name); ?>">
  <?php }
    echo $this->image->display(@$this->row->file_path,false,$this->escape($this->row->file_name), '' , '' , $this->image->main_thumbnail_x,  $this->image->main_thumbnail_y);
    $main_thumb_x = $this->image->main_thumbnail_x;
    $main_thumb_y = $this->image->main_thumbnail_y;
    $horizontal = '0';
    $vertical = '0';
    $this->classbadge->placeBadges($this->image, $this->row->badges, $vertical, $horizontal);
    $this->image->main_thumbnail_x = $main_thumb_x;
    $this->image->main_thumbnail_y = $main_thumb_y;
  if($this->params->get('link_to_product_page',1)){ ?>
    </a>
  <?php } ?>
  </div>
</div>

Lo que hice fue reemplazar esto último en el archivo listing_table.php y funcionó bien.

Desearía me indicara si es correcto esto que realicé.

Por otro lado, creo que es un bug serio el hecho de que se muestre en modo "Tabla" la imagen del producto del mismo tamaño que se muestra en la vista de producto.

Muchas gracias y espero su respuesta.

Please Log in or Create an account to join the conversation.

  • Posts: 81563
  • Thank you received: 13071
  • MODERATOR
11 years 7 months ago #67353

Could you try to replace the lines:

$height = $this->config->get('product_image_y');
$width = $this->config->get('product_image_x');

to:
$height = $this->params->get('image_height');
$width = $this->params->get('image_width');

in that view file and try again ?

Please Log in or Create an account to join the conversation.

  • Posts: 86
  • Thank you received: 2
11 years 7 months ago #67364

Nicolas: ¿En que archivo están esas líneas de código?

Yo estoy editando el archivo listing_table.php y no encuentro esas líneas que me nombra.

Muchas gracias por su ayuda.

Please Log in or Create an account to join the conversation.

  • Posts: 81563
  • Thank you received: 13071
  • MODERATOR
11 years 7 months ago #67463

Yes, that's in the listing_table.php file.

It's just a few lines before the lines you posted in your second post.

Please Log in or Create an account to join the conversation.

  • Posts: 86
  • Thank you received: 2
11 years 7 months ago #67465

Nicolas: Su opción también funciona! Muchas gracias!

Una última consulta: ¿Hay alguna posibilidad de que Usted corrija esto para que cuando instalemos de nuevo Hikashop 1.6.0 en otro sitio nuevo no tengamos que corregir este código?

Espero su respuesta.

Muchas gracias desde ya por toda su ayuda.

Please Log in or Create an account to join the conversation.

  • Posts: 81563
  • Thank you received: 13071
  • MODERATOR
11 years 7 months ago #67673

That has been changed on our end and will be in next release of HikaShop.

Please Log in or Create an account to join the conversation.

Time to create page: 0.066 seconds
Powered by Kunena Forum