How to use Find&Replace?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #105885
    Marc
    Guest

    Hi,

    I tried find&replace for two values but it did not work. I have:

    <g:availability>[alg_product_stock_availability find="Nicht vorrätig, Vorrätig" replace="out of stock, in stock"]</g:availability>

    It works if I only use one, for example

    <g:availability>[alg_product_stock_availability find="Vorrätig" replace="in stock"]</g:availability>

    but not the two.

    Thanks!

    • This topic was modified 11 months, 1 week ago by Omar Dabbas.
    #105886
    WPWhale
    Moderator

    Hi Marc,

    Can you try removing the spaces between values, and also adding find_replace_sep="," at the end? So it looks like:

    [alg_product_stock_availability find="Nicht vorrätig,Vorrätig" replace="out of stock,in stock" find_replace_sep=","]

    Let me know if that solves it.
    Omar

    #105887
    Marc
    Guest

    Thank you, yes, that worked!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.