Default image Products Theme Blocks

ThemeBurn SupportForumsOpenCart ThemesPavilion OpenCart ThemeDefault image Products Theme Blocks

This topic has been marked as resolved.

Is it possible to get (set) a default image in theme blocks like Bestseller Products, Latest Products, Special Products & Featured Products, if a product don’t have an image?

As it is now the Products Theme Blocks collapses if a product don’t have an image (Primarily Grid setting).

OC 2.1.x.x
Pavilion 1.2.9

April 3, 2016 at 1:33 am #46089

Hi,

Unfortunately, this is a limitation of OpenCart and there is no dedicated option in the Admin area.

However, there is a topic in the official OpenCart forums, that discuss a quick workaround:

http://forum.opencart.com/viewtopic.php?t=96622

BR,
ThemeBurn team

April 4, 2016 at 10:48 am #46111

Unfortunately it doesn’t work on OC 2.1.0.2.

Is there a template i can edit to make theme blocks like Bestseller Products show the no-image.jpg?

You can see the attachment how a theme block like Bestseller Products collapses without product image.

April 5, 2016 at 1:51 pm #46165
You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!
April 7, 2016 at 5:33 pm #46308

Thanks!

It did work on those pages, but not on the theme blocks like Bestseller.

But it did put me on the right track to what template to edit:

I edited this template:


catalog/view/theme/pavilion/template/tb/widget/_list_products.tpl

And insert this line right afterwards tb_classes:


<?php if (!$product['thumb']) $product['thumb'] = 'image/no_image.jpg'; ?>

The “NO_IMAGE_ABSOLUTE_URL” didn’t work with this template.

Now i just have to figure out have to get no_image.jpg on the product page.

April 7, 2016 at 6:08 pm #46313
You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!
April 11, 2016 at 10:23 am #46404

Thanks! That did the trick :-)

April 12, 2016 at 2:28 pm #46473

Glad we could help :)

BR,
ThemeBurn team

April 12, 2016 at 3:23 pm #46480

I’ve been following this thread…silly question:
by NO_IMAGE_ABSOLUTE_URL you mean exactly that right..
"http://whatever_address.com/image/no_image.jpg"
Were “no_image.jpg” is the name of your default to image to appear.

Cheers,

  • This reply was modified 2940 days ago by  looserfoot.
April 14, 2016 at 2:27 pm #46521

@looserfoot

Yes, that is what we mean.

BR,
ThemeBurn team

April 15, 2016 at 5:22 pm #46555
Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.