Support is offline. We are back Tuesday 10 November, 09:00.

import stockable with child customfields #85934

Resolved Locked soura123 opened this topic Monday, 16 March 2026 · 6 replies
Author

can you give me an example how the xml file should be to import a parent product with 2 childs the parent is stockablecustomfield and the child with customfieldsforall
i can import it correctly when stockable and string but i can not get it done with stockable and customfieldsforall

Support

Hello,
Importing customfieldsforall in stockablecustom fields is explained in Stockable variants import document under Custom fields for all with Stockable custom fields section. The document has example in CSV format but it is no different for XML. All you need to do is creating field as type customfieldsforall and include it in import file like how you do it for string custom field. Let me know if you still need more help.

Kind regards,

Tharuna

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

Author

this thread is for string
and i said with string i manage to do it but with child to customfields4all i dont know how to do the xml file import just an example below please edit that and tell me

<?xml version="1.0" encoding="UTF-8"?>
<export>

<product>
<sku><![CDATA[giannistest]]></sku>
	<customname>Μπερές COUPE</customname>
<custom_param></custom_param>
<custom_title><![CDATA[Test Size-Color~Test Size-Color]]></custom_title>
<custom_value><![CDATA[stockablecustomfields~stockablecustomfields]]></custom_value>
<custom_multiple><![CDATA[]]></custom_multiple>
</product>

<product>
<sku><![CDATA[giannistest1]]></sku>
	<customname>Μπερές COUPE 1</customname>
	<parent_sku><![CDATA[giannistest]]></parent_sku>
<custom_param><![CDATA[One Size~BEIGE]]></custom_param>
<custom_title><![CDATA[testsizes~testcolors~]]></custom_title>
<custom_value><![CDATA[~]]></custom_value>

</product>

<product>
<sku><![CDATA[giannistest2]]></sku>
	<customname>Μπερές COUPE 2</customname>
	<parent_sku><![CDATA[giannistest]]></parent_sku>
<custom_param><![CDATA[One Size~Γκρι Ανοιχτό]]></custom_param>
<custom_title><![CDATA[testsizes~testcolors~]]></custom_title>
<custom_value><![CDATA[~]]></custom_value>

</product>

</export>
Author

and here is a test import template

Author

find it
the parent_id column was missing from custom fileds db

Support

Hello,
parent_id column is for dependentcustomfieldsforall. You did not mention about any error or about parent_id issue in your initial post. You had error with import? Is it solved now?

Kind regards,

Tharuna

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

Author

i do not use dependcustomfieldfor all
with the parnet id soved the issue i had anyway

This topic is locked. New replies are not possible.

Log in to reply to this topic.