Skip to content

Commit

Permalink
Merge pull request #224 from addonify/development
Browse files Browse the repository at this point in the history
Tested against WordPress version 6.5 and WooCommerce version 8.7.0
  • Loading branch information
Asok17 authored Apr 3, 2024
2 parents 78f1f15 + 52da15e commit 11a813f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 16 deletions.
9 changes: 7 additions & 2 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
Contributors: addonify
Tags: compare, woocommerce compare, products comparison, compare products, compare woocommerce, addonify, woocommerce
Requires at least: 6.3
Tested up to: 6.4.2
Stable tag: 1.1.13
Tested up to: 6.5
Stable tag: 1.1.14
Requires PHP: 7.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -102,6 +102,11 @@ Yes, you can do it. Copy template from "/public/templates" the plugin's folder a

== Changelog ==

= 1.1.14 - 03 April, 2024 =

- Tested: WordPress version 6.5.
- Tested: WooCommerce version 8.7.0.

= 1.1.13 - 17 January, 2024 =

- Fixed: Comparison table not displaying in comparison page.
Expand Down
30 changes: 16 additions & 14 deletions addonify-compare-products.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
* Plugin Name: Addonify - Compare Products For WooCommerce
* Plugin URI: https://wordpress.org/plugins/addonify-compare-products/
* Description: Addonify Compare Products is a WooCommerce extension that allows website visitors to compare multiple products on your online store.
* Version: 1.1.13
* Tested up to: 6.4.2
* Version: 1.1.14
* Tested up to: 6.5
* Requires at least: 6.3
* Requires PHP: 7.4
* Author: Addonify
Expand All @@ -20,14 +20,15 @@
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: addonify-compare-products
* Domain Path: /languages
* Requires Plugins: woocommerce
*/

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}

define( 'ADDONIFY_COMPARE_PRODUCTS_VERSION', '1.1.13' );
define( 'ADDONIFY_COMPARE_PRODUCTS_VERSION', '1.1.14' );
define( 'ADDONIFY_COMPARE_PRODUCTS_BASENAME', plugin_basename( __FILE__ ) );
define( 'ADDONIFY_CP_DB_INITIALS', 'addonify_cp_' );
define( 'ADDONIFY_CP_PLUGIN_PATH', dirname( __FILE__ ) );
Expand Down Expand Up @@ -72,17 +73,18 @@ function run_addonify_compare_products() {
$plugin = new Addonify_Compare_Products();
$plugin->run();
} else {
add_action(
'admin_notices',
function() {
?>
<div class="notice notice-error is-dismissible">
<p><?php esc_html_e( 'Addonify Compare Products is enabled but not effective. This plugin requires WooCommerce plugin in order to work.', 'addonify-compare-products' ); ?></p>
</div>
<?php
}
);
if ( version_compare( get_bloginfo( 'version' ), '6.5', '<' ) ) {
add_action(
'admin_notices',
function() {
?>
<div class="notice notice-error is-dismissible">
<p><?php esc_html_e( 'Addonify Compare Products is enabled but not effective. This plugin requires WooCommerce plugin in order to work.', 'addonify-compare-products' ); ?></p>
</div>
<?php
}
);
}
}

}
add_action( 'plugins_loaded', 'run_addonify_compare_products' );

0 comments on commit 11a813f

Please sign in to comment.