Jump to content

Edit History

Pixefora D

Pixefora D

Disculpa, te dije mal.

Vete a AdminOrdersController.php (haz override) y en el método getProducts, donde:

$product['image_tag'] = ImageManager::thumbnail(_PS_IMG_DIR_.'p/'.$product['image']->getExistingImgPath().'.jpg', $name, 45, 'jpg');

cámbialo por esto:

$image = Image::getCover($product['product_id']);
$pr = new Product($product['product_id']);
$link = new Link;
$imagePath = $link->getImageLink($pr->link_rewrite[Context::getContext()->language->id], $image['id_image'], 'small_default');
$product['image_tag'] = "<img src='https://".$imagePath."' />";

 

Lo he adaptado a 1.7 sobre la marcha, pero creo que está bien.

Pixefora D

Pixefora D

Disculpa, te dije mal.

Vete a AdminOrdersController.php (haz override) y en el método getProducts, donde:

$product['image_tag'] = ImageManager::thumbnail(_PS_IMG_DIR_.'p/'.$product['image']->getExistingImgPath().'.jpg', $name, 45, 'jpg');

cámbialo por esto:

$image = Image::getCover($product['product_id']);
$pr = new Product($product['product_id']);
$link = new Link;
$product['image_tag'] = $link->getImageLink($pr->link_rewrite[Context::getContext()->language->id], $image['id_image'], 'small_default');

 

Lo he adaptado a 1.7 sobre la marcha, pero creo que está bien.

×
×
  • Create New...