• Resolved steveklt

    (@steveklt)


    Hello,
    I have the following problem. The xml I try to import has the path <AVAILABILITY>1</AVAILABILITY> for available products or <AVAILABILITY>0</AVAILABILITY> for out of stock products. How can I tell the plugin to translate “1” to “instock” and “2” to “outofstock” or any other solution maybe? Thank you in advance.

Viewing 1 replies (of 1 total)
  • Thread Starter steveklt

    (@steveklt)

    I managed to do it, reffering to an older post. The solution for me was as following [str_replace( array( "1", "0" ), array( "instock", "outofstock" ), {AVAILABILITY[1]} )]
    I post it to help everyone else that have the same problem.

    • This reply was modified 6 years, 8 months ago by steveklt.
Viewing 1 replies (of 1 total)
  • The topic ‘Stock status from xml marked as, 1 for available, 0 for out of stock’ is closed to new replies.