• Resolved duanedoogan

    (@duanedoogan)


    Basically, I know when the order total has been reached it calls the WooCommerce Notices panel, but I want to add something to my homepage or header.

    So is there a way to call the plugin like if plugin orders reached? Is there a function or variable I can reference in my if statement? So I can then use it to show a div or whatever.

    Thanks,
    Duane

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter duanedoogan

    (@duanedoogan)

    Actually – what I’m looking to do now is show the ‘customer notice’ on parts of my template, I’ve called WordPress errors manually but it won’t show outside of shop pages.

    Plugin Contributor Steve Grunwell

    (@stevegrunwell)

    Hi @duanedoogan,

    The OrderLimiter::customer_notice() method is designed to only display on WooCommerce pages (since it’s using wc_add_notice()), but you can access the localized messages via the get_message() method (take a peak at the source for customer_notice() to see how).

    In response to your earlier question, I’ve added a new issue so in future releases it’ll be easier to tie into the limiter when once it disables ordering.

    I hope that helps!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Is there a way to call when the plugin is ‘active’?’ is closed to new replies.