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

#   CSV import issues

##

- **[raven-worx](/forum/user/36141-raven-worx "View raven-worx's Profile")**
- [![raven-worx's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/36141-raven-worx "View raven-worx's Profile") Topic Author
- [ Offline](/forum/user/36141-raven-worx)

Less More

- Posts: 23
- Thank you received: 0
-
-

11 years 8 months ago [\#196523](#196523) by [raven-worx](/forum/user/36141-raven-worx "View raven-worx's Profile")  *[CSV import issues](/forum/37-import-export-csv-xls/876027-csv-import-issues#196523 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.28  Hi,  i have 2 issue when i want to import procuts from a CSV file. It's not a backup but rather generated on the fly from various sources to create products int eh shop.  The first issue is if the product category name contain a colon multiple categories are created. Is it possible to prevent this to keep the colon in the category name?  Second issue: I want to also import product images. The CSV column is named &quot;images&quot; and the values jsut contain the image name (lower-case, no spaces). Then i upload the images via FTP to &quot;JOOMLA&#95;ROOT/images/com&#95;hikashop/upload&quot; but the image is not displayed on the product page. I debug into the view's code and figured out that  is unsuccessful. When i disable thumbnails in the Hikashop configuration the image is displayed.  So what do i have to do to get the thumbnails working? What may cause that $img&gt;success fails? Do i have to create the thumbnails in my case myself and also upload them?  thanks in advance.")* was created by *[raven-worx](/forum/user/36141-raven-worx "View raven-worx's Profile")*

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.3.28

Hi,

i have 2 issue when i want to import procuts from a CSV file. It's not a backup but rather generated on the fly from various sources to create products int eh shop.

The first issue is if the product category name contain a colon multiple categories are created. Is it possible to prevent this to keep the colon in the category name?

Second issue:
I want to also import product images. The CSV column is named "images" and the values jsut contain the image name (lower-case, no spaces). Then i upload the images via FTP to "JOOMLA_ROOT/images/com_hikashop/upload" but the image is not displayed on the product page.
I debug into the view's code and figured out that Code:

$img = $this-&gt;image-&gt;getThumbnail(@$image-&gt;file_path, array('width' =&gt; $width, 'height' =&gt; $height), $image_options); if($img-&gt;success) { //&lt;--- false //display image code }

is unsuccessful.
When i disable thumbnails in the Hikashop configuration the image is displayed.

So what do i have to do to get the thumbnails working? What may cause that $img&gt;success fails?
Do i have to create the thumbnails in my case myself and also upload them?

thanks in advance.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84NzYwMjctY3N2LWltcG9ydC1pc3N1ZXM/dG1wbD1tYXJrZG93bg==) 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: 86593
- Thank you received: 14334
-
-

11 years 8 months ago [\#196537](#196537) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[CSV import issues](/forum/37-import-export-csv-xls/876027-csv-import-issues#196537 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.28  Hi,  i have 2 issue when i want to import procuts from a CSV file. It's not a backup but rather generated on the fly from various sources to create products int eh shop.  The first issue is if the product category name contain a colon multiple categories are created. Is it possible to prevent this to keep the colon in the category name?  Second issue: I want to also import product images. The CSV column is named &quot;images&quot; and the values jsut contain the image name (lower-case, no spaces). Then i upload the images via FTP to &quot;JOOMLA&#95;ROOT/images/com&#95;hikashop/upload&quot; but the image is not displayed on the product page. I debug into the view's code and figured out that  is unsuccessful. When i disable thumbnails in the Hikashop configuration the image is displayed.  So what do i have to do to get the thumbnails working? What may cause that $img&gt;success fails? Do i have to create the thumbnails in my case myself and also upload them?  thanks in advance.")*

Hi,

1. This allows you to attach several categories to a product during the import.
What you can do is change the line:
$this-&gt;_separate($product-&gt;categories);
to:
$product-&gt;categories = array($product-&gt;categories);
in the file administrator/components/com_hikashop/helpers/import.php and that will deactivate that capability for the categories column and you should not have the problem with category names with commas.

2. HikaShop generates the thumbnails automatically. No need for you to do that.
However, this requires that HikaShop/joomla has write access to the folder images/com_hikashop/upload.
If HikaShop cannot generate the thumbnails in that folder (in subfolders actually), the $img-&gt;success attribute will be set to false.
So please check on that folder and make sure that it is writable.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84NzYwMjctY3N2LWltcG9ydC1pc3N1ZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[raven-worx](/forum/user/36141-raven-worx "View raven-worx's Profile")**
- [![raven-worx's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/36141-raven-worx "View raven-worx's Profile") Topic Author
- [ Offline](/forum/user/36141-raven-worx)

Less More

- Posts: 23
- Thank you received: 0
-
-

11 years 8 months ago [\#196574](#196574) by [raven-worx](/forum/user/36141-raven-worx "View raven-worx's Profile")  Replied by *[raven-worx](/forum/user/36141-raven-worx "View raven-worx's Profile")* on topic *[CSV import issues](/forum/37-import-export-csv-xls/876027-csv-import-issues#196574 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.28  Hi,  i have 2 issue when i want to import procuts from a CSV file. It's not a backup but rather generated on the fly from various sources to create products int eh shop.  The first issue is if the product category name contain a colon multiple categories are created. Is it possible to prevent this to keep the colon in the category name?  Second issue: I want to also import product images. The CSV column is named &quot;images&quot; and the values jsut contain the image name (lower-case, no spaces). Then i upload the images via FTP to &quot;JOOMLA&#95;ROOT/images/com&#95;hikashop/upload&quot; but the image is not displayed on the product page. I debug into the view's code and figured out that  is unsuccessful. When i disable thumbnails in the Hikashop configuration the image is displayed.  So what do i have to do to get the thumbnails working? What may cause that $img&gt;success fails? Do i have to create the thumbnails in my case myself and also upload them?  thanks in advance.")*

> nicolas wrote: Hi,
> 2\. HikaShop generates the thumbnails automatically. No need for you to do that.
> However, this requires that HikaShop/joomla has write access to the folder images/com\_hikashop/upload.
> If HikaShop cannot generate the thumbnails in that folder (in subfolders actually), the $img-&gt;success attribute will be set to false.
> So please check on that folder and make sure that it is writable.

i've set the permissions of images/com_hikashop/upload (and all sub-folders) event to 0777, but the result is unchanged. The thumbnail still doesn't display.
Is there another case where $img-&gt;success is false?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84NzYwMjctY3N2LWltcG9ydC1pc3N1ZXM/dG1wbD1tYXJrZG93bg==) 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: 86593
- Thank you received: 14334
-
-

11 years 8 months ago [\#196597](#196597) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[CSV import issues](/forum/37-import-export-csv-xls/876027-csv-import-issues#196597 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.28  Hi,  i have 2 issue when i want to import procuts from a CSV file. It's not a backup but rather generated on the fly from various sources to create products int eh shop.  The first issue is if the product category name contain a colon multiple categories are created. Is it possible to prevent this to keep the colon in the category name?  Second issue: I want to also import product images. The CSV column is named &quot;images&quot; and the values jsut contain the image name (lower-case, no spaces). Then i upload the images via FTP to &quot;JOOMLA&#95;ROOT/images/com&#95;hikashop/upload&quot; but the image is not displayed on the product page. I debug into the view's code and figured out that  is unsuccessful. When i disable thumbnails in the Hikashop configuration the image is displayed.  So what do i have to do to get the thumbnails working? What may cause that $img&gt;success fails? Do i have to create the thumbnails in my case myself and also upload them?  thanks in advance.")*

So did you get the thumbnails folder and the files in it created by HikaShop ?
Other possibilities would be that HikaShop cannot generate thumbnails out of your images because of a strange format of the image, not enough space on the hard drive, a FTP layer activated but configured incorrectly in the Joomla configuration, the GD library not installed on your server or not activated or not supporting the format of your images. That's all I can think of.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84NzYwMjctY3N2LWltcG9ydC1pc3N1ZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[raven-worx](/forum/user/36141-raven-worx "View raven-worx's Profile")**
- [![raven-worx's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/36141-raven-worx "View raven-worx's Profile") Topic Author
- [ Offline](/forum/user/36141-raven-worx)

Less More

- Posts: 23
- Thank you received: 0
-
-

11 years 8 months ago [\#196625](#196625) by [raven-worx](/forum/user/36141-raven-worx "View raven-worx's Profile")  Replied by *[raven-worx](/forum/user/36141-raven-worx "View raven-worx's Profile")* on topic *[CSV import issues](/forum/37-import-export-csv-xls/876027-csv-import-issues#196625 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.28  Hi,  i have 2 issue when i want to import procuts from a CSV file. It's not a backup but rather generated on the fly from various sources to create products int eh shop.  The first issue is if the product category name contain a colon multiple categories are created. Is it possible to prevent this to keep the colon in the category name?  Second issue: I want to also import product images. The CSV column is named &quot;images&quot; and the values jsut contain the image name (lower-case, no spaces). Then i upload the images via FTP to &quot;JOOMLA&#95;ROOT/images/com&#95;hikashop/upload&quot; but the image is not displayed on the product page. I debug into the view's code and figured out that  is unsuccessful. When i disable thumbnails in the Hikashop configuration the image is displayed.  So what do i have to do to get the thumbnails working? What may cause that $img&gt;success fails? Do i have to create the thumbnails in my case myself and also upload them?  thanks in advance.")*

there are a few thumbnail folders. Don't know which one is the correct one.
Are the thumbnails created on the fly when the image is first requested? If yes i can delete the thumbnail folders and open up the product page and the thumbnails should be created right?

I'll check the other points you mentioned.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84NzYwMjctY3N2LWltcG9ydC1pc3N1ZXM/dG1wbD1tYXJrZG93bg==) 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: 86593
- Thank you received: 14334
-
-

11 years 8 months ago [\#196650](#196650) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[CSV import issues](/forum/37-import-export-csv-xls/876027-csv-import-issues#196650 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.28  Hi,  i have 2 issue when i want to import procuts from a CSV file. It's not a backup but rather generated on the fly from various sources to create products int eh shop.  The first issue is if the product category name contain a colon multiple categories are created. Is it possible to prevent this to keep the colon in the category name?  Second issue: I want to also import product images. The CSV column is named &quot;images&quot; and the values jsut contain the image name (lower-case, no spaces). Then i upload the images via FTP to &quot;JOOMLA&#95;ROOT/images/com&#95;hikashop/upload&quot; but the image is not displayed on the product page. I debug into the view's code and figured out that  is unsuccessful. When i disable thumbnails in the Hikashop configuration the image is displayed.  So what do i have to do to get the thumbnails working? What may cause that $img&gt;success fails? Do i have to create the thumbnails in my case myself and also upload them?  thanks in advance.")*

Hi,

Yes, the thumbnails are generated on the fly. So you can delete all the thumbnails folders and it should recreate them with the thumbnails in it when necessary.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84NzYwMjctY3N2LWltcG9ydC1pc3N1ZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[raven-worx](/forum/user/36141-raven-worx "View raven-worx's Profile")**
- [![raven-worx's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/36141-raven-worx "View raven-worx's Profile") Topic Author
- [ Offline](/forum/user/36141-raven-worx)

Less More

- Posts: 23
- Thank you received: 0
-
-

11 years 8 months ago [\#196703](#196703) by [raven-worx](/forum/user/36141-raven-worx "View raven-worx's Profile")  Replied by *[raven-worx](/forum/user/36141-raven-worx "View raven-worx's Profile")* on topic *[CSV import issues](/forum/37-import-export-csv-xls/876027-csv-import-issues#196703 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.28  Hi,  i have 2 issue when i want to import procuts from a CSV file. It's not a backup but rather generated on the fly from various sources to create products int eh shop.  The first issue is if the product category name contain a colon multiple categories are created. Is it possible to prevent this to keep the colon in the category name?  Second issue: I want to also import product images. The CSV column is named &quot;images&quot; and the values jsut contain the image name (lower-case, no spaces). Then i upload the images via FTP to &quot;JOOMLA&#95;ROOT/images/com&#95;hikashop/upload&quot; but the image is not displayed on the product page. I debug into the view's code and figured out that  is unsuccessful. When i disable thumbnails in the Hikashop configuration the image is displayed.  So what do i have to do to get the thumbnails working? What may cause that $img&gt;success fails? Do i have to create the thumbnails in my case myself and also upload them?  thanks in advance.")*

i solved it. I've turned on the error reporting in Joomla config.
Then the error message appeared that the JPEG data is invalid. Which is kinda odd because it displays fine in every other viewer.
Nevertheless i now reconvert the images before uploading and it works now.

thank for your hints!

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

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