1. jaak69
  2. RO CSVI
  3. Monday, 17 April 2017
  4.  Subscribe via email
Hello,

My image url inside XML file looks like:
<Picture>
http://www.blobs.lt/products/4/1/5/7/5/1/56f61494e03927ad5ef0766019500f13
</Picture>

This part of URL is uniqe for every product and image (if product has more than one image then URL part (56f61494e03927ad5ef0766019500f13) is different for every image)
For accessing image I have needed to add a filename to URL. The filename is always 440x440.png


  • Is it possible to describe import rule then CSVI processing XML <picture> tag adds filename (440x440.png) at the end of URL, download image from remote server and creates a unique filename, saves it with that unique filename into Virtuemart product image folder and binds it with a corresponding product

  • or is the better option to process images separately (download, renaming and creating suitable XML or CSV file for CSVI)



Jaak
Accepted Answer Pending Moderation
Hello Jaak,
Is it possible to describe import rule then CSVI processing XML <picture> tag adds filename (440x440.png) at the end of URL, download image from remote server and creates a unique filename, saves it with that unique filename into Virtuemart product image folder and binds it with a corresponding product

To add a value at the end of the picture url, you can create a rule using CSVI multi replace plugin, select the operation as Add after value and in the value field try giving 440x440.png, save the rule. Apply the rule on your picture url field.
To download the image from remote server, in your product import template settings on Images tab, set Save images on server to Yes.
To save image with a unique name, on the same images tab you can set the option Image name based on to product_sku or product_name. Click on Advanced button on top right if you dont see this option.
To save it with corresponding product, you need to import the images with product_sku in your import file.

or is the better option to process images separately (download, renaming and creating suitable XML or CSV file for CSVI)

The option above would be better. You will be able to download and import images along with product details in one import. If you have any issues, post the requested information as explained in the Looking for useful answer? section on top of this page.
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
Hello,

Thank you for quick response.

As you've explaind everything works. I based renaming on product_sku. This is for one image.

If I have several images in remote server named in same way how can write rule that additional image wouldn't overwrite existing image.

Additonally I tryed to fill file_meta and file_title.

I've wrote rule with Field copy plugin to write product name from "product_name" field into "file_meta" and "file_title" fields too, but this doesn't have any effect

Jaak
  1. more than a month ago
  2. RO CSVI
  3. # 2
Accepted Answer Pending Moderation
Hello Jaak,
You can import multiple images separated by | like image1|image2|image3. Have a look at import VirtueMart product images document to know on the import.
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
Hello,
Additonally I tryed to fill file_meta and file_title.

I've wrote rule with Field copy plugin to write product name from "product_name" field into "file_meta" and "file_title" fields too, but this doesn't have any effect

You need to post screenshots on how you have the rule set up so we can help you. Also, if you want CSVI to fill up the "file_meta" and "file_title", you can set Fill media fields to Yes in template settings on Images tab.
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. # 4
Accepted Answer Pending Moderation
Hello,

I'll try to explain my question:

If product has more than 1 image the image URL looks like:

  1. http://www.blobs.lt/products/9/4/8/8/9/1/a432e912eddd6fc879ca0c0e8cc2cdae/440x440.png

  2. http://www.blobs.lt/products/9/4/8/8/9/1/d2cd55de0b5b1f27555c803c084f0d4e/440x440.png

  3. http://www.blobs.lt/products/9/4/8/8/9/1/32fe4ff3c0d586c85425fbc6bf29df43/440x440.png



All images have the same filename therefore i must rename them all.

In import template I set that imported image must be renamed using pattern "product_sku.png". For the first image it works exellently. My concern is if i'm using this pattern then what the names for other images will be? How can I rename other images?
  1. more than a month ago
  2. RO CSVI
  3. # 5
Accepted Answer Pending Moderation
Hello,
Additonally I tryed to fill file_meta and file_title.

I've wrote rule with Field copy plugin to write product name from "product_name" field into "file_meta" and "file_title" fields too, but this doesn't have any effect

You need to post screenshots on how you have the rule set up so we can help you. Also, if you want CSVI to fill up the "file_meta" and "file_title", you can set Fill media fields to Yes in template settings on Images tab.


I thought about template settings "Fill media fields", but because my image filename is "product_sku.png" then this isn't very informative. Therefore I want use in these fields "product _name". My rule and field setups are (screenshots).
Attachments (2)
  1. more than a month ago
  2. RO CSVI
  3. # 6
Accepted Answer Pending Moderation
Hello Jaak,
In import template I set that imported image must be renamed using pattern "product_sku.png". For the first image it works exellently. My concern is if i'm using this pattern then what the names for other images will be? How can I rename other images?

If there are multiple images and say product_sku is 1001 then CSVI will rename them as 1001_1.png|1001_2.png|1001_3.png.

I thought about template settings "Fill media fields", but because my image filename is "product_sku.png" then this isn't very informative. Therefore I want use in these fields "product _name". My rule and field setups are (screenshots).

You need to set your rule on product_name field from where content has to be copied instead of file_meta field. Correct this and try doing the import.
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
Hello,

Thanks for your answer. It's working.

Jaak
  1. more than a month ago
  2. RO CSVI
  3. # 8
  • Page :
  • 1


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