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
|
|
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
|
|
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.
|
|
You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!
|
|
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.
|
|
You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!
|
|
Thanks! That did the trick
|
|
Glad we could help
BR,
ThemeBurn team
|
|
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 2951 days ago by looserfoot.
|
|
@looserfoot
Yes, that is what we mean.
BR,
ThemeBurn team
|
|