1. piekielko
  2. RO CSVI
  3. Tuesday, 02 July 2019
  4.  Subscribe via email
How to export a list of images for each product? I read the tutorials, but I don't understand it - nothing works.
I want to have such a result. How to generate it?

<product>
<images>
<image1>images/virtuemart/product/1.jpg</image1>
<image2>images/virtuemart/product/2.jpg</image2>
<images>
</product>
<product>
<images>
<image1>images/virtuemart/product/3.jpg</image1>
<images>
</product>

Which XML template to choose: "Baselist", "Custom", "CSVI.."?
How to execute the rules?
Przechwytywanie.JPG
Accepted Answer Pending Moderation
Hello,
How to export a list of images for each product? I read the tutorials, but I don't understand it - nothing works.
I want to have such a result. How to generate it?

<product>
<images>
<image1>images/virtuemart/product/1.jpg</image1>
<image2>images/virtuemart/product/2.jpg</image2>
<images>
</product>
<product>
<images>
<image1>images/virtuemart/product/3.jpg</image1>
<images>
</product>

You cannot have each image as <image1><image2> node with export but all images of a product will be exported separated with | like
<images>
<image>
1.jpg|2.jpg|3.jpg
<image>
<images>

To get this output, add the header, body and footer values in your export template as in attached screenshot. Also make sure you add picture_url as export template field.

Which XML template to choose: "Baselist", "Custom", "CSVI.."?

You can select Custom XML template since you want to use node as set in body field in your template.

How to execute the rules?

If you are looking at combining images using rule, you don't need it as CSVI by default export images combined with |.

Try the export with settings as explained in the screenshot and let me know on how it goes.
Attachments (1)
Kind regards,

Tharuna

=========================
If you use CSVI, 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
I did in various ways. it does not work. In website "Custom"

Przechwytywanie.JPG

<P>
<image>[image]</image>
</P>

results:

<P>
<image>images/virtuemart/product/42789.jpg|images/virtuemart/product/42790.jpg|images/virtuemart/product/42791.jpg</image>
</P>
Attachments (1)
  1. more than a month ago
  2. RO CSVI
  3. # 2
Accepted Answer Pending Moderation
Ok, I did it in the template:
administrator/components/com_csvi/helper/file/export/xml

case 'picture_url':
if (0 === count($column_header))
{
$column_header = $fieldName;
}
if (strpos($content, ','))
{
$images = explode(',', $content);
$nr = 1;
$xml = '';
$xml .= '<images>';
foreach ($images as $image)
{$this->contents = $image;
//$xml .= $this->Element('img', $cdata);
$xml .= '<image'.$nr++.'>'.$image.'</image'.$nr++.'>';

}
}
$xml .= '</images>';
return $xml;
break;


How to add "product_sku" to the product header in NodeStart?

public function NodeStart()
{
$this->contents = '<project id="product_sku">' . chr(10);
return $this->contents;
}
  1. more than a month ago
  2. RO CSVI
  3. # 3
Accepted Answer Pending Moderation
Ok, I did it in the template:
administrator/components/com_csvi/helper/file/export/xml


case 'picture_url':
if (0 === count($column_header))
{
$column_header = $fieldName;
}
if (strpos($content, ','))
{
$images = explode(',', $content);
$nr = 1;
$xml = '';
$xml .= '<images>';
foreach ($images as $image)
{$this->contents = $image;
$xml .= '<image'.$nr++.'>'.$image.'</image'.$nr++.'>';

}
}
$xml .= '</images>';
return $xml;
break;


How to add "product_sku" to the product header in NodeStart?

public function NodeStart()
{
$this->contents = '<project id="product_sku">' . chr(10);
return $this->contents;
}
  1. more than a month ago
  2. RO CSVI
  3. # 4
Accepted Answer Pending Moderation
Hello,
You did not tell us which XML helper you edited but instead of editing the core CSVI XML helper file, What you can do is, try creating your own export XML handler in the folder administrator/components/com_csvi/helper/file/export/xml. Say if you have to use csvimproved helper file then duplicate csvimproved.php file in the folder and rename the file to say csvimprovedcustom.php. Edit the file and change the class name in the file CsviHelperFileExportXmlCsvimproved to class CsviHelperFileExportXmlCsvimprovedcustom, where csvimprovedcustom is the name of your new file. Now in the new file do your changes, save the file. Edit your template and on File tab set set Website field to the csvimprovedcustom file handler you just created. That way you won't lose your changes on CSVI updates.
Kind regards,

Tharuna

=========================
If you use CSVI, 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 again, I made a custom template in a PHP file and i generated XML according to my expectations. Everything works, but I found a bug.

In the created template in the administration panel the [include/exclude] options for selected product categories do not work.

If children's products are in the excluded category "L" and the parent product is in the auto included category, unwanted children's products from the "L" category are displayed - this is bug.
Przechwytywanie.JPG
Attachments (1)
  1. more than a month ago
  2. RO CSVI
  3. # 6
Accepted Answer Pending Moderation
Hello,
Can you send us your export debug log to check? To get the debug log check How to collect debug information? document.
Kind regards,

Tharuna

=========================
If you use CSVI, 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
I have attached the export file and logs

In XML <projekt id="1219"> should not be displayed "1219" (category_id) - this is exclude category "L" - they are childrens and are displayed - is bug
<projekt id="1230"> - is not displayed because all products are parents in this exclude category "Dodatki" - is ok.

com_csvi.log.1216.zip xml.zip
Attachments (2)
  1. more than a month ago
  2. RO CSVI
  3. # 8
Accepted Answer Pending Moderation
Hello,
Something i wanted to ask, what is the use of having parent and child products in two different categories? As much as i know child products follow the category of parent so wanted to check how you use this setting.
Kind regards,

Tharuna

=========================
If you use CSVI, 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
If a product from the "L" category is displayed on the product page, all images will be mirrored. These products are not displayed on the list of products - they are duplicates. The customer sometimes, however, wants to buy a house in a mirror image. I generate these products in XML for other companies that do not want mirrors

https://horyzont.com/projekty/wisienka/parterowy-885

.projekt-1219 img {
-webkit-transform: scaleX(-1);
transform: scaleX(-1);
}

Przechwytywanie.JPG Przechwytywanie1.JPG
Attachments (2)
  1. more than a month ago
  2. RO CSVI
  3. # 10
Accepted Answer Pending Moderation
Hello,
Can you tell me how the parent and child products categories have anything to do with a mirror image? I am still not understanding the point of having parent and child in two different categories.
Kind regards,

Tharuna

=========================
If you use CSVI, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 11
Accepted Answer Pending Moderation
Products from one family are connected with each other using the addition of Stockable Custom Fields ( https://breakdesigns.net/extensions/joomla/stockable-custom-fields ).
There are also products with a mirror image - over 800 items. I hide these products on the list of products in the excluded category "L". In the back office it is easier to sort products by category.

In XML, it generates selected products based on categories for external companies.

Some children's products are displayed in other categories. A house with a flat roof, a house with a sloping roof, a house with a basement, a house without a basement ... etc
Przechwytywanie.JPG
Attachments (1)
  1. more than a month ago
  2. RO CSVI
  3. # 12
Accepted Answer Pending Moderation
Hello,
There are also products with a mirror image - over 800 items. I hide these products on the list of products in the excluded category "L". In the back office it is easier to sort products by category.

I understand your need of excluding categories, in CSVI the flow goes like this, when you set to exclude categories, all the products which are not in the category are ignored but in your case since parent product is in a different category, it is selected. In the next step we collect all the child products for the selected parent category. So the ignored child products are included again. But i still don't see any use of having parent and child products in different categories with any of the cases you have explained.
Kind regards,

Tharuna

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


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