• Resolved gfarma

    (@farmakomitis)


    Hi,

    I have 2 questions:

    1. Can I use a custom field (by ACF) as a unique identifier from my site and connect it with the SKU of the xml?
    2. Can we somehow change the dynamic values of the invetory like this:

    If the xml has for example:

    /3-5 days
    /5-10 days
    /10-15 days
    I would luke to make it on backorder

    and if it has:
    /1-3 days
    /instock
    /1-5 days
    To make it in stock

    and it is out of stock at the xml to return it out of stock

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

    (@wpallimport)

    Hi @farmakomiti,

    Can I use a custom field (by ACF) as a unique identifier from my site and connect it with the SKU of the xml?

    I’m sorry, but I’m not sure if I fully understand the question. Can you elaborate and share screenshots?

    Can we somehow change the dynamic values of the invetory like this:

    You can use inline XPath IF statements for that. Here’s an example that checks the {stock[1]} import element for the values you mentioned and returns the appropriate stock status:

    [IF({stock[1][contains(.,"3-5 days") or contains(.,"5-10 days") or contains(.,"10-15 days")]})]onbackorder[ELSEIF({stock[1][contains(.,"1-3 days") or contains(.,"instock") or contains(.,"1-5 days")]})]instock[ELSE]outofstock[ENDIF]
    Thread Starter gfarma

    (@farmakomitis)

    Thanks,

    Regarding my first question, I want to ask you what value can I use as unique identifier for products.

    I have an custom field at the product of the site as “CODE” by acf, can I map this custom field it with xml’s sku value? for unique identifier?

    Plugin Author WP All Import

    (@wpallimport)

    Hi @farmakomitis,

    Yes, if you have the ACF value in your import file you can use it as the unique identifier. But, I would strongly suggest that you read about the import types and the unique identifier in the following docs before setting up the import:

    Thread Starter gfarma

    (@farmakomitis)

    Thanks 🙂

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

The topic ‘unique identifier & dynamic inventory values’ is closed to new replies.