• Resolved gostomek

    (@gostomek)


    Hello,

    How can I mapped SKU tag if in the XML file it is visible as “productCode” in different lines.

    When I get it in plugin I have. It depends of many tags. How get it in all XML file.

    {//offer/property[4]/@name}
    
    or
    
    {//offer/property[5]/@name}
    
    or
    
    {//offer/property[6]/@name}

    1 example:

    <property name="Opakowanie">4</property>
    <property name="Wymiary">(h)105</property>
    <property name="Pojemno??">426</property>
    <property name="categoryId">2202</property>
    <property name="productCode">SWHSSB151</property>
    <property name="largeSize">0</property>
    <property name="tillStockLasts">0</property>
    <property name="basePrice">165.30</property>
    <property name="productId">24637</property>

    2 example:

    <property name="Opakowanie">12</property>
    <property name="Wymiary">65x(h)55</property>
    <property name="Pojemno??">100</property>
    <property name="Kolor"/>
    <property name="categoryId">2209</property>
    <property name="productCode">PLGRCEB91</property>
    <property name="largeSize">0</property>
    <property name="tillStockLasts">0</property>
    <property name="basePrice">46.30</property>
    <property name="productId">24698</property>

    3 example:

    <property name="Wymiary">230x(h)1</property>
    <property name="Opakowanie">1</property>
    <property name="categoryId">2215</property>
    <property name="productCode">B2414013</property>
    <property name="largeSize">0</property>
    <property name="tillStockLasts">0</property>
    <property name="basePrice">57.00</property>
    <property name="productId">24608</property>

    Other topic:

    Is it the only map EAN code from XML as woocomerce extra attribute?
    BR,

    Kamil

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support rzepsen

    (@rzepsen)

    Hi Kamil,

    Thanks for contacting us. You should try this rule {//offer/property[@name="productCode"]} This line should display the product code based on the name rather than the item number in the XML feed.

    You can map EAN code to SKU or attribute fields.

    If you have more questions, feel free to contact me.

    • This reply was modified 11 months, 2 weeks ago by rzepsen.
    Thread Starter gostomek

    (@gostomek)

    Thank you ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problem with mapping SKU’ is closed to new replies.