× Looking for a useful answer?

Read this first and make sure you checked all steps: csvimproved.com/support/getting-started

Don't just say it doesn't work but describe in detail what is happening and add the following information:
* Version of the extension you are using
* CSVI version (Latest is not a version number)
* Sample of the file being imported
* A copy of the template you are using. Use the maintenance menu to create a backup of your template
* Collected debug information

Without this information you won't get a useful answer. If no debug log is attached, you will get a request to post it.

Where to get the debug information?

A tutorial ( csvimproved.com/support/questions-and-answers/390-how-to-collect-debug-information ) has been written to help you collect your debug information.

Import Xml for virtual codes of several articles

  • liuker
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
1 month 2 weeks ago #60435 by liuker
liuker created the topic: Import Xml for virtual codes of several articles
Good evening, I'm doing an xml import of a virtual article code that contains multiple products.
I enclose the XML file for example:
<Products>
<Product>
<Code>113823</Code><Name>TAGLIAVERDURE LANETARIA KENWOOD CHEF MAJOR</Name><ProductType>Kit</ProductType><KitComponents>
<Product>
<Code>107315</Code></Product>
<Quantity>1</Quantity>
</KitComponents>
<Active>true</Active><ActiveOnWeb>true</ActiveOnWeb><CreationDate>2018-11-26</CreationDate><LastModifiedDate>2019-03-20</LastModifiedDate><Manufacturer>
<Id>88</Id><Name>Kenwood</Name></Manufacturer>
<MPN>KAX643ME+KAT001</MPN><Description>&lt;br&gt; La Grattugia a rulli consente di affettare e sminuzzare a bassa velocita'' in continuo: questo significa poter lavorare ingredienti delicati come formaggi, cioccolato, salumi, frutta e verdura morbida, . senza rovinarli. In dotazione ci sono 5 rulli monotaglio in metallo per: sminuzzare fine e grosso, tagliare fine e grosso, grattugiare.
&lt;br&gt;
&lt;br&gt;&lt;b&gt;Attenzione&lt;/b&gt;
&lt;br&gt;
&lt;br&gt;Il Modello AT643  risulta essere FUORI PRODUZIONE pertanto verra' fornito il nuovo modello di tagliaverdure KAX643ME insieme all'adattatore per poter essere montato e utilizzato correttamente.

&lt;br&gt;Adatto sia a Chef che Major
&lt;br&gt;
&lt;br&gt;Modello fuori produzione : AT643
&lt;br&gt;
&lt;br&gt;Nuovo modello : KAX643ME+ kat001ME
&lt;br&gt;&lt;br&gt;
&lt;br&gt;Attacchi motore: Bassa velocita'
&lt;br&gt;
&lt;br&gt;Capacita': In continuo&lt;br&gt;
&lt;br&gt;Importante: Per evitare errori nell'acquisto potete confrontare il modello di impastatore kenwood in vostro possesso con i modelli compatibili per l'accessorio qui in basso.&lt;br&gt;
&lt;br&gt;&lt;b&gt;&lt;i&gt;(I numeri di modello possono essere trovati sotto il mixer sulla targhetta.)&lt;/b&gt;&lt;/i&gt;</Description><Description2>&lt;div style=&quot;width:90%;height:250px;overflow-y: scroll; border:1px solid black;&quot;&gt; 
 KM220 &lt;br&gt;
 KM001 &lt;br&gt;
 KM002 &lt;br&gt;

 </WebDescription><CustomTableDescription1>ORIGINALE</CustomTableDescription1><CustomTableDescription2>CODICE VIRTUALE</CustomTableDescription2><CustomTableDescription3 /><CustomTableDescription4>35</CustomTableDescription4><CustomTableDescription5 /><CustomTableDescription6 /><CustomTableDescription7 /><CustomTableDescription8 /><CustomField1>ricambi kenwood, ricambi cooking, tagliaverdure kenwood, accessorio tagliaverdure kenwood</CustomField1><CustomField2 /><CustomField3 /><UMSelling>PZ</UMSelling><UMInventory>PZ</UMInventory><QtyAvailable>0</QtyAvailable>
<QtyAvailableWeb>0</QtyAvailableWeb>
<QtySuppliersOrders>0</QtySuppliersOrders>
<ReorderTime>0</ReorderTime><MainCategory>2620</MainCategory><MainProdCategory>2620</MainProdCategory><ProdCategories>
<ProdCategory>
<Id>2620</Id><Code /><Name>ACCESSORI</Name><FullPathName>RICAMBI E ACCESSORI / IMPASTATRICE / ACCESSORI</FullPathName></ProdCategory>
</ProdCategories>
<GrossWeight>2</GrossWeight>
<Volume>0</Volume>
<PackageLength>0</PackageLength>
<PackageWidth>0</PackageWidth>
<PackageHeight>0</PackageHeight>
<Tax>
<Id>1</Id><PercentAmount>22</PercentAmount>
</Tax>
<SellingPrices>
<SellingPrice>
<PriceListId>4</PriceListId><Price>118.85</Price>
<PriceIncludingVAT>145</PriceIncludingVAT>
</SellingPrice>
</SellingPrices>
<OfficialPriceList>
<Price>0</Price>
<PriceIncludingVAT>0</PriceIncludingVAT>
</OfficialPriceList>
<Photos><Photo>
<IdType>1</IdType><Name>Tagliaverdure AT643 kenwood accessorio planetarie</Name><RelativeFilePath>readyprodierre_Files/Foto/42133_871.jpg</RelativeFilePath></Photo>
</Photos>
<Barcodes>
<Barcode>
<Code>113823</Code></Barcode>
</Barcodes>
</Product>

</Products>

the problem lies in this string that stops me from loading:
<KitComponents>
<Product>
<Code>107315</Code></Product>
<Quantity>1</Quantity>
</KitComponents>

below I attach the photos of the problem, as it blocks the passage of all the other fields.
Attachments:

Please Log in or Create an account to join the conversation.

More
1 month 2 weeks ago #60441 by tharuna
tharuna replied the topic: Import Xml for virtual codes of several articles
Hello,
The XML you posted is not valid. There are Opening and ending tag mismatch errors when i run the XML. If you can see the there is no opening tag for </WebDescription> and for <Description2> there is missing closing tag </Description2>. Is this the full XML of a product or part of it?

Kind regards,

Tharuna

=========================
If you use CSVI, please post a rating and a review at the Joomla! Extension Directory

Please Log in or Create an account to join the conversation.

  • liuker
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
1 month 2 weeks ago - 1 month 2 weeks ago #60444 by liuker
liuker replied the topic: Import Xml for virtual codes of several articles
good morning the complete code is here
<Product>
<Code>116110</Code><Name>IGIENIZZANTE ANTI MUFFA CURA LAVATRICE SOFFIETTO GOMMA OBLO E CESTO X2 ELECTROLUX</Name><ProductType>Kit</ProductType><KitComponents>
<Product>
<Code>115239</Code></Product>
<Quantity>2</Quantity>
</KitComponents>
<Active>true</Active><ActiveOnWeb>true</ActiveOnWeb><CreationDate>2018-11-29</CreationDate><LastModifiedDate>2019-04-04</LastModifiedDate><Manufacturer>
<Id>44</Id><Name>Electrolux - Rex - Zanussi</Name></Manufacturer>
<MPN>9029797264X2</MPN><Description>&lt;b&gt;RICAMBIO ORIGINALE&lt;/b&gt;
&lt;br&gt;
&lt;br&gt;Prodotto universale per pulire la gomma soffietto oblo lavatrice, elimina la muffa e altri residui.
&lt;br&gt;&lt;br&gt;
Per avere la certezza che il vostro modello sia compatibile con il nostro ricambio originale controllate la lista dei modelli e paragonatela con il codice dell'etichetta posizionata all'interno dell'oblò della vostra lavatrice.
&lt;br&gt;&lt;br&gt;</Description><Description2>&lt;br&gt;
2 CONFEZIONI, IN OGNI CONFEZIONE CI SONO 2 BUSTINE DA 50 GRAMMI
&lt;br&gt;</Description2><Notes>PRODOTTO PER LA CURA DELLA LAVATRICE, 2 CONFEZIONI DA 2 BUSTINE CON 50 GRAMMI PER ELIMINARE MUFFA E CALCARE POSTI SUL SOFFIETTO IN GOMMA DELL'OBLO LAVATRICE.</Notes><WebDescription>&lt;b&gt;RICAMBIO ORIGINALE&lt;/b&gt;
&lt;br&gt;
&lt;br&gt;Prodotto universale per pulire la gomma soffietto oblo lavatrice, elimina la muffa e altri residui.
&lt;br&gt;&lt;br&gt;
Per avere la certezza che il vostro modello sia compatibile con il nostro ricambio originale controllate la lista dei modelli e paragonatela con il codice dell'etichetta posizionata all'interno dell'oblò della vostra lavatrice.
&lt;br&gt;&lt;br&gt;</WebDescription><CustomTableDescription1>ORIGINALE</CustomTableDescription1><CustomTableDescription2>CODICE VIRTUALE</CustomTableDescription2><CustomTableDescription3 /><CustomTableDescription4>35</CustomTableDescription4><CustomTableDescription5 /><CustomTableDescription6 /><CustomTableDescription7 /><CustomTableDescription8 /><CustomField1>disincrostante lavatrice, disincrostante lavastoviglie, anti muffa lavatrice, cura lavatrice, decalcificante lavatrce</CustomField1><CustomField2 /><CustomField3 /><UMSelling>PZ</UMSelling><UMInventory>PZ</UMInventory><QtyAvailable>0</QtyAvailable>
<QtyAvailableWeb>0</QtyAvailableWeb>
<QtySuppliersOrders>0</QtySuppliersOrders>
<ReorderTime>0</ReorderTime><MainCategory>622</MainCategory><MainProdCategory>622</MainProdCategory><ProdCategories>
<ProdCategory>
<Id>622</Id><Code>023550</Code><Name>DISINCROSTANTI</Name><FullPathName>RICAMBI E ACCESSORI / LAVATRICI / DISINCROSTANTI</FullPathName></ProdCategory>
</ProdCategories>
<GrossWeight>0.8</GrossWeight>
<Volume>0</Volume>
<PackageLength>0</PackageLength>
<PackageWidth>0</PackageWidth>
<PackageHeight>0</PackageHeight>
<Tax>
<Id>1</Id><PercentAmount>22</PercentAmount>
</Tax>
<SellingPrices>
<SellingPrice>
<PriceListId>4</PriceListId><Price>12.3</Price>
<PriceIncludingVAT>15</PriceIncludingVAT>
</SellingPrice>
</SellingPrices>
<OfficialPriceList>
<Price>0</Price>
<PriceIncludingVAT>0</PriceIncludingVAT>
</OfficialPriceList>
<Photos><Photo>
<IdType>1</IdType><Name>IGENIZZANTE CURA LAVATRICE ANTI MUFFA PER SOFFIETTI OBLO</Name><RelativeFilePath>readyprodierre_Files/Foto/42170_916.jpg</RelativeFilePath></Photo>
</Photos>
<Barcodes>
<Barcode>
<Code>116110</Code></Barcode>
</Barcodes>
</Product>
Last edit: 1 month 2 weeks ago by liuker.

Please Log in or Create an account to join the conversation.

More
1 month 2 weeks ago #60445 by tharuna
tharuna replied the topic: Import Xml for virtual codes of several articles
Hello,
Thank you for posting the import XML. Can you also post your template XML file to check? Setting up a sample import with few fields on my local site using your screenshot, XML values loads fine. Would like to check it with your template. To get template XML go to CSVI Maintenance page, select CSVI Pro in first dropdown and Backup templates in second dropdown and select your import template and click continue. Post the downloaded XML file.

Kind regards,

Tharuna

=========================
If you use CSVI, please post a rating and a review at the Joomla! Extension Directory

Please Log in or Create an account to join the conversation.

  • liuker
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
1 month 2 weeks ago #60447 by liuker
liuker replied the topic: Import Xml for virtual codes of several articles
Thanks to the availability.
Unfortunately the problem occurs only when I have to enter virtual codes, as indicated above.

File Attachment:

File Name: csvi_templ...0408.xml
File Size:14 KB
Attachments:

Please Log in or Create an account to join the conversation.

  • liuker
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
1 month 2 weeks ago #60448 by liuker
liuker replied the topic: Import Xml for virtual codes of several articles
To help the solution, I forward the xml file containing two articles, a virtual one and a standard article.
From the configuration that can be displayed in the previous messages of the corresponding fields, the first (virtual) code is generated without the information, generating the articles that compose it as contained in the file information in <code>.

The second standard code is generated without problems.
roduct>
<Code>113828</Code><Name>MACINA CEREALI / MACINAGRANAGLIE ACCESSORIO KENWOOD AT941 AWAT941A01 (KAX941+KAT001)</Name><ProductType>Kit</ProductType><KitComponents>
<Product>
<Code>106430</Code></Product>
<Quantity>1</Quantity>
<Product>
<Code>109548</Code></Product>
<Quantity>1</Quantity>
</KitComponents>
<Active>true</Active><ActiveOnWeb>true</ActiveOnWeb><CreationDate>2018-11-27</CreationDate><LastModifiedDate>2019-04-04</LastModifiedDate><Manufacturer>
<Id>41</Id><Name>De Longhi</Name></Manufacturer>
<MPN>KAX941+KAT001</MPN><Description>&lt;b&gt;RICAMBIO ORIGINALE&lt;/b&gt;
&lt;br&gt;
&lt;br&gt;Modello fuori produzione : AT941
&lt;br&gt;Nuovo modello : KAX941PL + kat001ME
&lt;br&gt;&lt;br&gt;
&lt;b&gt;ATTENZIONE:&lt;/b&gt;&lt;br&gt;
Il Modello AT941 risulta essere FUORI PRODUZIONE pertanto verra'
fornito il nuovo modello di MACINA CEREALI KAX941PL insieme all'adattatore per poter essere montato e utilizzato correttamente.
&lt;br&gt;&lt;br&gt;
Il Macinagranaglie Kenwood e' ideale per macinare i cereali che preferite ed ottenere cos? speciali miscele di farine, personalizzate in base ai propri gusti, come farine senza glutine oppure ottenute dai legumi.
&lt;br&gt;&lt;br&gt;</Description><Description2>&lt;div style=&quot;width:90%;height:250px;overflow-y: scroll; border:1px solid black;&quot;&gt; 
 - A900CHEF &lt;br&gt;
 - A900MAJOR &lt;br&gt;
 - KMM777 KITCHEN MACHINE - MAJOR - GRAPHITE + AT358 &lt;br&gt;
 - PM500 &lt;br&gt;
&lt;/DIV&gt;</Description2><Notes>MACINA CEREALI / MACINAGRANAGLIE ACCESSORIO KENWOOD (KAX941+KAT001) PER PLANETARIE</Notes><WebDescription>&lt;b&gt;RICAMBIO ORIGINALE&lt;/b&gt;
&lt;br&gt;
&lt;br&gt;Modello fuori produzione : AT941
&lt;br&gt;Nuovo modello : KAX941PL + kat001ME
&lt;br&gt;&lt;br&gt;
&lt;b&gt;ATTENZIONE:&lt;/b&gt;&lt;br&gt;
Il Modello AT941 risulta essere FUORI PRODUZIONE pertanto verra'
fornito il nuovo modello di MACINA CEREALI KAX941PL insieme all'adattatore per poter essere montato e utilizzato correttamente.
&lt;br&gt;&lt;br&gt;
Il Macinagranaglie Kenwood e' ideale per macinare i cereali che preferite ed ottenere cos? speciali miscele di farine, personalizzate in base ai propri gusti, come farine senza glutine oppure ottenute dai legumi.
&lt;br&gt;&lt;br&gt;</WebDescription><CustomTableDescription1>ORIGINALE</CustomTableDescription1><CustomTableDescription2>CODICE VIRTUALE</CustomTableDescription2><CustomTableDescription3 /><CustomTableDescription4>44</CustomTableDescription4><CustomTableDescription5 /><CustomTableDescription6 /><CustomTableDescription7 /><CustomTableDescription8 /><CustomField1>accessori kenwood, macinacereali kenwood, accessorio macinacereali</CustomField1><CustomField2 /><CustomField3 /><UMSelling>PZ</UMSelling><UMInventory>PZ</UMInventory><QtyAvailable>0</QtyAvailable>
<QtyAvailableWeb>0</QtyAvailableWeb>
<QtySuppliersOrders>0</QtySuppliersOrders>
<ReorderTime>0</ReorderTime><MainCategory>2620</MainCategory><MainProdCategory>2620</MainProdCategory><ProdCategories>
<ProdCategory>
<Id>2620</Id><Code /><Name>ACCESSORI</Name><FullPathName>RICAMBI E ACCESSORI / IMPASTATRICE / ACCESSORI</FullPathName></ProdCategory>
</ProdCategories>
<GrossWeight>1.2</GrossWeight>
<Volume>0</Volume>
<PackageLength>0</PackageLength>
<PackageWidth>0</PackageWidth>
<PackageHeight>0</PackageHeight>
<Tax>
<Id>1</Id><PercentAmount>22</PercentAmount>
</Tax>
<SellingPrices>
<SellingPrice>
<PriceListId>4</PriceListId><Price>114.75</Price>
<PriceIncludingVAT>140</PriceIncludingVAT>
</SellingPrice>
</SellingPrices>
<OfficialPriceList>
<Price>0</Price>
<PriceIncludingVAT>0</PriceIncludingVAT>
</OfficialPriceList>
<Photos><Photo>
<IdType>1</IdType><Name>Macina cereali accessorio kenwood KAX941+KAT001</Name><RelativeFilePath>readyprodierre_Files/Foto/42155_875.jpg</RelativeFilePath></Photo>
</Photos>
<Barcodes>
<Barcode>
<Code>113828</Code></Barcode>
<Barcode>
<Code>5011423058221</Code></Barcode>
</Barcodes>
</Product>
<Product>
<Code>118165</Code><Name>HOTPOINT ARISTON ESTRATTORE DI SUCCO CENTRIFUGA SORBETTIERA SJ15XLUP0</Name><ProductType>Standard</ProductType><Active>true</Active><ActiveOnWeb>true</ActiveOnWeb><CreationDate>2018-11-29</CreationDate><LastModifiedDate>2019-03-21</LastModifiedDate><Manufacturer>
<Id>14</Id><Name>HotPoint Ariston</Name></Manufacturer>
<MPN>SJ15XLUP0</MPN><Description /><Description2 /><Notes /><WebDescription /><CustomTableDescription1>ORIGINALE</CustomTableDescription1><CustomTableDescription2 /><CustomTableDescription3 /><CustomTableDescription4>42</CustomTableDescription4><CustomTableDescription5 /><CustomTableDescription6 /><CustomTableDescription7 /><CustomTableDescription8 /><CustomField1>centrifuga hotpoint ariston,estrattore di succo hotpoint ariston</CustomField1><CustomField2 /><CustomField3 /><UMSelling>PZ</UMSelling><UMInventory>PZ</UMInventory><QtyAvailable>3</QtyAvailable>
<QtyAvailableWeb>3</QtyAvailableWeb>
<QtySuppliersOrders>0</QtySuppliersOrders>
<ReorderTime>0</ReorderTime><MainCategory>2647</MainCategory><MainProdCategory>2647</MainProdCategory><ProdCategories>
<ProdCategory>
<Id>2647</Id><Code /><Name>ESTRATTORE DI SUCCO</Name><FullPathName>PRODOTTI FINITI / ESTRATTORE DI SUCCO</FullPathName></ProdCategory>
</ProdCategories>
<GrossWeight>0</GrossWeight>
<Volume>0</Volume>
<PackageLength>0</PackageLength>
<PackageWidth>0</PackageWidth>
<PackageHeight>0</PackageHeight>
<Tax>
<Id>1</Id><PercentAmount>22</PercentAmount>
</Tax>
<SellingPrices>
<SellingPrice>
<PriceListId>4</PriceListId><Price>118.85</Price>
<PriceIncludingVAT>145</PriceIncludingVAT>
</SellingPrice>
</SellingPrices>
<OfficialPriceList>
<Price>0</Price>
<PriceIncludingVAT>0</PriceIncludingVAT>
</OfficialPriceList>
<Photos></Photos>
<Barcodes>
<Barcode>
<Code>118165</Code></Barcode>
</Barcodes>
</Product>

Please Log in or Create an account to join the conversation.