Jump to content

Prestashop get product cover image


Edge_jr

Recommended Posts

try below code,

$id_product = Tools::getValue('id_product');
$product = new Product($id_product);
$product_cover_id = Product::getCover($id_product)['id_image'];
$link_obj = new Link();
$product_cover = $link_obj->getImageLink($product->link_rewrite[1], $product_cover_id);

Link to comment
Share on other sites

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...