Home Forums WC Vendors Free Support Mail to Vendor when Product sales period is over

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #31958
    flowe
    Participant

    Hy,
    Maybe somebody knows this:
    Is there a way to automatically send a mail to a vendor when the sales period for one of his products ends?
    Any help would be appreciated 🙂
    flpow

    #31975
    WC Vendors Support
    Participant

    If you can find an action in WooCommerce that fires during the sale price removal, you could hook into that with wp_mail. If that action exists I’m not sure though, if you find one let me know! 🙂

    #32211
    flowe
    Participant

    Hy Ben,
    took a while, but here’s the answer from the WooNinjas:

    You may find the following code useful: https://github.com/woothemes/woocommerce/blob/fce8dc0868439474c24f7317af50ce7627f0d1c1/includes/wc-product-functions.php#L404-L442.
    You may be able to remove the action and add a customized version.

    Unfortunately, this is beyond my skills – is there a quick fix you can easily provide or is this a fairly customizing thing?
    Best
    Flo

    #32254
    WC Vendors Support
    Participant

    You’d have to:

    remove_action( 'woocommerce_scheduled_sales', 'wc_scheduled_sales' );

    And then create your own function that hooks into woocommerce_scheduled_sales, does the same thing, and also adds the email.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘WC Vendors Free Support’ is closed to new topics and replies.