I noticed the images for related products don't show in a blog post. After perusing the code i found the culprit:
in line 175 of bleesblogrelatedproducts.php it states:
$product['image'] = $this->context->link->getImageLink($product['id_product'], $product['id_image'], ImageType::getFormatedName('home'));
But if 'home' is not in your "image_type" table it won't generate the right url. So I changed it to:
$product['image'] = $this->context->link->getImageLink($product['id_product'], $product['id_image'], ImageType::getFormatedName('community-theme-default_medium_default'));
and now the images show
Question
grbfst
I noticed the images for related products don't show in a blog post. After perusing the code i found the culprit:
in line 175 of bleesblogrelatedproducts.php it states:
$product['image'] = $this->context->link->getImageLink($product['id_product'], $product['id_image'], ImageType::getFormatedName('home'));
But if 'home' is not in your "image_type" table it won't generate the right url. So I changed it to:
$product['image'] = $this->context->link->getImageLink($product['id_product'], $product['id_image'], ImageType::getFormatedName('community-theme-default_medium_default'));
and now the images show
0 answers to this question
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