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

We are here to serve :)

Our support team is currently online to solve your issues.

Our support team is currently offline

Our support heroes might not be around this hour. Please expect some delays.

Our support is available from

Monday - Friday 8am - 5:30pm GMT+7

Your time: 00:00:00
Our time: 00:00:00

Welcome, Guest

[SOLVED] display only "first" photo of product
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: [SOLVED] display only "first" photo of product

[SOLVED] display only "first" photo of product 7 years, 6 months ago #15979

Hi,

I notice that this module displays a random photo from the product photos, when there is more than one photo linked to the product.

Is it possible to display only the first photo?

Thank you very much for the support!
The topic has been locked.

Re: display only "first" photo of product 7 years, 6 months ago #16036

  • diepnt
  • OFFLINE
  • Platinum Boarder
  • Posts: 442
  • Karma: 8
Dear Johan Clompen,

This module will show images of products in categories you chose.

Each product will have only one image for representing when showing on module.

The represented image can be in the product or external place.

You can see some options for images in the screenshots part of this module here: www.smartaddons.com/joomla/extensions/commercial-extensions/item/420-sj-slider-for-joomshopping-joomla-module

If you want to display only the first image (this means only the first product), you can go to Advanced Options > Device Class Suffix to set: preset01-1 preset02-1 preset03-1 preset04-1 preset05-1

The preset01 --> 05 will be applied for devices with sizes as following:

preset01: min 1201px
preset02: (min-width: 769px) and (max-width: 1200px)
preset03: (min-width: 481px) and (max-width: 768px)
preset04: (min-width: 321px) and (max-width: 480px
preset05: max-width: 320px

Thanks!
Last Edit: 7 years, 6 months ago by diepnt.
The topic has been locked.

Re: display only "first" photo of product 7 years, 6 months ago #16060

Hi,

I'm afraid I did't explain the problem correctly.
I'll try to show it with an example:

When you go to :www.staudioservice.be/index.php/nl/ on the second module; you see after a few slides a photo of the Pioneer DJM 900 SRT (see attachment)

Attachment ps.jpg not found


This is not the first photo of this specific product but the third one.(www.staudioservice.be/index.php/nl/component/jshopping/product/view/44/300)
Is it possible to show for each product of a category only the first pic in this module ?

(sorry for my bad English)

Thanks!
Johan.
The topic has been locked.

Re: display only "first" photo of product 7 years, 6 months ago #16133

Dear Johan Clompen,

Please go to your_site\modules\mod_sj_js_slider\core\helper.php and find:

foreach ( $images as $image ){
				$value->product_thumb_image = $image->image_thumb;
				$value->product_name_image = $image->image_full;
			}

=>

$img_first = (!empty($images))?array_shift($images):'';
			$value->product_name_image= ($img_first !='')?$img_first->image_full:'';


Thanks!
The topic has been locked.

Re: display only "first" photo of product 7 years, 6 months ago #16179

Ok.
This solves my problem

Thank you for the excellent support!
The topic has been locked.
  • Page:
  • 1
Time to create page: 0.43 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.

Suggested Posts

(/)
Result not found!

Sj CarsFast Release

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
Quà Tết Cao Cấp Hộp quà tết Giỏ quà tết Túi quà tết