WordPress.org

Plugin Directory

Changeset 2672673

Timestamp:
02/04/2022 06:22:25 AM (5 months ago)
Author:
hashthemes
Message:
  • Cart button getting hidden due to z index issue fixed
  • more undefined index error fixed
Location:
mini-ajax-woo-cart
Files:
73 added
5 edited

Legend:

Unmodified
Added
Removed
  • mini-ajax-woo-cart/trunk/assets/backend/js/admin-script.js

    r2671892 r2672673  
    124124        // Update slider if the input field loses focus as it's most likely changed
    125125        $('.majc-range-input-selector').blur(function () {
    126             var resetValue = Number($(this).val());
    127             var sliderMinValue = parseFloat($(this).attr('min'));
    128             var sliderMaxValue = parseFloat($(this).attr('max'));
    129             // Make sure our manual input value doesn't exceed the minimum & maxmium values
    130             if (resetValue < sliderMinValue) {
    131                 resetValue = sliderMinValue;
    132                 $(this).val(resetValue);
    133             }
    134             if (resetValue > sliderMaxValue) {
    135                 resetValue = sliderMaxValue;
    136                 $(this).val(resetValue);
     126            var resetValue = isNaN($(this).val()) ? '' : $(this).val();
     127
     128            if (resetValue) {
     129                var sliderMinValue = parseFloat($(this).attr('min'));
     130                var sliderMaxValue = parseFloat($(this).attr('max'));
     131                // Make sure our manual input value doesn't exceed the minimum & maxmium values
     132                if (resetValue < sliderMinValue) {
     133                    resetValue = sliderMinValue;
     134                    $(this).val(resetValue);
     135                }
     136                if (resetValue > sliderMaxValue) {
     137                    resetValue = sliderMaxValue;
     138                    $(this).val(resetValue);
     139                }
    137140            }
    138141            $(this).val(resetValue);
  • mini-ajax-woo-cart/trunk/google-fonts-list.php

    r2672648 r2672673  
    335335    return $fonts_url;
    336336}
    337 
    338 function majc_verify_settings($setting) {
    339     if (isset($setting) && !empty($setting)) {
    340         return $setting;
    341     }
    342 }
  • mini-ajax-woo-cart/trunk/inc/frontend/flying-cart/custom-css.php

    r2671892 r2672673  
    55$custom = isset($majc_settings['custom']) ? $majc_settings['custom'] : null;
    66
    7 if (majc_verify_settings($custom['trigger_btn_bg_color'])) {
     7if (($custom['trigger_btn_bg_color'])) {
    88    $custom_css .= "{$custom_id} .majc-toggle-button .majc-cartbasket-toggle-btn{background:{$custom['trigger_btn_bg_color']}}";
    99}
    1010
    11 if (majc_verify_settings($custom['trigger_btn_hover_bg_color'])) {
     11if (($custom['trigger_btn_hover_bg_color'])) {
    1212    $custom_css .= "{$custom_id} .majc-toggle-button .majc-cartbasket-toggle-btn:hover{background:{$custom['trigger_btn_hover_bg_color']}}";
    1313}
    1414
    15 if (majc_verify_settings($custom['trigger_btn_font_color'])) {
     15if (($custom['trigger_btn_font_color'])) {
    1616    $custom_css .= "{$custom_id} .majc-toggle-button .majc-cartbasket-toggle-btn{color:{$custom['trigger_btn_font_color']}}";
    1717}
    1818
    19 if (majc_verify_settings($custom['trigger_btn_hover_font_color'])) {
     19if (($custom['trigger_btn_hover_font_color'])) {
    2020    $custom_css .= "{$custom_id} .majc-toggle-button .majc-cartbasket-toggle-btn:hover{color:{$custom['trigger_btn_hover_font_color']}}";
    2121}
    2222
    23 if (majc_verify_settings($custom['cart_total_box_bg_color'])) {
     23if (($custom['cart_total_box_bg_color'])) {
    2424    $custom_css .= "{$custom_id} .majc-item-count-wrap{background:{$custom['cart_total_box_bg_color']}}";
    2525}
    2626
    27 if (majc_verify_settings($custom['cart_total_box_text_color'])) {
     27if (($custom['cart_total_box_text_color'])) {
    2828    $custom_css .= "{$custom_id} .majc-item-count-wrap{color:{$custom['cart_total_box_text_color']}}";
    2929}
     
    3131$drawer_content_bg_type = isset($custom['drawer_content_bg_type']) && !empty($custom['drawer_content_bg_type']) ? $custom['drawer_content_bg_type'] : null;
    3232
    33 if ($drawer_content_bg_type == 'choose_color' && majc_verify_settings($custom['drawer_content_bg_color'])) {
     33if ($drawer_content_bg_type == 'choose_color' && ($custom['drawer_content_bg_color'])) {
    3434    $custom_css .= "{$custom_id}.majc-layout-slidein .majc-cart-popup{background-color:{$custom['drawer_content_bg_color']}}";
    3535}
    3636
    37 if ($drawer_content_bg_type == 'custom_image_bg' && majc_verify_settings($custom['drawer_content_bg_image'])) {
     37if ($drawer_content_bg_type == 'custom_image_bg' && ($custom['drawer_content_bg_image'])) {
    3838    $custom_css .= "{$custom_id}.majc-layout-slidein .majc-cart-popup{background-image:url({$custom['drawer_content_bg_image']}); background-size: cover;}";
    3939}
    4040
    41 if (majc_verify_settings($custom['default_text_color'])) {
     41if (($custom['default_text_color'])) {
    4242    $custom_css .= "{$custom_id}.majc-layout-slidein .majc-cart-popup{color:{$custom['default_text_color']}}";
    4343}
    4444
    45 if (majc_verify_settings($custom['default_border_color'])) {
     45if (($custom['default_border_color'])) {
    4646    $custom_css .= "{$custom_id} .majc-header .majc-sub-header, {$custom_id} .majc-header h2, {$custom_id}.majc-cartitem-list .majc-cart-items-inner, {$custom_id} .majc-coupon, {$custom_id} .majc-buy-summary, {$custom_id} .majc-buy-summary > div{border-color:{$custom['default_border_color']}}";
    4747}
    4848
    49 if (majc_verify_settings($custom['close_icon_color'])) {
     49if (($custom['close_icon_color'])) {
    5050    $custom_css .= "{$custom_id} .majc-header .majc-cart-close{color:{$custom['close_icon_color']}}";
    5151}
    5252
    53 if (majc_verify_settings($custom['close_bg_color'])) {
     53if (($custom['close_bg_color'])) {
    5454    $custom_css .= "{$custom_id} .majc-header .majc-cart-close{background:{$custom['close_bg_color']}}";
    5555}
    5656
    57 if (majc_verify_settings($custom['qty_change_btn_bg_color'])) {
     57if (($custom['qty_change_btn_bg_color'])) {
    5858    $custom_css .= "{$custom_id} .majc-item-qty .majc-qty-chng{background:{$custom['qty_change_btn_bg_color']}}";
    5959}
    6060
    61 if (majc_verify_settings($custom['qty_change_icon_color'])) {
     61if (($custom['qty_change_icon_color'])) {
    6262    $custom_css .= "{$custom_id} .majc-item-qty .majc-qty-chng{color:{$custom['qty_change_icon_color']}}";
    6363}
    6464
    65 if (majc_verify_settings($custom['qty_change_border_color'])) {
     65if (($custom['qty_change_border_color'])) {
    6666    $custom_css .= "{$custom_id} .majc-item-qty, {$custom_id} .majc-item-qty .majc-qty[type=number]{border-color:{$custom['qty_change_border_color']}}";
    6767}
    6868
    69 if (majc_verify_settings($custom['coupon_btn_bg_color'])) {
     69if (($custom['coupon_btn_bg_color'])) {
    7070    $custom_css .= "{$custom_id} .majc-coupon .majc-coupon-field .majc-coupon-submit{background:{$custom['coupon_btn_bg_color']}}";
    7171    $custom_css .= "{$custom_id} .majc-coupon .majc-coupon-field{border-color:{$custom['coupon_btn_bg_color']}}";
    7272}
    7373
    74 if (majc_verify_settings($custom['coupon_btn_hover_bg_color'])) {
     74if (($custom['coupon_btn_hover_bg_color'])) {
    7575    $custom_css .= "{$custom_id} .majc-coupon .majc-coupon-field .majc-coupon-submit:hover{background:{$custom['coupon_btn_hover_bg_color']}}";
    7676}
    7777
    78 if (majc_verify_settings($custom['coupon_btn_font_color'])) {
     78if (($custom['coupon_btn_font_color'])) {
    7979    $custom_css .= "{$custom_id} .majc-coupon .majc-coupon-field .majc-coupon-submit{color:{$custom['coupon_btn_font_color']}}";
    8080}
    8181
    82 if (majc_verify_settings($custom['coupon_btn_hover_font_color'])) {
     82if (($custom['coupon_btn_hover_font_color'])) {
    8383    $custom_css .= "{$custom_id} .majc-coupon .majc-coupon-field .majc-coupon-submit:hover{color:{$custom['coupon_btn_hover_font_color']}}";
    8484}
    8585
    86 if (majc_verify_settings($custom['continueshop_btn_bg_color'])) {
     86if (($custom['continueshop_btn_bg_color'])) {
    8787    $custom_css .= "{$custom_id} .majc-cart-action-btn-wrap .majc-button.majc-continue-shoping-btn{background:{$custom['continueshop_btn_bg_color']}}";
    8888}
    8989
    90 if (majc_verify_settings($custom['continueshop_btn_hover_bg_color'])) {
     90if (($custom['continueshop_btn_hover_bg_color'])) {
    9191    $custom_css .= "{$custom_id} .majc-cart-action-btn-wrap .majc-button.majc-continue-shoping-btn:hover{background:{$custom['continueshop_btn_hover_bg_color']}}";
    9292}
    9393
    94 if (majc_verify_settings($custom['continueshop_btn_font_color'])) {
     94if (($custom['continueshop_btn_font_color'])) {
    9595    $custom_css .= "{$custom_id} .majc-cart-action-btn-wrap .majc-button.majc-continue-shoping-btn{color:{$custom['continueshop_btn_font_color']}}";
    9696}
    9797
    98 if (majc_verify_settings($custom['continueshop_btn_hover_font_color'])) {
     98if (($custom['continueshop_btn_hover_font_color'])) {
    9999    $custom_css .= "{$custom_id} .majc-cart-action-btn-wrap .majc-button.majc-continue-shoping-btn:hover{color:{$custom['continueshop_btn_hover_font_color']}}";
    100100}
    101101
    102 if (majc_verify_settings($custom['continueshop_btn_normal_border_color'])) {
     102if (($custom['continueshop_btn_normal_border_color'])) {
    103103    $custom_css .= "{$custom_id} .majc-cart-action-btn-wrap .majc-button.majc-continue-shoping-btn{border-color:{$custom['continueshop_btn_normal_border_color']}}";
    104104}
    105105
    106 if (majc_verify_settings($custom['continueshop_btn_hover_border_color'])) {
     106if (($custom['continueshop_btn_hover_border_color'])) {
    107107    $custom_css .= "{$custom_id} .majc-cart-action-btn-wrap .majc-button.majc-continue-shoping-btn:hover{border-color:{$custom['continueshop_btn_hover_border_color']}}";
    108108}
    109109
    110 if (majc_verify_settings($custom['viewcart_btn_bg_color'])) {
     110if (($custom['viewcart_btn_bg_color'])) {
    111111    $custom_css .= "{$custom_id} .majc-cart-action-btn-wrap .majc-cart-checkout-btn .majc-button{background:{$custom['viewcart_btn_bg_color']}}";
    112112}
    113113
    114 if (majc_verify_settings($custom['viewcart_btn_hover_bg_color'])) {
     114if (($custom['viewcart_btn_hover_bg_color'])) {
    115115    $custom_css .= "{$custom_id} .majc-cart-action-btn-wrap .majc-cart-checkout-btn .majc-button:hover{background:{$custom['viewcart_btn_hover_bg_color']}}";
    116116}
    117117
    118 if (majc_verify_settings($custom['viewcart_btn_font_color'])) {
     118if (($custom['viewcart_btn_font_color'])) {
    119119    $custom_css .= "{$custom_id} .majc-cart-action-btn-wrap .majc-cart-checkout-btn .majc-button{color:{$custom['viewcart_btn_font_color']}}";
    120120}
    121121
    122 if (majc_verify_settings($custom['viewcart_btn_hover_font_color'])) {
     122if (($custom['viewcart_btn_hover_font_color'])) {
    123123    $custom_css .= "{$custom_id} .majc-cart-action-btn-wrap .majc-cart-checkout-btn .majc-button:hover{color:{$custom['viewcart_btn_hover_font_color']}}";
    124124}
    125125
    126 if (majc_verify_settings($custom['viewcart_btn_normal_border_color'])) {
     126if (($custom['viewcart_btn_normal_border_color'])) {
    127127    $custom_css .= "{$custom_id} .majc-cart-action-btn-wrap .majc-cart-checkout-btn .majc-button{border-color:{$custom['viewcart_btn_normal_border_color']}}";
    128128}
    129129
    130 if (majc_verify_settings($custom['viewcart_btn_hover_border_color'])) {
     130if (($custom['viewcart_btn_hover_border_color'])) {
    131131    $custom_css .= "{$custom_id} .majc-cart-action-btn-wrap .majc-cart-checkout-btn .majc-button:hover{border-color:{$custom['viewcart_btn_hover_border_color']}}";
    132132}
    133133
    134 if (majc_verify_settings($custom['remove_product_btn_bg_color'])) {
     134if (($custom['remove_product_btn_bg_color'])) {
    135135    $custom_css .= "{$custom_id}.majc-cartitem-grid .majc-cart-items-inner .majc-item-remove a{background:{$custom['remove_product_btn_bg_color']}}";
    136136}
    137137
    138 if (majc_verify_settings($custom['remove_product_btn_font_color'])) {
     138if (($custom['remove_product_btn_font_color'])) {
    139139    $custom_css .= "{$custom_id}.majc-cartitem-grid .majc-cart-items-inner .majc-item-remove a{color:{$custom['remove_product_btn_font_color']}}";
    140140}
  • mini-ajax-woo-cart/trunk/mini-ajax-cart.php

    r2672654 r2672673  
    66  Plugin URI: https://github.com/pzstar/mini-ajax-woo-cart
    77  Description: Ajax, Floating, Slide In, Popup Cart For WordPress with WooCommerce
    8   Version:     1.0.9
     8  Version:     1.
    99  Author:      HashThemes
    1010  Author URI:  http://hashthemes.com
     
    3535
    3636        public function define_constants() {
    37             defined('MAJC_VERSION') or define('MAJC_VERSION', '1.0.9'); //plugin version
     37            defined('MAJC_VERSION') or define('MAJC_VERSION', '1.'); //plugin version
    3838
    3939            defined('MAJC_TD') or define('MAJC_TD', 'mini-ajax-cart'); //plugin's text domain
  • mini-ajax-woo-cart/trunk/readme.txt

    r2672654 r2672673  
    44Requires at least: 5.0
    55Tested up to: 5.9
    6 Stable tag: 1.0.9
     6Stable tag: 1.
    77Requires PHP: 5.0
    88License: GPLv2 or later
     
    164164
    165165== Upgrade Notice ==
     166
     167
     168
     169
    166170= 1.0.8 =
    167171* Undefined index error in typography fixed
Note: See TracChangeset for help on using the changeset viewer.