Jump to content

Edit History

DARKF3D3

DARKF3D3

7 ore fa, eviatar dice:

hi i've tried on Prestashop 1.7.5 it show me "internal error 500" can you explain me what to change in this code for 1.7.5 version please ? thank you very much !!

On PS1.7 make a backup copy of this file:
    /controllers/admin/AdminOrdersController.php

Then find these 2 rows:

Around row 1813:

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

Around row 2807:

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

On both change 45 with the size you need. In my case I set them to 160.

Last step it's to delete tmp image cache... To do this locate images/tmp/ folder and delete alla the images images with name that start with "product_mini_".

Hope this helps.

DARKF3D3

DARKF3D3

7 ore fa, eviatar dice:

hi i've tried on Prestashop 1.7.5 it show me "internal error 500" can you explain me what to change in this code for 1.7.5 version please ? thank you very much !!

On PS1.7 make a backup copy of this file:

/controllers/admin/AdminOrdersController.php

Then find these 2 rows:

Around row 1813:

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

Around row 2807:

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

On both change 45 with the size you need. In my case I set them to 160.

Last step it's to delete tmp image cache... To do this locate images/tmp/ folder and delete alla the images images with name that start with "product_mini_".

Hope this helps.

DARKF3D3

DARKF3D3

7 ore fa, eviatar dice:

hi i've tried on Prestashop 1.7.5 it show me "internal error 500" can you explain me what to change in this code for 1.7.5 version please ? thank you very much !!

On PS1.7 make a backup copy of this file:

/controllers/admin/AdminOrdersController.php

Then find this 2 row:

Around row 1813:

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

Around row 2807:

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

On both change 45 with the size you need. In my case I set them to 160.

Last step it's to delete tmp image cache... To do this locate images/tmp/ folder and delete alla the images images with name that start with "product_mini_".

Hope this helps.

DARKF3D3

DARKF3D3

7 ore fa, eviatar dice:

hi i've tried on Prestashop 1.7.5 it show me "internal error 500" can you explain me what to change in this code for 1.7.5 version please ? thank you very much !!

On PS1.7 make a backup copy of this file:

/controllers/admin/AdminOrdersController.php

Then find this 2 row:

Around 1813:

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

Around 2807:

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

On both change 45 with the size you need. In my case I set them to 160.

Last step it's to delete tmp image cache... To do this locate images/tmp/ folder and delete alla the images images with name that start with "product_mini_".

Hope this helps.

×
×
  • Create New...