- Posts: 73
- Thank you received: 1
inherit product image of category if image missing
12 years 8 months ago #139099
by Ortix
inherit product image of category if image missing was created by Ortix
-- 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?
-- 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.
Less
More
- Posts: 12953
- Thank you received: 1778
12 years 8 months ago #139158
by Mohamed Thelji
Replied by Mohamed Thelji on topic inherit product image of category if image missing
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.
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.
12 years 8 months ago #139269
by Ortix
Replied by Ortix on topic inherit product image of category if image missing
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).
Products are created with php (they depend on certain variables).
Please Log in or Create an account to join the conversation.
12 years 8 months ago #139350
by nicolas
Replied by nicolas on topic inherit product image of category if image missing
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.
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.218 seconds