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

#   Add to product image but not replace via csv import

##

- **[grayt7](/forum/user/30010-grayt7 "View grayt7's Profile")**
- [![grayt7's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30010.jpg)](/forum/user/30010-grayt7 "View grayt7's Profile") Topic Author
- [ Offline](/forum/user/30010-grayt7)

Less More

- Posts: 377
- Thank you received: 7
-
-
- [](http://www.identitywebdesign.com)
-

6 years 5 months ago [\#320226](#320226) by [grayt7](/forum/user/30010-grayt7 "View grayt7's Profile")  *[Add to product image but not replace via csv import](/forum/37-import-export-csv-xls/900068-add-to-product-image-but-not-replace-via-csv-import#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.")* was created by *[grayt7](/forum/user/30010-grayt7 "View grayt7's Profile")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy85MDAwNjgtYWRkLXRvLXByb2R1Y3QtaW1hZ2UtYnV0LW5vdC1yZXBsYWNlLXZpYS1jc3YtaW1wb3J0P3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86540
- Thank you received: 14300
-
-

6 years 5 months ago [\#320228](#320228) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add to product image but not replace via csv import](/forum/37-import-export-csv-xls/900068-add-to-product-image-but-not-replace-via-csv-import#320228 "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.")*

Hi,

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-&gt;db-&gt;setQuery('DELETE FROM '.hikashop_table('file').' WHERE file_ref_id IN ('.implode(',',$ids).') AND file_type=\''.$db_type.'\''); $this-&gt;db-&gt;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](/forum/user/30010-grayt7 "View grayt7's Profile")

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

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