• Hi,
    Can i use something like a php statement, were the value of one field can “change” the value of another (*does not have to be php)
    Something like this:
    if [alg_product_stock_quantity] = 0 {<shipping_time>6</shipping_time>} else {<shipping_time>0</shipping_time>}

    or
    if [alg_product_stock_quantity] > 0
    {<shipping_time>0</shipping_time>} else {<shipping_time>6</shipping_time>}

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Omar AlDabbas

    (@omardabbas)

    Hi @gatsman

    Unfortunately no, this logic isn’t available in the plugin, we have an attribute on_empty_apply_shortcodes?but I don’t think it meets what you need here, you can check full list of attributes in the plugin main page for further details.

    Omar

    Thread Starter gatsman

    (@gatsman)

    Thank you for the reply, yes on_empty will not help me in this.
    I was trying the find/replace and i found something else interesting
    If you set something like this: find=”0″ replace=”zero”
    It will replace all 0 with zero so if it finds the number 20 you will end up with “2zero”. This might by “true” but for me not the expected result. I was expecting the rule to be more strict…

    Plugin Author Omar AlDabbas

    (@omardabbas)

    Unfortunately no, and yes because the find works on text-based search.

    We will be working soon on revamping the plugin, so hopefully we will be able to include some if/else conditions. Sorry for not being able to help further here.

    Omar

    Thread Starter gatsman

    (@gatsman)

    No worries i just thought i tell you.
    Good to know you are upgrading the plugin with the conditions addon i will need the pro version for sure.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘If Statement’ is closed to new replies.