Habilitar zoom con imágenes adicionales en Magento

Muchos de vosotros os habréis dado cuenta de un problema que surge en la vista de detalle de un producto en Magento. En concreto se produce cuando un producto tiene varias imágenes y queremos usar el efecto zoom para cada una de ellas. La modificación es bastante rápida e indolora. Con este cambio aprovecharemos para quitarle el popup y dejarlo únicamente con el zoom. Fichero a modificar template/catalog/product/view/media.phtml: Cambiamos esto
<div><code> <span style="color: #007700;"><</span><span style="color: #0000bb;">a href</span><span style="color: #007700;">=</span><span style="color: #dd0000;">"#" </span><span style="color: #0000bb;">onclick</span><span style="color: #007700;">=</span><span style="color: #dd0000;">"popWin('<?php echo $this->helper('catalog/image')->init($_product, 'image') ?>', 'gallery', 'width=520,height=520,left=50,top=50,location=no,status=yes,scrollbars=yes,resizable=yes'); return false;"</span><span style="color: #007700;">></span> </code></div>
por esto otro…
<a href="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'image', $_image->getFile()); ?>" title="<?php echo $_product->getName();?>" onclick="$('image').src = this.href; return false;">
y ya lo tenemos.
Compartir:
  • Print this article!
  • Facebook
  • Twitter
  • Meneame
  • Google Bookmarks
  • del.icio.us
  • Digg


COMENTARIOS

¿casco? jeje


PARTICIPA EN LA CONVERSACIÓN

Introduce tu información personal o utiliza tu cuenta de twitter o facebook para acceder

 






SIGUENOSEN: