Version Description
- Added filters for menu item data
- Fix: backwards compatibility for WooCommerce 3.2
- Tested up to WooCommerce 4.5
Download this release
Release Info
Developer | wpovernight |
Plugin | WooCommerce Menu Cart |
Version | 2.9.5 |
Comparing to | |
See all releases |
Code changes from version 2.9.4.1 to 2.9.5
- includes/wpmenucart-edd.php +1 -1
- includes/wpmenucart-eshop.php +1 -1
- includes/wpmenucart-jigoshop.php +1 -1
- includes/wpmenucart-woocommerce.php +2 -2
- includes/wpmenucart-wpec.php +1 -1
- readme.txt +6 -1
- wp-menu-cart.php +3 -3
includes/wpmenucart-edd.php
CHANGED
@@ -18,7 +18,7 @@ if ( ! class_exists( 'WPMenuCart_EDD' ) ) {
|
|
18 |
'cart_total' => edd_currency_filter( edd_format_amount( edd_get_cart_total() ) ),
|
19 |
);
|
20 |
|
21 |
-
return $menu_item;
|
22 |
}
|
23 |
}
|
24 |
}
|
18 |
'cart_total' => edd_currency_filter( edd_format_amount( edd_get_cart_total() ) ),
|
19 |
);
|
20 |
|
21 |
+
return apply_filters( 'wpmenucart_menu_item_data', $menu_item );
|
22 |
}
|
23 |
}
|
24 |
}
|
includes/wpmenucart-eshop.php
CHANGED
@@ -46,7 +46,7 @@ if ( ! class_exists( 'WPMenuCart_eShop' ) ) {
|
|
46 |
'cart_total' => $eshoptotal,
|
47 |
);
|
48 |
|
49 |
-
return $menu_item;
|
50 |
}
|
51 |
}
|
52 |
}
|
46 |
'cart_total' => $eshoptotal,
|
47 |
);
|
48 |
|
49 |
+
return apply_filters( 'wpmenucart_menu_item_data', $menu_item );
|
50 |
}
|
51 |
}
|
52 |
}
|
includes/wpmenucart-jigoshop.php
CHANGED
@@ -24,7 +24,7 @@ if ( ! class_exists( 'WPMenuCart_Jigoshop' ) ) {
|
|
24 |
'cart_total' => $total,
|
25 |
);
|
26 |
|
27 |
-
return $menu_item;
|
28 |
}
|
29 |
}
|
30 |
}
|
24 |
'cart_total' => $total,
|
25 |
);
|
26 |
|
27 |
+
return apply_filters( 'wpmenucart_menu_item_data', $menu_item );
|
28 |
}
|
29 |
}
|
30 |
}
|
includes/wpmenucart-woocommerce.php
CHANGED
@@ -18,7 +18,7 @@ if ( ! class_exists( 'WPMenuCart_WooCommerce' ) ) {
|
|
18 |
'cart_contents_count' => $this->get_cart_contents_count(),
|
19 |
);
|
20 |
|
21 |
-
return $menu_item;
|
22 |
}
|
23 |
|
24 |
public function maybe_load_cart() {
|
@@ -65,7 +65,7 @@ if ( ! class_exists( 'WPMenuCart_WooCommerce' ) ) {
|
|
65 |
|
66 |
public function get_cart_total() {
|
67 |
$settings = get_option('wpmenucart');
|
68 |
-
if ( defined('WC_VERSION') && version_compare( WC_VERSION, '3.
|
69 |
if (isset($settings['total_price_type']) && $settings['total_price_type'] == 'subtotal') {
|
70 |
if ( WC()->cart->display_prices_including_tax() ) {
|
71 |
$cart_contents_total = wc_price( WC()->cart->get_subtotal() + WC()->cart->get_subtotal_tax() );
|
18 |
'cart_contents_count' => $this->get_cart_contents_count(),
|
19 |
);
|
20 |
|
21 |
+
return apply_filters( 'wpmenucart_menu_item_data', $menu_item );
|
22 |
}
|
23 |
|
24 |
public function maybe_load_cart() {
|
65 |
|
66 |
public function get_cart_total() {
|
67 |
$settings = get_option('wpmenucart');
|
68 |
+
if ( defined('WC_VERSION') && version_compare( WC_VERSION, '3.3', '>=' ) ) {
|
69 |
if (isset($settings['total_price_type']) && $settings['total_price_type'] == 'subtotal') {
|
70 |
if ( WC()->cart->display_prices_including_tax() ) {
|
71 |
$cart_contents_total = wc_price( WC()->cart->get_subtotal() + WC()->cart->get_subtotal_tax() );
|
includes/wpmenucart-wpec.php
CHANGED
@@ -18,7 +18,7 @@ if ( ! class_exists( 'WPMenuCart_WPEC' ) ) {
|
|
18 |
'cart_total' => wpsc_cart_total_widget( false, false ,false ),
|
19 |
);
|
20 |
|
21 |
-
return $menu_item;
|
22 |
}
|
23 |
/**
|
24 |
* action hook for wp-e-commerce to provide our own AJAX cart updates
|
18 |
'cart_total' => wpsc_cart_total_widget( false, false ,false ),
|
19 |
);
|
20 |
|
21 |
+
return apply_filters( 'wpmenucart_menu_item_data', $menu_item );
|
22 |
}
|
23 |
/**
|
24 |
* action hook for wp-e-commerce to provide our own AJAX cart updates
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: woocommerce, menu, bar, cart, basket, header, shopping cart, navigation, e
|
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 5.5
|
7 |
Requires PHP: 5.3
|
8 |
-
Stable tag: 2.9.
|
9 |
|
10 |
Automatically displays a shopping cart in your menu bar. Works with WooCommerce, WP-Ecommerce, EDD, Eshop and Jigoshop
|
11 |
|
@@ -85,6 +85,11 @@ Once the plugin is activated navigate to Settings > Menu Cart Setup. Select your
|
|
85 |
|
86 |
== Changelog ==
|
87 |
|
|
|
|
|
|
|
|
|
|
|
88 |
= 2.9.4.1 =
|
89 |
* Fix plugin header issue for new installs
|
90 |
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 5.5
|
7 |
Requires PHP: 5.3
|
8 |
+
Stable tag: 2.9.5
|
9 |
|
10 |
Automatically displays a shopping cart in your menu bar. Works with WooCommerce, WP-Ecommerce, EDD, Eshop and Jigoshop
|
11 |
|
85 |
|
86 |
== Changelog ==
|
87 |
|
88 |
+
= 2.9.5 =
|
89 |
+
* Added filters for menu item data
|
90 |
+
* Fix: backwards compatibility for WooCommerce 3.2
|
91 |
+
* Tested up to WooCommerce 4.5
|
92 |
+
|
93 |
= 2.9.4.1 =
|
94 |
* Fix plugin header issue for new installs
|
95 |
|
wp-menu-cart.php
CHANGED
@@ -3,18 +3,18 @@
|
|
3 |
* Plugin Name: WooCommerce Menu Cart
|
4 |
* Plugin URI: www.wpovernight.com/plugins
|
5 |
* Description: Extension for your e-commerce plugin (WooCommerce, WP-Ecommerce, Easy Digital Downloads, Eshop or Jigoshop) that places a cart icon with number of items and total cost in the menu bar. Activate the plugin, set your options and you're ready to go! Will automatically conform to your theme styles.
|
6 |
-
* Version: 2.9.
|
7 |
* Author: Jeremiah Prummer, Ewout Fernhout
|
8 |
* Author URI: www.wpovernight.com/
|
9 |
* License: GPL2
|
10 |
* Text Domain: wp-menu-cart
|
11 |
* WC requires at least: 2.0.0
|
12 |
-
* WC tested up to: 4.
|
13 |
*/
|
14 |
|
15 |
class WpMenuCart {
|
16 |
|
17 |
-
protected $plugin_version = '2.9.
|
18 |
public static $plugin_slug;
|
19 |
public static $plugin_basename;
|
20 |
|
3 |
* Plugin Name: WooCommerce Menu Cart
|
4 |
* Plugin URI: www.wpovernight.com/plugins
|
5 |
* Description: Extension for your e-commerce plugin (WooCommerce, WP-Ecommerce, Easy Digital Downloads, Eshop or Jigoshop) that places a cart icon with number of items and total cost in the menu bar. Activate the plugin, set your options and you're ready to go! Will automatically conform to your theme styles.
|
6 |
+
* Version: 2.9.5
|
7 |
* Author: Jeremiah Prummer, Ewout Fernhout
|
8 |
* Author URI: www.wpovernight.com/
|
9 |
* License: GPL2
|
10 |
* Text Domain: wp-menu-cart
|
11 |
* WC requires at least: 2.0.0
|
12 |
+
* WC tested up to: 4.5.0
|
13 |
*/
|
14 |
|
15 |
class WpMenuCart {
|
16 |
|
17 |
+
protected $plugin_version = '2.9.5';
|
18 |
public static $plugin_slug;
|
19 |
public static $plugin_basename;
|
20 |
|