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

#   Hide image for some products

##

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

Less More

- Posts: 21
- Thank you received: 0
-
-

13 years 6 months ago [\#105289](#105289) by [tiekubd](/forum/user/14582-tiekubd "View tiekubd's Profile")  *[Hide image for some products](/forum/2-general-talk-about-hikashop/82484-hide-image-for-some-products#105289 "I want some of my products to NOT require a image, i.e. hide the image")* was created by *[tiekubd](/forum/user/14582-tiekubd "View tiekubd's Profile")*

I want some of my products to NOT require a image, i.e. hide the image

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgyNDg0LWhpZGUtaW1hZ2UtZm9yLXNvbWUtcHJvZHVjdHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

13 years 6 months ago [\#105303](#105303) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Hide image for some products](/forum/2-general-talk-about-hikashop/82484-hide-image-for-some-products#105303 "I want some of my products to NOT require a image, i.e. hide the image")*

Hi,

The images are not required on products. But if there is no image, HikaShop will display the default image.
There are different solutions possible but we have to know more about your requirement in order to give you the most appropriate solution.

What do you want to do exactly ?
How do you want to make the difference between a product with and without an image ?

Regards,

---

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

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

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

Less More

- Posts: 21
- Thank you received: 0
-
-

13 years 6 months ago [\#105317](#105317) by [tiekubd](/forum/user/14582-tiekubd "View tiekubd's Profile")  Replied by *[tiekubd](/forum/user/14582-tiekubd "View tiekubd's Profile")* on topic *[Hide image for some products](/forum/2-general-talk-about-hikashop/82484-hide-image-for-some-products#105317 "I want some of my products to NOT require a image, i.e. hide the image")*

When I do not choose an image for a product, I do not want an image to display, just the product name.

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

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

Less More

- Posts: 21
- Thank you received: 0
-
-

13 years 6 months ago [\#105318](#105318) by [tiekubd](/forum/user/14582-tiekubd "View tiekubd's Profile")  Replied by *[tiekubd](/forum/user/14582-tiekubd "View tiekubd's Profile")* on topic *[Hide image for some products](/forum/2-general-talk-about-hikashop/82484-hide-image-for-some-products#105318 "I want some of my products to NOT require a image, i.e. hide the image")*

...and no default image

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgyNDg0LWhpZGUtaW1hZ2UtZm9yLXNvbWUtcHJvZHVjdHM/dG1wbD1tYXJrZG93bg==) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

13 years 6 months ago [\#105382](#105382) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hide image for some products](/forum/2-general-talk-about-hikashop/82484-hide-image-for-some-products#105382 "I want some of my products to NOT require a image, i.e. hide the image")*

For the listings, you can edit the file listing_img_title of the view product via the menu display-&gt;Views and change the line:
if($this-&gt;config-&gt;get('thumbnail',1)){

to:
if($this-&gt;config-&gt;get('thumbnail',1) &amp;&amp; !empty($this-&gt;row-&gt;file_path)){

For the product page, you can change the line:
} else {

to:
} elseif(!empty($image-&gt;file_path)) {

in the file "show_block_img" via the menu display-&gt;Views

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgyNDg0LWhpZGUtaW1hZ2UtZm9yLXNvbWUtcHJvZHVjdHM/dG1wbD1tYXJrZG93bg==) 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.058 seconds

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