How to use Find&Replace?

  • This topic has 2 replies, 2 voices, and was last updated 2 years ago by Marc.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #105885
    blankMarc
    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!

    #105886
    blankWPWhale
    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
    blankMarc
    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.