Support » Plugin: Dynamic Conditions » Hide if OUT OF STOCK

  • Resolved mikekellner

    (@mikekellner)


    Hi there,

    I’m trying to use your plugin with Elementor and WooCommerce. I would like to display or hide a form depending on its stock level.

    • The condition is if Product Stock ‘is equal to’ 0
    • hide the contact form on this page.

    Unfortunately i don’t succeed to write the right condition. Do I have to use text = 0 or = Out_of_stock or anything else to use it?

    Thanks for your help.

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

    (@rtowebsites)

    Hello,

    Unfortunately we do not currently use WooCommerce and therefore do not know what their DynamicTags return.
    We would recommend activating the debug mode and checking what is in DynamicTag-Value.

    • This reply was modified 11 months, 4 weeks ago by rtowebsites.
    Thread Starter mikekellner

    (@mikekellner)

    Thank you for your reply.

    So using the debug mode, the dynamic tag is showing as: woocommerce-product-stock-tag

    https://ibb.co/yP66DZK

    Now what do I do with it to use that dynamic tag?

    • This reply was modified 11 months, 3 weeks ago by mikekellner.

    It worked for me with these settings:

    Dynamic Tag: Post Custom Field
    Custom Key: “_stock_status”
    Show/Hide: Hide when condition
    Condition: “is equal to”
    Conditional value: “outofstock”

    Hope this helps!

    Thread Starter mikekellner

    (@mikekellner)

    Thanks so much @coltd2014 – That worked a treat!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hide if OUT OF STOCK’ is closed to new replies.