1. athenacraftsltdltd
  2. RO CSVI
  3. Monday, 13 March 2017
  4.  Subscribe via email
Hi all.

Joomla is 3.6.5
Virtuemart is 3.0.18
CSVi is 7.1.0 Pro

I searched but I couldn't find anything like this.

I'm importing a category file where file_url and file_url_thumb are populated. I have auto thumbnail creation disabled, but when the import is finished, the thumbnail url for the image always includes the (non-existent) folder 'Resized'. I simply want both the main image and the thumbnail to come from the same folder. I have the root location set in 'Location category images' of 'images/vm/'

If I have 'Process Images' set to 'No', the file fields don't get populated at all. How do I get CSVi to import the thumbnail exactly as it appears in the file, without any reference to resized or whatever?
Accepted Answer Pending Moderation
Hello,
I'm importing a category file where file_url and file_url_thumb are populated. I have auto thumbnail creation disabled, but when the import is finished, the thumbnail url for the image always includes the (non-existent) folder 'Resized'. I simply want both the main image and the thumbnail to come from the same folder. I have the root location set in 'Location category images' of 'images/vm/'

If you want images to be taken from default VirtueMart image path for both main and thumb image, instead of location in template settings try giving the full path in your import file for file_url like images/stories/virtuemart/category/mainimage.jpg and file_url_thumb like images/stories/virtuemart/category/thumbimage.jpg. If you have any issues post your debug log and sample import file to check.

If I have 'Process Images' set to 'No', the file fields don't get populated at all. How do I get CSVi to import the thumbnail exactly as it appears in the file, without any reference to resized or whatever?

Yes, thats correct. When process image is set to No, there is no processing done on media files. Try the above suggestion and let me know if it helps.
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
Hi Tharuna,
No, that doesn't work. If I remove the 'Location Category Images' value, it defaults to 'images/stories/virtuemart/category' which is wrong. If I leave it populated with 'images/vm' then this part of the URL is duplicated so the path is incorrect. The only way I can get the main image to populate is the way I had it originally, but that way screws up the thumbnails.
  1. more than a month ago
  2. RO CSVI
  3. # 2
Accepted Answer Pending Moderation
Hello,
Can you send your template XML file, sample import file and debug log of your import to check? Please try the import with 5 records so you get a smaller debug log to post. To get template XML file go to CSVI maintenance page, Select CSVI Pro on first option and Backup template on second option. Select your template and click continue. Download the XML file and post it.
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
Hi Tharuna,

I emailed you earlier. Did you get it?
  1. more than a month ago
  2. RO CSVI
  3. # 4
Accepted Answer Pending Moderation
Hello,

So I had a look at this and do understand how you would get the 'resized/' in the path of the thumbnail because CSVI adds this. I haven't tried yet but do you know if VM works when the thumbnail path doesn't have resized/ in it?

If this works fine, we will have to make an adjustment to allow for that as well.
Kind regards,

RolandD

=========================
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
Accepted Answer Pending Moderation
Hi RolandD,

It appears to, yes. If I manually correct the thumbnail path to remove the 'resized' the image appears on the site.

I think this was the way it worked in vm2.5 - we're currently outputting the csvs in the same way.

Thanks for looking into this, I look forward to a resolution! :)
  1. more than a month ago
  2. RO CSVI
  3. # 6
Accepted Answer Pending Moderation
Hello,
I have made some small adjustment to code for thumbnail image to add resize folder only when user wants and has it in his file_url_thumb field. Can you try to load the attached patch file and see if thumbnail image works?

patch_vm_category_2017_03_14.zip
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. # 7
Accepted Answer Pending Moderation
Hi All,

Thanks for your efforts. Sadly, while it's now removed the Resized folder, it's still not working as expected.

My csv contains the image filename and thumbnail filename like so:

category_full_image,category_thumb_image
AVT/image.jpg,timage.png

In the old version of virtuemart and CSVi (assuming Location product files = "images/vm";) the thumb was relative to the full image so this used to populate "Used url" and "Used thumb url" like this:

images/vm/AVT/image.jpg
images/vm/AVT/timage.png

In the current situation (Joomla is 3.6.5, Virtuemart is 3.0.18, CSVi is 7.1.0 Pro) but before the patch, the same csv file is producing this:

images/vm/AVT/image.jpg
images/vm/AVT/Resized/timage.png

After the patch, it populates like this:

images/vm/AVT/image.jpg
images/vm/timage.png

I presumed that it was now working relative to the Location product files folder and tried amending the csv to include the AVT/ part to the path like this:

category_full_image,category_thumb_image
AVT/image.jpg,AVT/timage.png

But this file is producing the same results, ie the AVT/ folder is being ignored and the path to the thumbnail is assumed to be in images/vm.

Please advise.
  1. more than a month ago
  2. RO CSVI
  3. # 8
Accepted Answer Pending Moderation
Hello,
Yes, there was a change in code considering the thumbnail image path will act independent from main image and that ignored the AVT/ in thumbnail path. Please load the modified patch file and see if it works.
patch_vm_category_2017_03_14_modified.zip
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. # 9
Accepted Answer Pending Moderation
Thanks very much! That works perfectly!
  1. more than a month ago
  2. RO CSVI
  3. # 10
  • Page :
  • 1


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