Add to product image but not replace via csv import
6 years 3 months ago #320226
by grayt7
Add to product image but not replace via csv import was created by grayt7
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.
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.
6 years 3 months ago #320228
by nicolas
Replied by nicolas on topic Add to product image but not replace via csv import
Hi,
There is no option for that. You would have to have image a.jpg listed in the CSV.
You could remove the code
(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.
There is no option for that. You would have to have image a.jpg listed in the CSV.
You could remove the code
Code:
$this->db->setQuery('DELETE FROM '.hikashop_table('file').' WHERE file_ref_id IN ('.implode(',',$ids).') AND file_type=\''.$db_type.'\'');
$this->db->execute();
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.144 seconds