inherit product image of category if image missing

  • Posts: 73
  • Thank you received: 1
11 years 7 months ago #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_id manually in the files table to the corresponding product?

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 7 months ago #139158

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 or Create an account to join the conversation.

  • Posts: 73
  • Thank you received: 1
11 years 7 months ago #139269

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 or Create an account to join the conversation.

  • Posts: 84242
  • Thank you received: 13686
  • MODERATOR
11 years 7 months ago #139350

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 or Create an account to join the conversation.

Time to create page: 0.069 seconds
Powered by Kunena Forum