• Resolved andriy063

    (@andriy063)


    Hello
    1. How can I programmatically call (not through shortcode) function which generate Subscribe form?
    2. When fires notification?
    Because after

    update_post_meta( $product_id, '_stock_status', 'instock');
    update_post_meta( $product_id, '_manage_stock', 'yes');
    update_post_meta( $product_id, '_stock', '999');

    plugin don`t send any notifications to subscriber email, only after manual update in Console.

    Thanks for your time.

Viewing 1 replies (of 1 total)
  • @andriy063, you have to –
    1. call $WOO_Product_Stock_Alert->frontend’s function named ‘get_alert_form’ to generate subscribe form in single product page.
    2. When a product is in out of stock or from out of stock to instock, plugin’s notification are being sent. As per you if you manage your product stock by custom coding or third party plugins and if its done correctly then also plugin send respective notification by hourly calling cron functions- by `wp_schedule_event( time(), ‘hourly’, ‘dc_start_stock_alert’ );’

Viewing 1 replies (of 1 total)

The topic ‘Some questions’ is closed to new replies.