• Resolved k4mr4n

    (@k4mr4n)


    I have xml with products and each product has multiple attributes, each product have different number of attributes, I want to use foreach loop to add al this attributes. Is there a way to use foreach loop to add this attributes for each product instead of manually
    Below is the one product attribute xml

    <Attributes>
    <Attribute name="Ürün Detayı">
    <![CDATA[ Kürk/Peluş/Şerpa ]]>
    </Attribute>
    <Attribute name="Desen">
    <![CDATA[ Düz ]]>
    </Attribute>
    <Attribute name="Materyal">
    <![CDATA[ Pamuklu ]]>
    </Attribute>
    <Attribute name="Stil">
    <![CDATA[ Trend ]]>
    </Attribute>
    <Attribute name="Yaka">
    <![CDATA[ Kalp Yaka ]]>
    </Attribute>
    <Attribute name="Renk">
    <![CDATA[ Pembe ]]>
    </Attribute>
    <Attribute name="Kumaş / İplik">
    <![CDATA[ Pamuk Polyester ]]>
    </Attribute>
    <Attribute name="Kumaş Tipi">
    <![CDATA[ Örme ]]>
    </Attribute>
    <Attribute name="Kol Boyu">
    <![CDATA[ Askılı ]]>
    </Attribute>
    <Attribute name="Kalıp">
    <![CDATA[ Crop ]]>
    </Attribute>
    <Attribute name="Ürün Tipi">
    <![CDATA[ Düz ]]>
    </Attribute>
    <Attribute name="Kol Tipi">
    <![CDATA[ Askılı ]]>
    </Attribute>
    <Attribute name="Kap">
    <![CDATA[ Sabit Kap ]]>
    </Attribute>
    <Attribute name="Kesim">
    <![CDATA[ Crop ]]>
    </Attribute>
    </Attributes>

    Different product can have different number of attributes and its values

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WP All Import

    (@wpallimport)

    Hi @k4mr4n,

    Is there a way to use foreach loop to add this attributes for each product instead of manually

    Currently, using our built-in options, you’d have to manually map each possible attribute & value. Empty ones will be ignored on a per-record basis.

    That said, if you’re comfortable with PHP, you can programmatically add them to the products with a foreach loop using custom code and our API: http://www.wpallimport.com/documentation/developers/action-reference/.

    Plugin Author WP All Import

    (@wpallimport)

    Hi @k4mr4n,

    This thread has been inactive for a while, so I’m going to go ahead and mark it as resolved. Please open a new topic if you still have questions.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Import multiple attributes’ is closed to new replies.