Jump to content

How to change image path from medium default to say home default


indus

Recommended Posts

Hi

 

Iam using prestashop .1.6, and in the fancy add to cart pop up window, it displays cross-selling products also. But the images are blurry, its pulling the images from medium-default and  i wish to change it to home-default, where is the relevant code for this.

 

 

Thanks in advance. I use a  custom theme.

Link to comment
Share on other sites

OrderDetail::getCrossSells:

 

$orderProduct['image'] = Context::getContext()->link->getImageLink($orderProduct['link_rewrite'], (int)$orderProduct['product_id'].'-'.(int)$orderProduct['id_image'], ImageType::getFormatedName('medium'));

 

change it to home :) line 704 on presta 1.6.0.5

Link to comment
Share on other sites

OrderDetail::getCrossSells:

 

$orderProduct['image'] = Context::getContext()->link->getImageLink($orderProduct['link_rewrite'], (int)$orderProduct['product_id'].'-'.(int)$orderProduct['id_image'], ImageType::getFormatedName('medium'));

 

change it to home :) line 704 on presta 1.6.0.5

 

THanks, but which file is this code in?

Link to comment
Share on other sites

×
×
  • Create New...