[Skip to main content](#vessel-content)

#   Problem with display image

##

- **[fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")**
- [![fdesanto's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4029.jpg)](/forum/user/4029-fdesanto "View fdesanto's Profile") Topic Author
- [ Offline](/forum/user/4029-fdesanto)

Less More

- Posts: 25
- Thank you received: 1
-
-

14 years 1 month ago [\#69764](#69764) by [fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")  *[Problem with display image](/forum/3-bug-report/69764-problem-with-display-image#69764 "Hi  1. Problem image in Table Listing Layout+ in product table list the images size are equal to those of the product page(not icon size)  2. Problem image in Compare Layout in compare layout you can not see the images. example the icon image size is set to 50x50 pixel but the src image is /media/com&#95;hikashop/upload/thumbnail&#95;49x50/xxxx.jpg or /media/com&#95;hikashop/upload/thumbnail&#95;47x50/xxxx.jpg, the correct src image is /media/com&#95;hikashop/upload/thumbnail&#95;50x50/xxxx.jpg  Thanks")* was created by *[fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")*

Hi

1. Problem image in Table Listing Layout+
in product table list the images size are equal to those of the product page(not icon size)

2. Problem image in Compare Layout
in compare layout you can not see the images.
example the icon image size is set to 50x50 pixel but the src image is /media/com_hikashop/upload/thumbnail_**49**x50/xxxx.jpg or /media/com_hikashop/upload/thumbnail_**47**x50/xxxx.jpg, the correct src image is /media/com_hikashop/upload/thumbnail_**50**x50/xxxx.jpg

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82OTc2NC1wcm9ibGVtLXdpdGgtZGlzcGxheS1pbWFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

14 years 1 month ago [\#69799](#69799) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Re: Problem with display image](/forum/3-bug-report/69764-problem-with-display-image#69799 "Hi  1. Problem image in Table Listing Layout+ in product table list the images size are equal to those of the product page(not icon size)  2. Problem image in Compare Layout in compare layout you can not see the images. example the icon image size is set to 50x50 pixel but the src image is /media/com&#95;hikashop/upload/thumbnail&#95;49x50/xxxx.jpg or /media/com&#95;hikashop/upload/thumbnail&#95;47x50/xxxx.jpg, the correct src image is /media/com&#95;hikashop/upload/thumbnail&#95;50x50/xxxx.jpg  Thanks")*

Hi,

1. You'll just have to change the "Image width/height" options through you listing configuration page

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82OTc2NC1wcm9ibGVtLXdpdGgtZGlzcGxheS1pbWFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")**
- [![fdesanto's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4029.jpg)](/forum/user/4029-fdesanto "View fdesanto's Profile") Topic Author
- [ Offline](/forum/user/4029-fdesanto)

Less More

- Posts: 25
- Thank you received: 1
-
-

14 years 1 month ago [\#69800](#69800) by [fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")  Replied by *[fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")* on topic *[Re: Problem with display image](/forum/3-bug-report/69764-problem-with-display-image#69800 "Hi  1. Problem image in Table Listing Layout+ in product table list the images size are equal to those of the product page(not icon size)  2. Problem image in Compare Layout in compare layout you can not see the images. example the icon image size is set to 50x50 pixel but the src image is /media/com&#95;hikashop/upload/thumbnail&#95;49x50/xxxx.jpg or /media/com&#95;hikashop/upload/thumbnail&#95;47x50/xxxx.jpg, the correct src image is /media/com&#95;hikashop/upload/thumbnail&#95;50x50/xxxx.jpg  Thanks")*

no option for table layout

- [ ![hika.png](/forum/attachment/6243) ](/forum/attachment/6243 "hika.png") [ ](/forum/attachment/6243?download=1 "hika.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82OTc2NC1wcm9ibGVtLXdpdGgtZGlzcGxheS1pbWFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

14 years 1 month ago [\#69803](#69803) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Re: Problem with display image](/forum/3-bug-report/69764-problem-with-display-image#69803 "Hi  1. Problem image in Table Listing Layout+ in product table list the images size are equal to those of the product page(not icon size)  2. Problem image in Compare Layout in compare layout you can not see the images. example the icon image size is set to 50x50 pixel but the src image is /media/com&#95;hikashop/upload/thumbnail&#95;49x50/xxxx.jpg or /media/com&#95;hikashop/upload/thumbnail&#95;47x50/xxxx.jpg, the correct src image is /media/com&#95;hikashop/upload/thumbnail&#95;50x50/xxxx.jpg  Thanks")*

Ok, then you should just :
- Set your "Type of layout" to **DIV**
- Set your "Image width/height"
- **SAVE**
- Set your "Type of layout" to table again

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82OTc2NC1wcm9ibGVtLXdpdGgtZGlzcGxheS1pbWFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")**
- [![fdesanto's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4029.jpg)](/forum/user/4029-fdesanto "View fdesanto's Profile") Topic Author
- [ Offline](/forum/user/4029-fdesanto)

Less More

- Posts: 25
- Thank you received: 1
-
-

14 years 1 month ago [\#69804](#69804) by [fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")  Replied by *[fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")* on topic *[Re: Problem with display image](/forum/3-bug-report/69764-problem-with-display-image#69804 "Hi  1. Problem image in Table Listing Layout+ in product table list the images size are equal to those of the product page(not icon size)  2. Problem image in Compare Layout in compare layout you can not see the images. example the icon image size is set to 50x50 pixel but the src image is /media/com&#95;hikashop/upload/thumbnail&#95;49x50/xxxx.jpg or /media/com&#95;hikashop/upload/thumbnail&#95;47x50/xxxx.jpg, the correct src image is /media/com&#95;hikashop/upload/thumbnail&#95;50x50/xxxx.jpg  Thanks")*

I tried but does not work

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82OTc2NC1wcm9ibGVtLXdpdGgtZGlzcGxheS1pbWFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

14 years 1 month ago [\#69936](#69936) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Problem with display image](/forum/3-bug-report/69764-problem-with-display-image#69936 "Hi  1. Problem image in Table Listing Layout+ in product table list the images size are equal to those of the product page(not icon size)  2. Problem image in Compare Layout in compare layout you can not see the images. example the icon image size is set to 50x50 pixel but the src image is /media/com&#95;hikashop/upload/thumbnail&#95;49x50/xxxx.jpg or /media/com&#95;hikashop/upload/thumbnail&#95;47x50/xxxx.jpg, the correct src image is /media/com&#95;hikashop/upload/thumbnail&#95;50x50/xxxx.jpg  Thanks")*

Hi,

1. For the product page, it's the "product page image width/height" options of the Files/Images tab of the configuration which is used. So you should just set what you want there. If the fields are empty, it indeed uses the same same as the product listing thumbnails which can be changed with the option "thumbnails width/heitght" of that same screen.

2. Please change the line:
&lt;?php echo $this-&gt;image-&gt;display($image-&gt;file_path,true,$image-&gt;file_name,'id="hikashop_main_image" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle"','id="hikashop_main_image_link"' ); ?&gt;

to:
&lt;?php echo $this-&gt;image-&gt;display($image-&gt;file_path,true,$image-&gt;file_name,'id="hikashop_main_image" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle"','id="hikashop_main_image_link"' , $config-&gt;get('thumbnail_x',100), $config-&gt;get('thumbnail_y',100)); ?&gt;

in the file "compare" via the menu Display&gt;Views and that will display the images properly on the comparison page.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82OTc2NC1wcm9ibGVtLXdpdGgtZGlzcGxheS1pbWFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")**
- [![fdesanto's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4029.jpg)](/forum/user/4029-fdesanto "View fdesanto's Profile") Topic Author
- [ Offline](/forum/user/4029-fdesanto)

Less More

- Posts: 25
- Thank you received: 1
-
-

14 years 1 month ago -  14 years 1 month ago [\#69944](#69944) by [fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")  Replied by *[fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")* on topic *[Re: Problem with display image](/forum/3-bug-report/69764-problem-with-display-image#69944 "Hi  1. Problem image in Table Listing Layout+ in product table list the images size are equal to those of the product page(not icon size)  2. Problem image in Compare Layout in compare layout you can not see the images. example the icon image size is set to 50x50 pixel but the src image is /media/com&#95;hikashop/upload/thumbnail&#95;49x50/xxxx.jpg or /media/com&#95;hikashop/upload/thumbnail&#95;47x50/xxxx.jpg, the correct src image is /media/com&#95;hikashop/upload/thumbnail&#95;50x50/xxxx.jpg  Thanks")*

1.The fields are not empty!
I set the image size to 300x300 for product page, and 50x50 for thumbnail.
But the thumbnail in product table listing layout is 300x300.

2. PHP Fatal error: Call to a member function get() on a non-object in /home/newdigilab/public_html/templates/web/html/com_hikashop/product/compare.php on line 82

- [ ![Schermata&#95;2012-10-13&#95;alle&#95;18&#95;36&#95;38.png](/forum/attachment/6265) ](/forum/attachment/6265 "...e&#95;18&#95;36&#95;38.png") [ ](/forum/attachment/6265?download=1 "...e&#95;18&#95;36&#95;38.png")

Last edit: 14 years 1 month ago by [fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82OTc2NC1wcm9ibGVtLXdpdGgtZGlzcGxheS1pbWFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

14 years 4 weeks ago [\#70016](#70016) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Problem with display image](/forum/3-bug-report/69764-problem-with-display-image#70016 "Hi  1. Problem image in Table Listing Layout+ in product table list the images size are equal to those of the product page(not icon size)  2. Problem image in Compare Layout in compare layout you can not see the images. example the icon image size is set to 50x50 pixel but the src image is /media/com&#95;hikashop/upload/thumbnail&#95;49x50/xxxx.jpg or /media/com&#95;hikashop/upload/thumbnail&#95;47x50/xxxx.jpg, the correct src image is /media/com&#95;hikashop/upload/thumbnail&#95;50x50/xxxx.jpg  Thanks")*

1. Then, it means that in the hikashop options of your listing menu, you have set the images width/height to 300*300. If you leave them empty, it will take the size of 50*50 that you have in the configuration.

2. My bad, you should replace the code Code:

&lt;?php echo $this-&gt;image-&gt;display($image-&gt;file_path,true,$image-&gt;file_name,'id="hikashop_main_image" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle"','id="hikashop_main_image_link"' ); ?&gt;

by:
Code:

&lt;?php $config =&amp; hikashop_config(); echo $this-&gt;image-&gt;display($image-&gt;file_path,true,$image-&gt;file_name,'id="hikashop_main_image" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle"','id="hikashop_main_image_link"' , $config-&gt;get('thumbnail_x',100), $config-&gt;get('thumbnail_y',100)); ?&gt;

in the file "compare" via the menu Display&gt;Views

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82OTc2NC1wcm9ibGVtLXdpdGgtZGlzcGxheS1pbWFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")**
- [![fdesanto's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4029.jpg)](/forum/user/4029-fdesanto "View fdesanto's Profile") Topic Author
- [ Offline](/forum/user/4029-fdesanto)

Less More

- Posts: 25
- Thank you received: 1
-
-

14 years 4 weeks ago [\#70060](#70060) by [fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")  Replied by *[fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")* on topic *[Re: Problem with display image](/forum/3-bug-report/69764-problem-with-display-image#70060 "Hi  1. Problem image in Table Listing Layout+ in product table list the images size are equal to those of the product page(not icon size)  2. Problem image in Compare Layout in compare layout you can not see the images. example the icon image size is set to 50x50 pixel but the src image is /media/com&#95;hikashop/upload/thumbnail&#95;49x50/xxxx.jpg or /media/com&#95;hikashop/upload/thumbnail&#95;47x50/xxxx.jpg, the correct src image is /media/com&#95;hikashop/upload/thumbnail&#95;50x50/xxxx.jpg  Thanks")*

1. My configuration are correct the problem is in file listing_table.php, I followed also the instructions of Mohamed;
now if is set product page image size on configuration, the thumbnail size is ignored. Code:

&lt;?php foreach($this-&gt;rows as $row){ $this-&gt;row =&amp; $row; $height = $this-&gt;config-&gt;get('product_image_y'); $width = $this-&gt;config-&gt;get('product_image_x'); if(empty($height)) $height=$this-&gt;config-&gt;get('thumbnail_y'); if(empty($width)) $width=$this-&gt;config-&gt;get('thumbnail_x'); $divWidth=$width; $divHeight=$height; $this-&gt;image-&gt;checkSize($divWidth,$divHeight,$row); $link = hikashop_completeLink('product&amp;task=show&amp;cid='.$this-&gt;row-&gt;product_id.'&amp;name='.$this-&gt;row-&gt;alias.$this-&gt;itemid.$this-&gt;category_pathway); ?&gt;

should be: Code:

&lt;?php foreach($this-&gt;rows as $row){ $this-&gt;row =&amp; $row; $height = $this-&gt;config-&gt;get('thumbnail_y'); $width = $this-&gt;config-&gt;get('thumbnail_x'); if(empty($height)) $height=$this-&gt;config-&gt;get('product_image_y'); if(empty($width)) $width=$this-&gt;config-&gt;get('product_image_x'); $divWidth=$width; $divHeight=$height; $this-&gt;image-&gt;checkSize($divWidth,$divHeight,$row); $link = hikashop_completeLink('product&amp;task=show&amp;cid='.$this-&gt;row-&gt;product_id.'&amp;name='.$this-&gt;row-&gt;alias.$this-&gt;itemid.$this-&gt;category_pathway); ?&gt;

2. Ok, now work

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82OTc2NC1wcm9ibGVtLXdpdGgtZGlzcGxheS1pbWFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

14 years 4 weeks ago [\#70180](#70180) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Problem with display image](/forum/3-bug-report/69764-problem-with-display-image#70180 "Hi  1. Problem image in Table Listing Layout+ in product table list the images size are equal to those of the product page(not icon size)  2. Problem image in Compare Layout in compare layout you can not see the images. example the icon image size is set to 50x50 pixel but the src image is /media/com&#95;hikashop/upload/thumbnail&#95;49x50/xxxx.jpg or /media/com&#95;hikashop/upload/thumbnail&#95;47x50/xxxx.jpg, the correct src image is /media/com&#95;hikashop/upload/thumbnail&#95;50x50/xxxx.jpg  Thanks")*

1. It should be like that: Code:

&lt;?php foreach($this-&gt;rows as $row){ $this-&gt;row =&amp; $row; $height = $this-&gt;params-&gt;get('image_height'); $width = $this-&gt;params-&gt;get('image_width'); if(empty($height)) $height=$this-&gt;config-&gt;get('thumbnail_y'); if(empty($width)) $width=$this-&gt;config-&gt;get('thumbnail_x'); $divWidth=$width; $divHeight=$height; $this-&gt;image-&gt;checkSize($divWidth,$divHeight,$row); $link = hikashop_completeLink('product&amp;task=show&amp;cid='.$this-&gt;row-&gt;product_id.'&amp;name='.$this-&gt;row-&gt;alias.$this-&gt;itemid.$this-&gt;category_pathway); ?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82OTc2NC1wcm9ibGVtLXdpdGgtZGlzcGxheS1pbWFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.066 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
