0

In Product view page, image is serving from this path : link

/media/catalog/product/cache/1/image/350x350/9df78eab33525d08d6e5fb8d27136e95/b/a/ball.jpg

it's using 350x350 size

but i wanted to serve from this path : link2

media/catalog/product/cache/1/image/850x850/9df78eab33525d08d6e5fb8d27136e95/b/a/ball.jpg

I need 850x850 size.

we are using : <?php echo $dexxtz->getImageFeatured($this->helper('catalog/image')->init($_product, 'image')); ?>

Edit

when i change size values in backend as below, images are serving from path i required. but in product view page, when we hover on product image, its zooming on right side of the page as link3 but before it was working fine as link4

enter image description here

2
  • Do you want to change product image size ?
    – Arunendra
    May 23, 2016 at 9:40
  • @Arunendra i want to keep the same size, i want to images should serve from 850 * 850 path. May 23, 2016 at 9:41

1 Answer 1

2

You can just call the resize() method after the helper init:

<?php echo $dexxtz->getImageFeatured($this->helper('catalog/image')->init($_product, 'image')->resize(850)); ?>
1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.