Jump to content

How To Put Product Images In mailalert for seller on 1.6?


Recommended Posts

sorry in 1.5.6.2 i use this code section for mailalerts.php

 

$image_url = '';
$image = Product::getCover((int)$product['id_product']);
if (sizeof($image) > 0) 
{
$link_rewrite = '';
$id_image = $product['id_product'].'-'.$image['id_image'];
$image_url = __PS_BASE_URI__."img/p/{$id_image}-small_default.jpg";
$image_url = $context->link->getMediaLink($image_url);
}
 
Now, i use 1.6.1.2
but on mail I have no image. The format is like old version image
 
....img/p/1111-11111-small_default.jpg
 
but now i Use new format image like
 
...img/p/5/0/7/507.jpg
 
 
how can I change code for new image type, thanks.
Link to comment
Share on other sites

  • 2 months later...
  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...