Jump to content
thirty bees forum
  • 0

Wrong image src in beesblog


Question

Posted

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

There have been no answers to this question yet

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