Daniel Espinoza
Forum Replies Created
-
Forum: Reviews
In reply to: [Pushover Integration for WooCommerce] Exactly what I was looking forThank you! I’m glad it is useful for you!
Forum: Reviews
In reply to: [Pushover Integration for WooCommerce] works perfectThank you!
Forum: Plugins
In reply to: [Pushover Integration for WooCommerce] Stopped working after latest UpdatesA few steps to debug:
1. Turn on logging and place an order. Check the log for output and any related error messages.
2. The New Order code is here and is going to be hooked in to the woocommerce_thankyou hook. If you’re using a custom theme that removes that hook it won’t fire.
Try switching to a base theme like TwentyTwenty or Storefront and place an order to see if it fires.Forum: Plugins
In reply to: [Pushover Integration for WooCommerce] Stopped working after latest UpdatesHi ccolotti,
I just checked the current version of the Pushover plugin with the versions of WP and WC you listed and I was able to receive test and New Order notifications.
Which notifications are not working?
Also, when a new order is created, what status does it go to (pending, completed)?Thanks,
Daniel
Forum: Plugins
In reply to: [Pushover Integration for WooCommerce] Not recieving new order notificationHi @andrechi,
In the site’s WordPress Dashboard go to WooCommerce > Settings > Integration > Pushover and make sure Enable/Disable is checked, and New Order is checked.
The New Order message is hooked into the ‘woocommerce_thankyou’ action. If that doesn’t fire the notice won’t be sent.
Forum: Plugins
In reply to: [Pushover Integration for WooCommerce] Add event nameYou’re welcome. Version 1.0.18 is now available.
Forum: Plugins
In reply to: [Pushover Integration for WooCommerce] Add event nameI will deploy version 1.0.18 today and it will have the
$order_id
in the hook.
Here is a gist that will add product meta to the notification:https://gist.github.com/growdev/03a5dbeca1a436165a7cc214075c94ad
<?php /** * Hook into Pushover send notification on new order and add something to the title from order. * * @hook 'wc_pushover_notify_new_order' * @param $args * @return mixed */ function sp_wc_pushover_notify_new_order( $args ) { if ( isset( $args['order_id'] ) ) { $order_id = $args['order_id']; $meta = get_post_meta( $order_id, '_billing_country', true ); if ( $meta ) { // Add to title $args['title'] .= ' Country is ' . $meta; // Modify the message //$args['message'] = ''; // Modify the URL //$args['url'] = ''; } } return $args; } add_filter( 'wc_pushover_notify_new_order', 'sp_wc_pushover_notify_new_order', 10 );
Forum: Plugins
In reply to: [Pushover Integration for WooCommerce] Add event namehello @puntorosso,
Thanks for the detailed question. Are you familiar with using WordPress filters?
There is a filter in the notify_new_order() method that can be used to modify the Title or the Message before the notification is sent. I will need to add $order_id to the $args array so you can pull the _event_name meta.
How does that sound?
This plugin is intended to integrate WooCommerce with the Pushover app and it does what it says it will do.
You requested integration with an unnamed 3rd party application which the plugin does not say it will do. This review is off-topic.
Hello @livedub,
You would need to hire a developer to add an integration with the 3rd party app.
Forum: Plugins
In reply to: [Pushover Integration for WooCommerce] Is there is issue with plugin?Hello @sdatas,
The Send Test Notification button in the admin area is now working with version 1.0.17.
All other notifications are working as expected.
Thanks,
Daniel
Forum: Plugins
In reply to: [Pushover Integration for WooCommerce] a function for custom pushHi @ashf,
You can use the WC_Pushover::send_notification() with arguments in an array like this:
$this->send_notification(array( 'title' => $title, 'message' => $message, 'url' => $url ));
The method is public so you should be able to create an instance of the class and call the method.
- This reply was modified 5 years, 9 months ago by Daniel Espinoza.
Forum: Plugins
In reply to: [TaxJar - Sales Tax Automation for WooCommerce] PHP Notice in Version 2.0.1Fantastic, thanks for the heads up!
Have a great day!
Please open a new ticket at https://convertkit.com/support/
by pressing “Open a Ticket” or use an already open ticket.
Ask that the ticket be directed to the WordPress plugin developer.Thanks!
Forum: Plugins
In reply to: [Gravity Forms ConvertKit Add-On] Convertkit – Gravity Forms:Please go to
[yopur site]/wp-admin/admin.php?page=gf_settings&subview=ckgf
and make sure there is an API Key added.