1. nebojsa
  2. RO CSVI
  3. Thursday, 10 September 2020
  4.  Subscribe via email
I also have similar problem.
I want to import several images into custom image field at once.
If I use:
custom_title^custom_value
Image custom field^image1.jpg~image2.jpg

I get empty fields. I have also tried with full path - no difference.

If I use:
Image custom field
image1.jpg

I manage to get only one value.

But with:
Image custom field
image1.jpg|image2.jpg


I get nothing.(also tried full paths and ~ in all examples without success)
All files are present in virtuemart_medias tables.

However when I do the export I get custom image field ID:
custom_title^custom_value
Image custom field~Image custom field^1612~115


It works vice-versa but I don't want to use custom image IDs. My automation process would become a real nightmare if I need to check every image ID in Virtuemart media.

My CSV files are attached.

Thank you.
Attachments (2)
Accepted Answer
Accepted Answer Pending Moderation
Hello,
Several custom attributes with unique name is represented as one group of attributes with options to choose from.
If you have image_custom_field1 and image_custom_field2 then user can choose both of options. Nobody wants that.
If you for example sell shoes and you want your customers to choose between black and white laces, you don't want them to be able to select both.
On the other hand if you have image_custom_field1 with black.jpg|white.jpg customer can choose only one option.

Yes that explains it.

The only solution I see here is to add another function to your import so your plugin search virtuemart_medias table for image name provided in CSV or XML and pick image ID's automatically. I don't know how much work is that but if you point me to a correct file maybe I could try to add that functionality by myself?

We have fixed this issue with the attached patch file. You can load the patch file and run the import for multiple Image custom fields. Example import content would be


product_sku;custom_title;custom_value
10001;Image~Image;images/virtuemart/product/logo1.jpg~images/virtuemart/product/logo2.jpg
Attachments (1)
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # Permalink
Accepted Answer Pending Moderation
Hello,
I created this issue as a new post.

But with:
Image custom field
image1.jpg|image2.jpg

I get nothing.(also tried full paths and ~ in all examples without success)
All files are present in virtuemart_medias tables.


We don't have an option for multiple images to be converted as ids yet. May i ask why not have multiple image custom fields and use them as individual template fields? Something like


product_sku;image custom field1; image custom field2;image custom field3
10001;image1.jpg;image2.jpg;image3.jpg


Will this work for you?
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 1
Accepted Answer Pending Moderation
Unfortunately it doesn't work that way.
Several custom attributes with unique name is represented as one group of attributes with options to choose from.
If you have image_custom_field1 and image_custom_field2 then user can choose both of options. Nobody wants that.
If you for example sell shoes and you want your customers to choose between black and white laces, you don't want them to be able to select both.
On the other hand if you have image_custom_field1 with black.jpg|white.jpg customer can choose only one option.

The only solution I see here is to add another function to your import so your plugin search virtuemart_medias table for image name provided in CSV or XML and pick image ID's automatically. I don't know how much work is that but if you point me to a correct file maybe I could try to add that functionality by myself?

Working manually with image IDs is headache :(
  1. more than a month ago
  2. RO CSVI
  3. # 2
Accepted Answer Pending Moderation
Hello,
Did you get a chance to test the patch file? How did your import go with the patch file?
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 3
Accepted Answer Pending Moderation
Sorry for waiting.
I have just done with testing and it works like a charm with your patch now.
Nice job. Thank you. I think this is important and useful patch for everyone who wants to use image custom attribute.
:)
  1. more than a month ago
  2. RO CSVI
  3. # 4
Accepted Answer Pending Moderation
Hello,
Thank you for confirming that patch is working. This fix will be included in our upcoming RO CSVI release.

I think this is important and useful patch for everyone who wants to use image custom attribute.

Yes and so we included it in our code.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 5
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!