Maria Gonzalez Posted June 1 Share Posted June 1 Hi, I'm developping a module which will show the title and image on configuration page. I'm getting the wrong image... here is my code to get the image given a productID 'legend' => array( 'title' => $product['name'] . ' ===> ' . $this->context->link->getImageLink($product['link_rewrite'], $product['id_product'], 'home_default'), 'image' => $this->context->link->getImageLink($product['link_rewrite'], $product['id_product'], 'home_default') ), but I'm getting other products image.... See images... "Brown bear vector graphics" which is product ID = 13, I get the URL as http://prestashop-test.com/13-home_default/brown-bear-vector-graphics.jpg but I getting the image of "Hummingbird cushion" which is product ID = 11 how can I solve that issue? Thanks Link to comment Share on other sites More sharing options...
WebDesk Solution Posted June 7 Share Posted June 7 Hello @Maria Gonzalez, We have checked your issue and as per your requirement we have added a module please install this module it shows the correct image. MyModule (1).zip Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now