Add to product image but not replace via csv import

  • Posts: 297
  • Thank you received: 4
  • Hikashop Business
1 year 11 months ago #320226

Hi,

Is it possible to maintain a product image and add to it via import without having to specify the original image?

So lets say product A has image a.jpg
When I import product A info with image b.jpg image a.jpg is still maintained for that product.

Thanks.

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

  • Posts: 75528
  • Thank you received: 11765
  • MODERATOR
1 year 11 months ago #320228

Hi,

There is no option for that. You would have to have image a.jpg listed in the CSV.
You could remove the code

$this->db->setQuery('DELETE FROM '.hikashop_table('file').' WHERE file_ref_id IN ('.implode(',',$ids).') AND file_type=\''.$db_type.'\'');
				$this->db->execute();
(twice in the file) in the file administrator/components/com_hikashop/helper/import.php so that it doesn't remove already existing entries from the database when doing the import.
Note however that this means that if you have already image a.jpg in the database and you import image a.jpg your product will end up with image a.jpg twice in the product.

The following user(s) said Thank You: grayt7

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

Time to create page: 0.053 seconds
Powered by Kunena Forum