How to display all images of product in magento
How to display all images of product in magento
1 2 3 4 5 6 7 8 9 10 11 | <?php $_images = Mage::getModel('catalog/product')->load($_product->getId())->getMediaGalleryImages(); ?> <?php if($_images){?> <?php $i=0; foreach($_images as $_image){ $i++;?> <a href="#"> <img src="<?=$this->helper('catalog/image')->init($_product, 'image', $_image->getFile()); ?>"alt="<?=$this->htmlEscape($_image->getLabel());?>" title="<?=$this->htmlEscape($_image->getLabel());?>" /> </a> <?php } ?> <?php } ?> |
Magento 1.9 - TypeError: this.toggleElements.toggleSingle is not a function
Magento 1.9 - TypeError: this.toggleElements.toggleSingle is not a function
Solution
The solution is simple, Just copy the below code.
match: function () { if(this.toggleElements.length > 0){ this.toggleElements.toggleSingle(); } }, unmatch: function () { if(this.toggleElements.length > 0){ this.toggleElements.toggleSingle({destruct: true}); } }
Subscribe to:
Posts (Atom)