Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

How to show entry only if has an image
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: How to show entry only if has an image

How to show entry only if has an image 11 years, 5 months ago #10158

  • lphig
  • OFFLINE
  • Single Product
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
Hi there,

I would like to have an easy feature, that entry is visible in slider only if has an image - if not, don't show it in slider.

I know, that is option to show placeholder instead of photo, but above feature will be great.

Solution can base on placeholder option - if 'Show placeholder' is set to 'No' -> don't show this entry in slider.

Is anybody know where I need implement <if> tags and how to add this simple feature?

greetings
Adam

Re: How to show entry only if has an image 11 years, 5 months ago #10159

  • lphig
  • OFFLINE
  • Single Product
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
Hi again,

I found in helper_base.php in 314 line this code:

if ( count($images_path) == 0 && $params->get($prefix.'_placeholder', 1)==1){
$images_path[] = array('src'=> $params->get($prefix.'_placeholder_path', null), 'class'=>'placeholder');
}

but don't know what to write, if count=0 and placeholder=0

how to don't show entry in this case...?

regards
Adam

Re: How to show entry only if has an image 11 years, 5 months ago #10186

  • SA Thuy
Dear Adam O.

Our module will get default image if you choose Placeholder is Yes, and enter your image url in Placeholder Path (or Url). Then please go to administrator -> your Sobipro section, then edit your primary image field , please check setting 'Available in' field in right column is Both.

Thanks
  • Page:
  • 1
Time to create page: 0.28 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes