plugin updates
This commit is contained in:
@@ -71,7 +71,7 @@ if ( ! class_exists( 'Hubwoo' ) ) {
|
||||
$this->version = HUBWOO_VERSION;
|
||||
} else {
|
||||
|
||||
$this->version = '1.5.5';
|
||||
$this->version = '1.5.6';
|
||||
}
|
||||
|
||||
$this->plugin_name = 'makewebbetter-hubspot-for-woocommerce';
|
||||
@@ -286,6 +286,7 @@ if ( ! class_exists( 'Hubwoo' ) ) {
|
||||
if ( 'yes' == get_option( 'hubwoo_ecomm_deal_enable', 'yes' ) ) {
|
||||
|
||||
$this->loader->add_action( 'hubwoo_ecomm_deal_upsert', $plugin_admin, 'hubwoo_ecomm_deal_upsert' );
|
||||
$this->loader->add_action( 'hubwoo_ecomm_deal_update', $plugin_admin, 'hubwoo_ecomm_deal_update' );
|
||||
$this->loader->add_action( 'hubwoo_deals_sync_check', $plugin_admin, 'hubwoo_deals_sync_check' );
|
||||
$this->loader->add_action( 'hubwoo_products_sync_check', $plugin_admin, 'hubwoo_products_sync_check' );
|
||||
$this->loader->add_action( 'hubwoo_deals_sync_background', $plugin_admin, 'hubwoo_deals_sync_background', 10, 2 );
|
||||
@@ -298,7 +299,9 @@ if ( ! class_exists( 'Hubwoo' ) ) {
|
||||
// HubSpot deals hooks.
|
||||
if ( 'yes' == get_option( 'hubwoo_ecomm_setup_completed', 'no' ) ) {
|
||||
|
||||
$this->loader->add_action( 'save_post_shop_order', $plugin_admin, 'hubwoo_ecomm_deal_update_order' );
|
||||
if( 'yes' != get_option('woocommerce_custom_orders_table_enabled', 'no') ) {
|
||||
$this->loader->add_action( 'save_post_shop_order', $plugin_admin, 'hubwoo_ecomm_deal_update_order' );
|
||||
}
|
||||
}
|
||||
|
||||
$this->loader->add_action( 'hubwoo_contacts_sync_background', $plugin_admin, 'hubwoo_contacts_sync_background' );
|
||||
@@ -552,7 +555,7 @@ if ( ! class_exists( 'Hubwoo' ) ) {
|
||||
|
||||
if ( self::is_setup_completed() ) {
|
||||
|
||||
return get_option( 'hubwoo_pro_version', '1.5.5' );
|
||||
return get_option( 'hubwoo_pro_version', '1.5.6' );
|
||||
} else {
|
||||
|
||||
return HUBWOO_VERSION;
|
||||
@@ -2686,6 +2689,10 @@ if ( ! class_exists( 'Hubwoo' ) ) {
|
||||
as_schedule_recurring_action( time(), 300, 'hubwoo_deals_sync_check' );
|
||||
}
|
||||
|
||||
if ( ! as_next_scheduled_action( 'hubwoo_ecomm_deal_update' ) ) {
|
||||
as_schedule_recurring_action( time(), 300, 'hubwoo_ecomm_deal_update' );
|
||||
}
|
||||
|
||||
if ( ! as_next_scheduled_action( 'hubwoo_products_sync_check' ) ) {
|
||||
as_schedule_recurring_action( time(), 300, 'hubwoo_products_sync_check' );
|
||||
}
|
||||
@@ -2698,7 +2705,7 @@ if ( ! class_exists( 'Hubwoo' ) ) {
|
||||
as_schedule_recurring_action( time(), 86400, 'huwoo_abncart_clear_old_cart' );
|
||||
}
|
||||
|
||||
if ( ! as_next_scheduled_action( 'hubwoo_cron_schedule' ) || ! as_next_scheduled_action( 'hubwoo_deals_sync_check' ) ) {
|
||||
if ( ! as_next_scheduled_action( 'hubwoo_cron_schedule' ) || ! as_next_scheduled_action( 'hubwoo_deals_sync_check' ) || ! as_next_scheduled_action( 'hubwoo_ecomm_deal_update' ) ) {
|
||||
$cron_status['status'] = false;
|
||||
$cron_status['type'] = esc_html__( 'You are having issues with your MWB HubSpot for WooCommerce sync. Please read this doc on how to fix your integration.', 'makewebbetter-hubspot-for-woocommerce' );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user