Plugin Directory

Changeset 3114739


Ignore:
Timestamp:
07/09/2024 06:48:00 AM (21 months ago)
Author:
tribeinteractive
Message:

2.0.1 update

Location:
caddy/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • caddy/trunk/README.txt

    r3031330 r3114739  
    55Tags: caddy, woocommerce, woo, cart, side cart, sticky cart, cart notices, popup cart, woocommerce cart, shopping cart, mini-cart, floating cart
    66Requires at least: 5.0
    7 Tested up to: 6.4.3
     7Tested up to: 6.5.5
    88Requires PHP: 7.4
    9 Stable tag: v2.0
     9Stable tag: v2.0.1
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    118118== Screenshots ==
    119119
    120 1. Caddy - Desktop View
    121 2. Caddy - Mobile View
    122 3. Caddy - Tablet View
    123 4. Caddy Settings
     1201. The Caddy side cart opened.
     1212. The up-sell recommendations screen after a product has been added to the side cart.
     1223. The settings screen.
     1234. The custom CSS styling screen.
    124124
    125125== 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
    126131
    127132= 2.0 =
  • caddy/trunk/caddy.php

    r3031330 r3114739  
    44 * Plugin URI:        https://usecaddy.com
    55 * 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
    77 * Author:            Tribe Interactive
    88 * Author URI:        https://usecaddy.com
     
    1313 *
    1414 * WC requires at least: 7.0
    15  * WC tested up to: 8.5.2
     15 * WC tested up to: 9.0.2
    1616 */
    1717
     
    2525 */
    2626if ( ! defined( 'CADDY_VERSION' ) ) {
    27     define( 'CADDY_VERSION', '2.0' );
     27    define( 'CADDY_VERSION', '2.0.1' );
    2828}
    2929if ( ! defined( 'CADDY_PLUGIN_FILE' ) ) {
     
    106106
    107107/**
     108 * Load notices
     109 */
     110require_once plugin_dir_path( __FILE__ ) . 'includes/class-caddy-notices.php';
     111
     112/**
    108113 * Begins execution of the plugin.
    109114 *
  • caddy/trunk/includes/class-caddy.php

    r3031330 r3114739  
    143143            return;
    144144        }
    145 
     145        $admin_notices = new Caddy_Admin_Notices( $this->loader );
     146        $admin_notices->register_hooks();
     147       
    146148        $caddy_admin_obj = new Caddy_Admin( $this->get_plugin_name(), $this->get_version() );
    147149
  • caddy/trunk/public/class-caddy-public.php

    r3031330 r3114739  
    11271127
    11281128    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            }
    11481151        }
    11491152   
  • caddy/trunk/public/css/caddy-public.css

    r3031330 r3114739  
    236236  width: var(--cc-window-width);
    237237  top: 51px;
     238  padding-bottom: 50px;
    238239}
    239240
     
    558559  height: 100%;
    559560  width: 100%;
     561  overflow: hidden;
    560562}
    561563
Note: See TracChangeset for help on using the changeset viewer.