Changeset 3114739
- Timestamp:
- 07/09/2024 06:48:00 AM (21 months ago)
- Location:
- caddy/trunk
- Files:
-
- 5 edited
-
README.txt (modified) (2 diffs)
-
caddy.php (modified) (4 diffs)
-
includes/class-caddy.php (modified) (1 diff)
-
public/class-caddy-public.php (modified) (1 diff)
-
public/css/caddy-public.css (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
caddy/trunk/README.txt
r3031330 r3114739 5 5 Tags: caddy, woocommerce, woo, cart, side cart, sticky cart, cart notices, popup cart, woocommerce cart, shopping cart, mini-cart, floating cart 6 6 Requires at least: 5.0 7 Tested up to: 6. 4.37 Tested up to: 6.5.5 8 8 Requires PHP: 7.4 9 Stable tag: v2.0 9 Stable tag: v2.0.1 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 118 118 == Screenshots == 119 119 120 1. Caddy - Desktop View121 2. Caddy - Mobile View122 3. Caddy - Tablet View123 4. Caddy Settings120 1. The Caddy side cart opened. 121 2. The up-sell recommendations screen after a product has been added to the side cart. 122 3. The settings screen. 123 4. The custom CSS styling screen. 124 124 125 125 == Changelog == 126 127 = 2.0.1 = 128 * Fix: PHP Warning - Attempt to read property "slug" on string 129 * Fix: Scroll overflow issue and body bottom padding 130 * Compatibility: Tested up to the latest WooCommerce 9.0.2 and WordPress 6.5.5 versions 126 131 127 132 = 2.0 = -
caddy/trunk/caddy.php
r3031330 r3114739 4 4 * Plugin URI: https://usecaddy.com 5 5 * Description: A high performance, conversion-boosting side cart for your WooCommerce store that improves the shopping experience & helps grow your sales. 6 * Version: 2.0 6 * Version: 2.0.1 7 7 * Author: Tribe Interactive 8 8 * Author URI: https://usecaddy.com … … 13 13 * 14 14 * WC requires at least: 7.0 15 * WC tested up to: 8.5.215 * WC tested up to: 9.0.2 16 16 */ 17 17 … … 25 25 */ 26 26 if ( ! defined( 'CADDY_VERSION' ) ) { 27 define( 'CADDY_VERSION', '2.0 ' );27 define( 'CADDY_VERSION', '2.0.1' ); 28 28 } 29 29 if ( ! defined( 'CADDY_PLUGIN_FILE' ) ) { … … 106 106 107 107 /** 108 * Load notices 109 */ 110 require_once plugin_dir_path( __FILE__ ) . 'includes/class-caddy-notices.php'; 111 112 /** 108 113 * Begins execution of the plugin. 109 114 * -
caddy/trunk/includes/class-caddy.php
r3031330 r3114739 143 143 return; 144 144 } 145 145 $admin_notices = new Caddy_Admin_Notices( $this->loader ); 146 $admin_notices->register_hooks(); 147 146 148 $caddy_admin_obj = new Caddy_Admin( $this->get_plugin_name(), $this->get_version() ); 147 149 -
caddy/trunk/public/class-caddy-public.php
r3031330 r3114739 1127 1127 1128 1128 public function caddy_add_cart_widget_to_menu($items, $args) { 1129 if ($args->menu->slug === get_option('cc_menu_cart_widget')) { 1130 $cart_widget = new caddy_cart_widget(); 1131 1132 // Simulate the arguments required for the widget method 1133 $widget_args = array( 1134 'before_widget' => '<li class="menu-item">', 1135 'after_widget' => '</li>', 1136 'before_title' => '<h2 class="widget-title">', 1137 'after_title' => '</h2>' 1138 ); 1139 $instance = array(); // Adjust or populate as needed 1140 1141 // Use output buffering to capture the widget output 1142 ob_start(); 1143 $cart_widget->widget($widget_args, $instance); 1144 $widget_output = ob_get_clean(); 1145 1146 // Append the widget output to the menu items 1147 $items .= $widget_output; 1129 // Check if $args->menu is an object and has the property 'slug' 1130 if (is_object($args->menu) && property_exists($args->menu, 'slug')) { 1131 if ($args->menu->slug === get_option('cc_menu_cart_widget')) { 1132 $cart_widget = new caddy_cart_widget(); 1133 1134 // Simulate the arguments required for the widget method 1135 $widget_args = array( 1136 'before_widget' => '<li class="menu-item">', 1137 'after_widget' => '</li>', 1138 'before_title' => '<h2 class="widget-title">', 1139 'after_title' => '</h2>' 1140 ); 1141 $instance = array(); // Adjust or populate as needed 1142 1143 // Use output buffering to capture the widget output 1144 ob_start(); 1145 $cart_widget->widget($widget_args, $instance); 1146 $widget_output = ob_get_clean(); 1147 1148 // Append the widget output to the menu items 1149 $items .= $widget_output; 1150 } 1148 1151 } 1149 1152 -
caddy/trunk/public/css/caddy-public.css
r3031330 r3114739 236 236 width: var(--cc-window-width); 237 237 top: 51px; 238 padding-bottom: 50px; 238 239 } 239 240 … … 558 559 height: 100%; 559 560 width: 100%; 561 overflow: hidden; 560 562 } 561 563
Note: See TracChangeset
for help on using the changeset viewer.