Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function getResizedProductImage($block, $product, $image, $width, $height)
- {
- $imageHelper = $block->helper('catalog/image');
- $imageFile = $image->getPath();
- $imageHelper->init($product, 'small_image', $imageFile);
- $imageHelper = $imageHelper->resize($width, $height);
- return $imageHelper;
- }
- $imageHelper->init($product,'small_mage');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement