Pablo
Pablo

Reputation: 5087

Retrieving image links in Prestashop 1.5.6 hookActionProductAdd

I need to retrieve all image links associated with a particular product in Prestashop 1.5.6 hookActionProductAdd . I dont see them in the $params parameter, how do I have to do to retrieve them in the case they arent there?

Greetings

Upvotes: 1

Views: 157

Answers (1)

PrestaShopDeveloper
PrestaShopDeveloper

Reputation: 3118

You need to call the getImages() method;

$id_lang = (int)Context::getContext()->language->id;    
$images = $params['product']->getImages($id_lang);

Upvotes: 1

Related Questions