How to import (CSV) an image with a different name

  • Posts: 2
  • Thank you received: 0
10 years 5 months ago #160197

I do not find any documentaion how to fill the separate field "Name" with CSV import.
I want to import for example "product1.jpg" with name-field: "List-Product".
I always get the image "product1.jpg" AND the field Name also filled with "product1.jpg".

If I add images manually I have both fields available for different content.

Thanks in advance,
Peter

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 5 months ago #160291

Hi,

There is no option at the moment to enter the file name with the CSV import. That's something that we'll add in the next version of HikaShop.
If you replace the file administrator/components/com_hikashop/helpers/import.php with the one in the archive below, you'll be able to do it with the column files_name of your CSV.

File Attachment:

File Name: h0bf2587.zip
File Size:15 KB

Attachments:
The following user(s) said Thank You: PeterM

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

  • Posts: 846
  • Thank you received: 92
10 years 5 months ago #160299

Hi
1-- can we import image by add URl path to each images in the csv file ?
Yes

2--with column name ( in csv ) must contain the path to the image in hikashop database ?
images

3--how must be write the url path in this column name ?
3a must be relative or absolute ?
3b in which ph p is define all the path to images ?

regard's


regard's

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 5 months ago #160303

1. Yes. Note however that it will then require Hikashop to download each image during the import. If your server restrictions are low and/or if you have a lot of products, the import will likely crash in the middle and not import all the products.

2. The path of the image should be relative to the file upload folder (that folder is located by default in /media/com_hikashop/upload/)

3.a relative
3.b it's in the configuration, in the Files section.

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

Time to create page: 0.072 seconds
Powered by Kunena Forum