Changeset 3256791
- Timestamp:
- 03/17/2025 12:00:50 AM (13 months ago)
- Location:
- es-woocommerce-activecampaign/trunk
- Files:
-
- 3 edited
-
class-es-wc-integration-activecampaign.php (modified) (8 diffs)
-
es-woocommerce-activecampaign.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
es-woocommerce-activecampaign/trunk/class-es-wc-integration-activecampaign.php
r3211949 r3256791 11 11 * @class ES_WC_Integration_ActiveCampaign 12 12 * @extends WC_Integration 13 * @version 2.1. 813 * @version 2.1.9 14 14 * @package WooCommerce ActiveCampaign 15 15 * @author EqualServing … … 95 95 96 96 // Hooks 97 add_action( 'admin_notices', array( &$this, ' checks' ) );97 add_action( 'admin_notices', array( &$this, 'add_settings_errors' ) ); 98 98 add_action( 'woocommerce_update_options_integration_' . $this->id, array( $this, 'process_admin_options') ); 99 99 … … 125 125 } 126 126 127 function add_settings_errors() { 128 if ( $error = get_transient( "es_wc_activecampaign_errors" ) ) { ?> 129 <div class="notice notice-error is-dismissible"> 130 <p><strong>ActiveCampaign error</strong>: <?php echo $error; ?></p> 131 </div><?php 132 133 delete_transient("es_wc_activecampaign_errors"); 134 } 135 } 136 137 127 138 /** 128 139 * Check if the user has enabled the plugin functionality, but hasn't provided an api key. … … 135 146 global $pagenow; 136 147 137 if ( $error = get_transient( "es_wc_activecampaign_errors" ) ) { ?> 138 <div class="error notice"> 139 <p><strong>ActiveCampaign error</strong>: <?php echo $error; ?></p> 140 </div><?php 141 142 delete_transient("es_wc_activecampaign_errors"); 143 } 144 148 delete_transient( 'es_wc_activecampaign_list_' . md5( $this->activecampaign_key ) ); 145 149 if ($pagenow == "admin.php" && isset($_REQUEST["page"]) && $_REQUEST["page"] == "wc-settings" && isset($_REQUEST["tab"]) && $_REQUEST["tab"] == "integration") { 146 150 if ( $this->enabled == 'yes' ) { … … 148 152 if(!$this->has_api_info()) { 149 153 if (!$this->has_key() && !$this->has_url()) { 150 echo '<div class=" error notice"><p>' . sprintf( __('<strong>ActiveCampaign error</strong>: Please enter your API URL and Key <a href="%s">here</a>', 'es_wc_activecampaign'), admin_url('options-general.php?page=activecampaign' ) ) . '</p></div>';154 echo '<div class="notice notice-error is-dismissible"><p>' . sprintf( __('<strong>ActiveCampaign error</strong>: Please enter your API URL and Key <a href="%s">here</a>', 'es_wc_activecampaign'), admin_url('admin.php?page=wc-settings&tab=integration§ion=activecampaign' ) ) . '</p></div>'; 151 155 } elseif (!$this->has_key() ) { 152 echo '<div class=" error notice"><p>' . sprintf( __('<strong>ActiveCampaign error</strong>: Please enter your API Key <a href="%s">here</a>', 'es_wc_activecampaign'), admin_url('options-general.php?page=activecampaign' ) ) . '</p></div>';156 echo '<div class="notice notice-error is-dismissible"><p>' . sprintf( __('<strong>ActiveCampaign error</strong>: Please enter your API Key <a href="%s">here</a>', 'es_wc_activecampaign'), admin_url('admin.php?page=wc-settings&tab=integration§ion=activecampaign' ) ) . '</p></div>'; 153 157 } elseif (!$this->has_url()) { 154 echo '<div class=" error notice"><p>' . sprintf( __('<strong>ActiveCampaign error</strong>: Please enter your API Key <a href="%s">here</a>', 'es_wc_activecampaign'), admin_url('options-general.php?page=activecampaign' ) ) . '</p></div>';158 echo '<div class="notice notice-error is-dismissible"><p>' . sprintf( __('<strong>ActiveCampaign error</strong>: Please enter your API Key <a href="%s">here</a>', 'es_wc_activecampaign'), admin_url('admin.php?page=wc-settings&tab=integration§ion=activecampaign' ) ) . '</p></div>'; 155 159 } 156 160 return; … … 179 183 $error_msg = sprintf( __( 'ActiveCampaign credentials check failed: %s', 'es_wc_activecampaign' ), $error_msg_object->get_error_message() ) ; 180 184 $this->log_this("error", $error_msg); 181 $this->error_msg = $ msg;185 $this->error_msg = $error_msg; 182 186 set_transient("es_wc_activecampaign_errors", $error_msg, 45); 183 187 … … 446 450 public function init_form_fields() { 447 451 if ( is_admin() ) { 452 delete_transient("es_wc_activecampaign_errors"); 448 453 if ($this->has_api_info()) { 449 454 array_merge( array( '' => __('Select a list...', 'es_wc_activecampaign' ) ), $this->activecampaign_lists ); … … 972 977 973 978 function admin_options() { 974 echo '<table><tbo by><tr><td>';979 echo '<table><tbody><tr><td>'; 975 980 echo '<div class="column-2">'; 976 981 echo '<h3>'; 977 982 _e( 'ActiveCampaign', 'es_wc_activecampaign' ); 978 983 echo '</h3>'; 984 $this->checks(); 985 979 986 if ($this->dependencies_found) { 980 987 echo '<p>'; -
es-woocommerce-activecampaign/trunk/es-woocommerce-activecampaign.php
r3211949 r3256791 4 4 Plugin URI: https://www.equalserving.com/wordpress-plugins-equalserving/woocommerce-with-activecampaign/ 5 5 Description: Integrates Woocommerce with ActiveCampaign by adding customers to ActiveCampaign at time of purchase. 6 Version: 2.1. 86 Version: 2.1.9 7 7 Author: EqualServing.com 8 8 Author URI: http://www.equalserving.com/ 9 Tested up to: 6.7. 19 Tested up to: 6.7.2 10 10 WC requires at least: 3.6 11 WC tested up to: 9. 5.111 WC tested up to: 9.7.1 12 12 */ 13 13 -
es-woocommerce-activecampaign/trunk/readme.txt
r3211949 r3256791 7 7 Requires at least: 4.4 8 8 Requires PHP: 5.3 9 Tested up to: 6.7. 110 Stable tag: 2.1. 89 Tested up to: 6.7.2 10 Stable tag: 2.1.9 11 11 WC requires at least: 3.6 12 WC tested up to: 9. 5.112 WC tested up to: 9.7.1 13 13 14 14 Easily add ActiveCampaign integration to WooCommerce. … … 70 70 71 71 == Changelog == 72 73 = 2.1.9 = 74 75 Release Date: Mar 16, 2025 76 77 * Change timing of server outage errors. 72 78 73 79 = 2.1.8 =
Note: See TracChangeset
for help on using the changeset viewer.