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

#   inherit product image of category if image missing

##

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

Less More

- Posts: 73
- Thank you received: 1
-
-

12 years 9 months ago [\#139099](#139099) by [Ortix](/forum/user/12608-ortix "View Ortix's Profile")  *[inherit product image of category if image missing](/forum/26-product-category-display/864872-inherit-product-image-of-category-if-image-missing#139099 "-- url of the page with the problem -- :   exo-l.com/webshop  -- HikaShop version -- : 1.6 -- Joomla version -- : 2.5 -- PHP version -- : 5.3.13  I was wondering whether it's possible for hikashop 1.6 to inherit the product image of its parent category if there is an image missing? I have system which programatically creates products (so they're not created within hikashop but with a script) and are added to the correct category. However, I want all the products in that category to have the same image in case their image is missing.  Is that something that hikashop has built in or do i have to add a ref&#95;id manually in the files table to the corresponding product?")* was created by *[Ortix](/forum/user/12608-ortix "View Ortix's Profile")*

-- url of the page with the problem -- : [ exo-l.com/webshop](http://exo-l.com/webshop)
-- HikaShop version -- : 1.6
-- Joomla version -- : 2.5
-- PHP version -- : 5.3.13

I was wondering whether it's possible for hikashop 1.6 to inherit the product image of its parent category if there is an image missing? I have system which programatically creates products (so they're not created within hikashop but with a script) and are added to the correct category. However, I want all the products in that category to have the same image in case their image is missing.

Is that something that hikashop has built in or do i have to add a ref_id manually in the files table to the corresponding product?

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

12 years 9 months ago [\#139158](#139158) 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 *[inherit product image of category if image missing](/forum/26-product-category-display/864872-inherit-product-image-of-category-if-image-missing#139158 "-- url of the page with the problem -- :   exo-l.com/webshop  -- HikaShop version -- : 1.6 -- Joomla version -- : 2.5 -- PHP version -- : 5.3.13  I was wondering whether it's possible for hikashop 1.6 to inherit the product image of its parent category if there is an image missing? I have system which programatically creates products (so they're not created within hikashop but with a script) and are added to the correct category. However, I want all the products in that category to have the same image in case their image is missing.  Is that something that hikashop has built in or do i have to add a ref&#95;id manually in the files table to the corresponding product?")*

Hi,
Firstly, I think that you should probably be to download the last Hikashop version through our website, install it, and test it again ?
Also, note that regarding your issue, the solution will probably be to directly add your product images by using a CSV import for example, or to edit the code of hikashop but some development skill will be required.

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

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

Less More

- Posts: 73
- Thank you received: 1
-
-

12 years 9 months ago [\#139269](#139269) by [Ortix](/forum/user/12608-ortix "View Ortix's Profile")  Replied by *[Ortix](/forum/user/12608-ortix "View Ortix's Profile")* on topic *[inherit product image of category if image missing](/forum/26-product-category-display/864872-inherit-product-image-of-category-if-image-missing#139269 "-- url of the page with the problem -- :   exo-l.com/webshop  -- HikaShop version -- : 1.6 -- Joomla version -- : 2.5 -- PHP version -- : 5.3.13  I was wondering whether it's possible for hikashop 1.6 to inherit the product image of its parent category if there is an image missing? I have system which programatically creates products (so they're not created within hikashop but with a script) and are added to the correct category. However, I want all the products in that category to have the same image in case their image is missing.  Is that something that hikashop has built in or do i have to add a ref&#95;id manually in the files table to the corresponding product?")*

Yeah i'm a developer, so that's not an issue. Upgrading will be done later on, so that's not an option as of now.

Products are created with php (they depend on certain variables).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjQ4NzItaW5oZXJpdC1wcm9kdWN0LWltYWdlLW9mLWNhdGVnb3J5LWlmLWltYWdlLW1pc3Npbmc/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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86308
- Thank you received: 14273
-
-

12 years 9 months ago [\#139350](#139350) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[inherit product image of category if image missing](/forum/26-product-category-display/864872-inherit-product-image-of-category-if-image-missing#139350 "-- url of the page with the problem -- :   exo-l.com/webshop  -- HikaShop version -- : 1.6 -- Joomla version -- : 2.5 -- PHP version -- : 5.3.13  I was wondering whether it's possible for hikashop 1.6 to inherit the product image of its parent category if there is an image missing? I have system which programatically creates products (so they're not created within hikashop but with a script) and are added to the correct category. However, I want all the products in that category to have the same image in case their image is missing.  Is that something that hikashop has built in or do i have to add a ref&#95;id manually in the files table to the corresponding product?")*

So yes, you need to add an entry in the files table for each product with the id of the product in the file_ref_id so that the images are added automatically to the products when you add them.
Or you could also add custom code in the listing/show files of the product view to dynamically load the images of the categories of the products. But that's a bit more complex to do.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjQ4NzItaW5oZXJpdC1wcm9kdWN0LWltYWdlLW9mLWNhdGVnb3J5LWlmLWltYWdlLW1pc3Npbmc/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.121 seconds

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

[](#top)
