• Resolved Sn00z389

    (@webmakers2011)


    Hello,

    my attributes syntax is:

    <attributes>
        <attribute_group name="group1">
             <attribute name="name1"></attribute>
             <attribute name="name2"></attribute>
             <attribute name="name3"></attribute>
        </attribute_group>
    

    <attribute_group name=”group2″>
    <attribute name=”name22″></attribute>
    <attribute name=”name23″></attribute>
    <attribute name=”name24″></attribute>
    </attribute_group>`
    </attributes>`

    However the attributes are not arranged properly and it needs them to select them by their name, not their order in the XML and also it must completely ignore their groups.

    Best Regards,

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

    (@wpallimport)

    Hey @webmakers2011,

    You can use XPath queries to grab the attributes based on the “name” value, e.g.:

    {attributes/attribute_group/attribute[./@name="name3"]}
    {attributes/attribute_group/attribute[./@name="name23"]}
    {attributes/attribute_group/attribute[./@name="name24"]}

    Let me know if you have any other questions.

    Thread Starter Sn00z389

    (@webmakers2011)

    Thank you! This works great! ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Import Product Attributes by Name’ is closed to new replies.