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

#   Insert product image in product layout

##

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

13 years 5 months ago [\#102690](#102690) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  *[Insert product image in product layout](/forum/2-general-talk-about-hikashop/81473-insert-product-image-in-product-layout#102690 "This is very simple:  What code to insert a product image in the product layout?  My image names they all follow this pattern:  (product&#95;code)-01 (product&#95;code)-03 (product&#95;code)-03  I want to insert in a certain place image -01 with my own size not depending on the HikaShop parameters for iamge and thumbnails.")* was created by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")*

This is very simple:

What code to insert a product image in the product layout?

My image names they all follow this pattern:

(product_code)-01
(product_code)-03
(product_code)-03

I want to insert in a certain place image -01 with my own size not depending on the HikaShop parameters for iamge and thumbnails.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgxNDczLWluc2VydC1wcm9kdWN0LWltYWdlLWluLXByb2R1Y3QtbGF5b3V0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 5 months ago -  13 years 5 months ago [\#102707](#102707) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Insert product image in product layout](/forum/2-general-talk-about-hikashop/81473-insert-product-image-in-product-layout#102707 "This is very simple:  What code to insert a product image in the product layout?  My image names they all follow this pattern:  (product&#95;code)-01 (product&#95;code)-03 (product&#95;code)-03  I want to insert in a certain place image -01 with my own size not depending on the HikaShop parameters for iamge and thumbnails.")*

Hi,

You just have to edit the view "product / show_default" from the Display &gt; Views menu, and add the html tag to display the image.

Something like: Code:

&lt;img src="&lt;?php echo 'imagePath/'.$this-&gt;element-&gt;product_code.'-01.png';?&gt;" alt="&lt;?php echo $this-&gt;element-&gt;product_code.'-01'; ?&gt;" style="" /&gt; &lt;img src="&lt;?php echo 'imagePath/'.$this-&gt;element-&gt;product_code.'-02.png';?&gt;" alt="&lt;?php echo $this-&gt;element-&gt;product_code.'-02'; ?&gt;" style="" /&gt; &lt;img src="&lt;?php echo 'imagePath/'.$this-&gt;element-&gt;product_code.'-03.png';?&gt;" alt="&lt;?php echo $this-&gt;element-&gt;product_code.'-03'; ?&gt;" style="" /&gt;

Last edit: 13 years 5 months ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile").

The following user(s) said Thank You: [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgxNDczLWluc2VydC1wcm9kdWN0LWltYWdlLWluLXByb2R1Y3QtbGF5b3V0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

13 years 5 months ago [\#102734](#102734) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  Replied by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")* on topic *[Insert product image in product layout](/forum/2-general-talk-about-hikashop/81473-insert-product-image-in-product-layout#102734 "This is very simple:  What code to insert a product image in the product layout?  My image names they all follow this pattern:  (product&#95;code)-01 (product&#95;code)-03 (product&#95;code)-03  I want to insert in a certain place image -01 with my own size not depending on the HikaShop parameters for iamge and thumbnails.")*

I mussed something important!

How to check for the availability fo the picture?

For some products I have 10 pictures, for others 5, so I need the check code for each picture before publishing.

Could you be so kind to help me with this?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgxNDczLWluc2VydC1wcm9kdWN0LWltYWdlLWluLXByb2R1Y3QtbGF5b3V0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 5 months ago [\#102749](#102749) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Insert product image in product layout](/forum/2-general-talk-about-hikashop/81473-insert-product-image-in-product-layout#102749 "This is very simple:  What code to insert a product image in the product layout?  My image names they all follow this pattern:  (product&#95;code)-01 (product&#95;code)-03 (product&#95;code)-03  I want to insert in a certain place image -01 with my own size not depending on the HikaShop parameters for iamge and thumbnails.")*

Hi,

You can use JFile::exists function, like: Code:

&lt;?php for($i = 1; $i &lt;= 10; $i++) { $j = ($i &lt; 10)?'0':'' . $i; if(JFile::exists(JPATH_ROOT . '/imagePath/'.$this-&gt;element-&gt;product_code.'-'.$j.'.png')) { echo '&lt;img src="imagePath/'.$this-&gt;element-&gt;product_code.'-'.$j.'.png" alt="" /&gt;'; } } ?&gt;

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgxNDczLWluc2VydC1wcm9kdWN0LWltYWdlLWluLXByb2R1Y3QtbGF5b3V0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

13 years 5 months ago [\#103274](#103274) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  Replied by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")* on topic *[Insert product image in product layout](/forum/2-general-talk-about-hikashop/81473-insert-product-image-in-product-layout#103274 "This is very simple:  What code to insert a product image in the product layout?  My image names they all follow this pattern:  (product&#95;code)-01 (product&#95;code)-03 (product&#95;code)-03  I want to insert in a certain place image -01 with my own size not depending on the HikaShop parameters for iamge and thumbnails.")*

Hi,

all this help was successful so big thanks for it!

But now a new problem comes with this.

My client is in love with HikaMarket drag and drop feature and is changing the sequence of pictures so not always the product_name-01 picture is the first one to be shown. This means that I need a way to get the names of the pictures not by my logical ordering system but by the way they are ordered in hikamarket (or whatever in admin).

I mean, this:

&lt;img src="&lt;?php echo 'imagePath/'.$this-&gt;element-&gt;product_code.'-01.png';?&gt;

should be somehow converted to this:

&lt;img src="&lt;?php echo 'imagePath/'.$this-&gt;element-&gt; (name of picture by its order of appearance number) '; ?&gt;

or better explained

&lt;img src="&lt;?php echo first_picture;?&gt;
&lt;img src="&lt;?php echo second_picture;?&gt;
&lt;img src="&lt;?php echo third_picture;?&gt;
...

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgxNDczLWluc2VydC1wcm9kdWN0LWltYWdlLWluLXByb2R1Y3QtbGF5b3V0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 5 months ago [\#103289](#103289) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Insert product image in product layout](/forum/2-general-talk-about-hikashop/81473-insert-product-image-in-product-layout#103289 "This is very simple:  What code to insert a product image in the product layout?  My image names they all follow this pattern:  (product&#95;code)-01 (product&#95;code)-03 (product&#95;code)-03  I want to insert in a certain place image -01 with my own size not depending on the HikaShop parameters for iamge and thumbnails.")*

Hi,

So you do not want at all display some pre-defined images but you want to display the product images, like the view "show_block_img" does, right ?

In the product page, you can access to "$this-&gt;element-&gt;images" array which contains all images in the right order.
You can take a look at the view "product &#124; show_block_img" and see own the thumbnails images are displayed at the end of the view.
Using the help image is not an obligation, you can just use the objects "$image" to get the file_path information (and file_name).

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgxNDczLWluc2VydC1wcm9kdWN0LWltYWdlLWluLXByb2R1Y3QtbGF5b3V0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

13 years 5 months ago [\#103291](#103291) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  Replied by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")* on topic *[Insert product image in product layout](/forum/2-general-talk-about-hikashop/81473-insert-product-image-in-product-layout#103291 "This is very simple:  What code to insert a product image in the product layout?  My image names they all follow this pattern:  (product&#95;code)-01 (product&#95;code)-03 (product&#95;code)-03  I want to insert in a certain place image -01 with my own size not depending on the HikaShop parameters for iamge and thumbnails.")*

Thanks! I'll take a look...

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgxNDczLWluc2VydC1wcm9kdWN0LWltYWdlLWluLXByb2R1Y3QtbGF5b3V0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

13 years 5 months ago -  13 years 5 months ago [\#103575](#103575) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  Replied by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")* on topic *[Insert product image in product layout](/forum/2-general-talk-about-hikashop/81473-insert-product-image-in-product-layout#103575 "This is very simple:  What code to insert a product image in the product layout?  My image names they all follow this pattern:  (product&#95;code)-01 (product&#95;code)-03 (product&#95;code)-03  I want to insert in a certain place image -01 with my own size not depending on the HikaShop parameters for iamge and thumbnails.")*

WITHOUT THE PROPER PHP KNOWLEDGE and the lack of understanding of function display() I managed to put this code in my site:
Code:

&lt;?php if (!empty ($this-&gt;element-&gt;images) &amp;&amp; count($this-&gt;element-&gt;images) &gt; 1) { foreach ($this-&gt;element-&gt;images as $image) { $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');?&gt; &lt;td&gt; &lt;?php echo '&lt;img width="110px" src="'.$this-&gt;image-&gt;display($image-&gt;file_path, 'hikashop_main_image', '', '','', $width, $height) ?&gt; &lt;/td&gt; &lt;?php } } ?&gt;

It gives me want I want, but something extra I don't want, void thumbnails pointing to this URL

http://localhost:8888/activacions/%3Ca%20title=

[ ![Captura&#95;de&#95;pantalla&#95;2013-05-12&#95;a&#95;les&#95;21&#95;53&#95;33.png](/forum/attachment/10100) ](/forum/attachment/10100 "...s&#95;21&#95;53&#95;33.png")

Could somebody please help me tune-up this small piece of code, I'm pretty sure it must be some very stupid flaw in my coding.

Thank you

- [ ![Captura&#95;de&#95;pantalla&#95;2013-05-12&#95;a&#95;les&#95;21&#95;53&#95;33.png](/forum/attachment/10100) ](/forum/attachment/10100 "...s&#95;21&#95;53&#95;33.png") [ ](/forum/attachment/10100?download=1 "...s&#95;21&#95;53&#95;33.png")

Last edit: 13 years 5 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: Add [code]

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgxNDczLWluc2VydC1wcm9kdWN0LWltYWdlLWluLXByb2R1Y3QtbGF5b3V0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 5 months ago [\#103578](#103578) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Insert product image in product layout](/forum/2-general-talk-about-hikashop/81473-insert-product-image-in-product-layout#103578 "This is very simple:  What code to insert a product image in the product layout?  My image names they all follow this pattern:  (product&#95;code)-01 (product&#95;code)-03 (product&#95;code)-03  I want to insert in a certain place image -01 with my own size not depending on the HikaShop parameters for iamge and thumbnails.")*

Hi,

Using the function "$this-&gt;image-&gt;display()" will display the image with all HikaShop features (thumbnail + popup).
You are mixing two different and incompatibles way to display an image. So it could not work.

So, you can display images by creating the "&lt;img/&gt;" tag yourself or you can use the HikaShop helper image. But not both in the same time.

The fast fix is to replace: Code:

echo '&lt;img width="110px" src="'.$this-&gt;image-&gt;display($image-&gt;file_path, 'hikashop_main_image', '', '','', $width, $height)

By this: Code:

echo $this-&gt;image-&gt;display($image-&gt;file_path, 'hikashop_main_image', '', '','', $width, $height);

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgxNDczLWluc2VydC1wcm9kdWN0LWltYWdlLWluLXByb2R1Y3QtbGF5b3V0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

13 years 5 months ago [\#103580](#103580) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  Replied by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")* on topic *[Insert product image in product layout](/forum/2-general-talk-about-hikashop/81473-insert-product-image-in-product-layout#103580 "This is very simple:  What code to insert a product image in the product layout?  My image names they all follow this pattern:  (product&#95;code)-01 (product&#95;code)-03 (product&#95;code)-03  I want to insert in a certain place image -01 with my own size not depending on the HikaShop parameters for iamge and thumbnails.")*

It worked perfectly!

THANK YOU A LOT! You're a great team!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgxNDczLWluc2VydC1wcm9kdWN0LWltYWdlLWluLXByb2R1Y3QtbGF5b3V0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[mad-q](/forum/user/4784-mad-q "View mad-q's Profile")**
- [![mad-q's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4784-mad-q "View mad-q's Profile")
- [ Offline](/forum/user/4784-mad-q)

Less More

- Posts: 234
- Thank you received: 4
-
-

8 years 9 months ago -  8 years 9 months ago [\#286922](#286922) by [mad-q](/forum/user/4784-mad-q "View mad-q's Profile")  Replied by *[mad-q](/forum/user/4784-mad-q "View mad-q's Profile")* on topic *[Insert product image in product layout](/forum/2-general-talk-about-hikashop/81473-insert-product-image-in-product-layout#286922 "This is very simple:  What code to insert a product image in the product layout?  My image names they all follow this pattern:  (product&#95;code)-01 (product&#95;code)-03 (product&#95;code)-03  I want to insert in a certain place image -01 with my own size not depending on the HikaShop parameters for iamge and thumbnails.")*

Hello Xavier

I am trying your code with no avail. Could you help, this is the code I am using Code:

&lt;div id="hikashop_product_right_part" class="hikashop_product_right_part hkc-md-6"&gt; &lt;img src="&lt;?php echo 'http://www.craven-equipment.co.uk/images/'.$this-&gt;element-&gt;product_code.'Sticker.png';?&gt;" alt="&lt;?php echo $this-&gt;element-&gt;product_code.'A-COM-BBL'; ?&gt;" style="" /&gt;

As I would like a specific image to be shown above the product title in the right hand side.

Could you please help.

Cheers
Iain

Last edit: 8 years 9 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile"). Reason: please use [code] tags.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgxNDczLWluc2VydC1wcm9kdWN0LWltYWdlLWluLXByb2R1Y3QtbGF5b3V0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

8 years 9 months ago [\#286955](#286955) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Insert product image in product layout](/forum/2-general-talk-about-hikashop/81473-insert-product-image-in-product-layout#286955 "This is very simple:  What code to insert a product image in the product layout?  My image names they all follow this pattern:  (product&#95;code)-01 (product&#95;code)-03 (product&#95;code)-03  I want to insert in a certain place image -01 with my own size not depending on the HikaShop parameters for iamge and thumbnails.")*

Hi,

The code looks fine.
Could you provide a link to a product page so that we can see the result ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgxNDczLWluc2VydC1wcm9kdWN0LWltYWdlLWluLXByb2R1Y3QtbGF5b3V0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[mad-q](/forum/user/4784-mad-q "View mad-q's Profile")**
- [![mad-q's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4784-mad-q "View mad-q's Profile")
- [ Offline](/forum/user/4784-mad-q)

Less More

- Posts: 234
- Thank you received: 4
-
-

8 years 9 months ago [\#286974](#286974) by [mad-q](/forum/user/4784-mad-q "View mad-q's Profile")  Replied by *[mad-q](/forum/user/4784-mad-q "View mad-q's Profile")* on topic *[Insert product image in product layout](/forum/2-general-talk-about-hikashop/81473-insert-product-image-in-product-layout#286974 "This is very simple:  What code to insert a product image in the product layout?  My image names they all follow this pattern:  (product&#95;code)-01 (product&#95;code)-03 (product&#95;code)-03  I want to insert in a certain place image -01 with my own size not depending on the HikaShop parameters for iamge and thumbnails.")*

Hello,

Yes the website is [ craven-equipment.co.uk/index.php/luggage.../21-comet-black-left](http://craven-equipment.co.uk/index.php/luggage/product/21-comet-black-left)

Cheers
Iain

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgxNDczLWluc2VydC1wcm9kdWN0LWltYWdlLWluLXByb2R1Y3QtbGF5b3V0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

8 years 9 months ago [\#286975](#286975) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Insert product image in product layout](/forum/2-general-talk-about-hikashop/81473-insert-product-image-in-product-layout#286975 "This is very simple:  What code to insert a product image in the product layout?  My image names they all follow this pattern:  (product&#95;code)-01 (product&#95;code)-03 (product&#95;code)-03  I want to insert in a certain place image -01 with my own size not depending on the HikaShop parameters for iamge and thumbnails.")*

Hi,

So in your code you have:
&lt;div id="hikashop_product_right_part" class="hikashop_product_right_part hkc-md-6"&gt;
But if I look at your link, I see that:
[ monosnap.com/file/BILLsjh9UWirGyjoOEMHyHTIvGjuI5](https://monosnap.com/file/BILLsjh9UWirGyjoOEMHyHTIvGjuI5)
As you can see, the " hkc-md-6" part is missing.
So you're not adding your img tag in the correct view file.
Please use the "Display view files" setting of the HikaShop configuration to check which view file you need to modify.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgxNDczLWluc2VydC1wcm9kdWN0LWltYWdlLWluLXByb2R1Y3QtbGF5b3V0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[mad-q](/forum/user/4784-mad-q "View mad-q's Profile")**
- [![mad-q's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4784-mad-q "View mad-q's Profile")
- [ Offline](/forum/user/4784-mad-q)

Less More

- Posts: 234
- Thank you received: 4
-
-

8 years 9 months ago [\#287123](#287123) by [mad-q](/forum/user/4784-mad-q "View mad-q's Profile")  Replied by *[mad-q](/forum/user/4784-mad-q "View mad-q's Profile")* on topic *[Insert product image in product layout](/forum/2-general-talk-about-hikashop/81473-insert-product-image-in-product-layout#287123 "This is very simple:  What code to insert a product image in the product layout?  My image names they all follow this pattern:  (product&#95;code)-01 (product&#95;code)-03 (product&#95;code)-03  I want to insert in a certain place image -01 with my own size not depending on the HikaShop parameters for iamge and thumbnails.")*

Hi Thanks for that, which would be the file I need to add this to?

Cheers
Iain

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgxNDczLWluc2VydC1wcm9kdWN0LWltYWdlLWluLXByb2R1Y3QtbGF5b3V0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

8 years 9 months ago [\#287124](#287124) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Insert product image in product layout](/forum/2-general-talk-about-hikashop/81473-insert-product-image-in-product-layout#287124 "This is very simple:  What code to insert a product image in the product layout?  My image names they all follow this pattern:  (product&#95;code)-01 (product&#95;code)-03 (product&#95;code)-03  I want to insert in a certain place image -01 with my own size not depending on the HikaShop parameters for iamge and thumbnails.")*

Hi,

It could be show_default, or show_reverse or show_tabular or a custom show_ file you might have.
The Display view files setting will tell you which view file is used for the display of the area where you want to add your code.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgxNDczLWluc2VydC1wcm9kdWN0LWltYWdlLWluLXByb2R1Y3QtbGF5b3V0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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.087 seconds

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