fix: correct minicart trigger selector to .shoptimizer-cart .cart-contents

This commit is contained in:
2026-03-05 08:14:08 +01:00
parent 022d782ec7
commit 2b565758f5
2 changed files with 8 additions and 10 deletions

View File

@@ -3,7 +3,7 @@
* Plugin Name: CommerceKit Floating Cart
* Plugin URI: https://www.commercegurus.com
* Description: Adds a floating cart icon (bottom-right) and auto-opens the CommerceKit minicart after add to cart. Requires CommerceGurus CommerceKit and WooCommerce.
* Version: 1.0.1
* Version: 1.0.2
* Author: CommerceGurus
* Author URI: https://www.commercegurus.com
* License: GPLv3
@@ -19,7 +19,7 @@ if ( ! defined( 'ABSPATH' ) ) {
exit;
}
define( 'CGKIT_FC_VERSION', '1.0.1' );
define( 'CGKIT_FC_VERSION', '1.0.2' );
define( 'CGKIT_FC_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'CGKIT_FC_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
@@ -110,7 +110,7 @@ class CommerceKit_Floating_Cart {
*/
$trigger = apply_filters(
'cgkit_fc_minicart_trigger',
'.site-header-cart .cart-click, .wcmenucart, a.cart-contents, .header-cart-link, .shoptimizer-cart-link'
'.shoptimizer-cart .cart-contents, .site-header-cart .cart-contents, .wcmenucart, .header-cart-link'
);
/**