Plugin Directory

Changeset 3463725


Ignore:
Timestamp:
02/17/2026 05:42:57 PM (6 weeks ago)
Author:
phppoet
Message:

Update codebase of 3.7.19

Location:
customize-my-account-for-woocommerce
Files:
12 edited
1 copied

Legend:

Unmodified
Added
Removed
  • customize-my-account-for-woocommerce/tags/3.7.19/assets/css/frontend.css

    r3455275 r3463725  
    667667    font-weight: 600;
    668668    padding: 0 5px;
     669    width: auto;
    669670}
    670671.wcmamtx-banner-counter,.wcmamtx-banner-counter-sidebar {
  • customize-my-account-for-woocommerce/tags/3.7.19/customize-my-account-for-woocommerce.php

    r3461645 r3463725  
    44    Plugin URI: https://sysbasics.com
    55    Description: Customize My account page. Add/Edit/Remove Endpoints.
    6     Version: 3.7.18
     6    Version: 3.7.19
    77    Author: SysBasics
    88    Author URI: https://sysbasics.com
     
    1313    Tested up to: 6.9.1
    1414    WC requires at least: 3.0.0
    15     WC tested up to: 10.5.1
     15    WC tested up to: 10.5.2
    1616    Requires Plugins: woocommerce
    1717*/
  • customize-my-account-for-woocommerce/tags/3.7.19/include/admin/wrap/subwrap/countof-settings.php

    r3459431 r3463725  
    1111    $count_of_selectable = apply_filters('wcmamtx_override_count_of_array',$count_of_selectable);
    1212
    13    
     13
     14    include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
     15
     16
     17    if ( is_plugin_active( 'woo-wallet/woo-wallet.php' ) ) {
     18        $count_of_selectable['woo-wallet-balance'] = esc_html__('Tera Wallet Balance','customize-my-account-for-woocommerce');
     19    }
    1420
    1521
     
    1925
    2026        switch($key) {
     27            case "woo-wallet":
     28                if (is_array($value) ) {
     29
     30                    if (!isset($value['count_bubble'])) {
     31                         $value['count_bubble'] = "01";
     32                    } else {
     33                        $value['count_bubble'] = $value['count_bubble'];
     34                    }
     35                   
     36                }
     37
     38                $count_of = isset($value['count_of']) ? $value['count_of'] : "woo-wallet-balance";
     39               
     40                $count_bubble = isset($value['count_bubble']) && ($value['count_bubble'] == "01") ? "yes" : "no";
     41
     42                $hide_empty = isset($value['hide_empty']) && ($value['hide_empty'] == "01") ? "yes" : "no";
     43
     44                $section_style = isset($value['count_bubble']) && ($value['count_bubble'] == "01") ? "display:block;" : "display:none;";
     45
     46                $hide_sidebar = isset($value['hide_sidebar']) && ($value['hide_sidebar'] == "01") ? "yes" : "no";
     47               
     48            break;
     49
     50
    2151            case "orders":
    2252                if (is_array($value) ) {
     
    3868                $section_style = isset($value['count_bubble']) && ($value['count_bubble'] == "01") ? "display:block;" : "display:none;";
    3969
    40                
     70                $hide_sidebar = isset($value['hide_sidebar']) && ($value['hide_sidebar'] == "01") ? "yes" : "no";
    4171               
    4272            break;
     
    5787
    5888                $section_style = isset($value['count_bubble']) && ($value['count_bubble'] == "01") ? "display:block;" : "display:none;";
     89               
    5990
     91                $hide_sidebar = isset($value['hide_sidebar']) && ($value['hide_sidebar'] == "01") ? "yes" : "no";
    6092               
    6193               
     
    75107
    76108                $section_style_usermeta = isset($count_of) && ($count_of == "usermeta_count") ? "display:block;" : "display:none;";
     109
     110
     111                $hide_sidebar = isset($value['hide_sidebar']) && ($value['hide_sidebar'] == "01") ? "yes" : "no";
    77112
    78113               
     
    95130                        <label class=" wcmamtx_accordion_label"><?php echo esc_html__('Hide Empty','customize-my-account-for-woocommerce'); ?></label>
    96131
    97                         <input type="checkbox" data-toggle="toggle" data-on="<?php  echo esc_html__('Yes','customize-my-account-for-woocommerce'); ?>" data-off="<?php  echo esc_html__('No','customize-my-account-for-woocommerce'); ?>" data-size="sm" class="wcmamtx_accordion_input wcmamtx_accordion_checkbox checkmark" ype="checkbox" name="wcmamtx_advanced_settings[<?php echo $key; ?>][hide_empty]" value="01" <?php if (isset($hide_empty) && ($hide_empty == "yes")) { echo 'checked'; } ?>>
     132                        <input type="checkbox" data-toggle="toggle" data-on="<?php  echo esc_html__('Yes','customize-my-account-for-woocommerce'); ?>" data-off="<?php  echo esc_html__('No','customize-my-account-for-woocommerce'); ?>" data-size="sm" class="wcmamtx_accordion_input wcmamtx_accordion_checkbox checkmark" type="checkbox" name="wcmamtx_advanced_settings[<?php echo $key; ?>][hide_empty]" value="01" <?php if (isset($hide_empty) && ($hide_empty == "yes")) { echo 'checked'; } ?>>
     133
     134                       
     135                            <label class=" wcmamtx_accordion_label"><?php echo esc_html__('Hide in sidebar','customize-my-account-for-woocommerce'); ?></label>
     136
     137                            <input type="checkbox" data-toggle="toggle" data-on="<?php  echo esc_html__('Yes','customize-my-account-for-woocommerce'); ?>" data-off="<?php  echo esc_html__('No','customize-my-account-for-woocommerce'); ?>" data-size="sm" class="wcmamtx_accordion_input wcmamtx_accordion_checkbox checkmark" type="checkbox" name="wcmamtx_advanced_settings[<?php echo $key; ?>][hide_sidebar]" value="01" <?php if (isset($hide_sidebar) && ($hide_sidebar == "yes")) { echo 'checked'; } ?>>
     138                       
    98139                    </div>
    99140                    <?php
  • customize-my-account-for-woocommerce/tags/3.7.19/include/wcmamtx_countof_functions.php

    r3459431 r3463725  
    5050 */
    5151
     52if (!function_exists('wcmamtx_get_total_woowallet_count')) {
     53
     54    function wcmamtx_get_total_woowallet_count() {
     55
     56       global $wpdb;
     57           
     58            $user_id = get_current_user_id();
     59           
     60           
     61            $wallet_balance = 0;
     62            if ( $user_id ) {
     63                $wallet_balance = $wpdb->get_var( $wpdb->prepare( "SELECT SUM(CASE WHEN t.type = 'credit' THEN t.amount ELSE -t.amount END) as balance FROM {$wpdb->base_prefix}woo_wallet_transactions AS t WHERE t.user_id=%d AND t.deleted=0", $user_id ) ); // @codingStandardsIgnoreLine
     64                $wallet_balance = (float) apply_filters( 'woo_wallet_current_balance', $wallet_balance, $user_id );
     65            }
     66            return wc_price( $wallet_balance);
     67
     68       
     69    }
     70
     71}
     72
     73
     74/**
     75 * Get account li html.
     76 *
     77 * @since 1.0.0
     78 * @param string $endpoint Endpoint.
     79 * @return string
     80 */
     81
    5282if (!function_exists('wcmamtx_get_total_downloads_count')) {
    5383
     
    146176}
    147177
    148 
    149 /**
    150  * Get account li html.
    151  *
    152  * @since 1.0.0
    153  * @param string $endpoint Endpoint.
    154  * @return string
    155  */
    156 
    157 if (!function_exists('wcmamtx_render_order_count_bubble_html')) {
    158 
    159     function wcmamtx_render_order_count_bubble_html($count_bubble,$hide_empty,$sidebar = null) {
     178/**
     179 * Get account li html.
     180 *
     181 * @since 1.0.0
     182 * @param string $endpoint Endpoint.
     183 * @return string
     184 */
     185
     186if (!function_exists('wcmamtx_render_woo_wallet_count_bubble_html')) {
     187
     188    function wcmamtx_render_woo_wallet_count_bubble_html($count_bubble,$hide_empty,$sidebar = null) {
    160189
    161190        $empty_goahead = 'yes';
    162191
    163192        if ($hide_empty == "yes") {
    164             $get_count = wcmamtx_get_total_orderid_count();
     193            $get_count = wcmamtx_get_total_woowallet_count();
    165194
    166195            if ($get_count == 0) {
     
    175204            ?>
    176205            <span class="<?php if (isset($sidebar)) { echo 'wcmamtx-banner-counter-sidebar'; } else {  echo 'wcmamtx-banner-counter';} ?>">
    177                 <?php echo wcmamtx_get_total_orderid_count(); ?>
     206                <?php echo wcmamtx_get_total_woowallet_count(); ?>
    178207
    179208            </span>
     
    195224 */
    196225
    197 if (!function_exists('wcmamtx_render_download_count_bubble_html')) {
    198 
    199     function wcmamtx_render_download_count_bubble_html($count_bubble,$hide_empty,$sidebar = null) {
     226if (!function_exists('wcmamtx_render_order_count_bubble_html')) {
     227
     228    function wcmamtx_render_order_count_bubble_html($count_bubble,$hide_empty,$sidebar = null) {
    200229
    201230        $empty_goahead = 'yes';
    202231
    203232        if ($hide_empty == "yes") {
    204             $get_count = wcmamtx_get_total_downloads_count();
     233            $get_count = wcmamtx_get_total_orderid_count();
    205234
    206235            if ($get_count == 0) {
     
    212241        }
    213242
     243        if (($count_bubble == "yes") &&  ($empty_goahead == 'yes')) {
     244            ?>
     245            <span class="<?php if (isset($sidebar)) { echo 'wcmamtx-banner-counter-sidebar'; } else {  echo 'wcmamtx-banner-counter';} ?>">
     246                <?php echo wcmamtx_get_total_orderid_count(); ?>
     247
     248            </span>
     249            <?php
     250        }
     251
     252
     253    }
     254
     255}
     256
     257
     258/**
     259 * Get account li html.
     260 *
     261 * @since 1.0.0
     262 * @param string $endpoint Endpoint.
     263 * @return string
     264 */
     265
     266if (!function_exists('wcmamtx_render_download_count_bubble_html')) {
     267
     268    function wcmamtx_render_download_count_bubble_html($count_bubble,$hide_empty,$sidebar = null) {
     269
     270        $empty_goahead = 'yes';
     271
     272        if ($hide_empty == "yes") {
     273            $get_count = wcmamtx_get_total_downloads_count();
     274
     275            if ($get_count == 0) {
     276                $empty_goahead = 'no';
     277            } else {
     278                $empty_goahead = 'yes';
     279            }
     280
     281        }
     282
    214283        if (($count_bubble == "yes") && ($empty_goahead == 'yes')) {
    215284            ?>
     
    241310
    242311         switch($key) {
    243             case "orders":
    244 
     312            case "woo-wallet":
    245313                if (is_array($value) ) {
    246314
     
    253321                }
    254322
     323                $count_of = isset($value['count_of']) ? $value['count_of'] : "woo-wallet-balance";
     324               
    255325                $count_bubble = isset($value['count_bubble']) && ($value['count_bubble'] == "01") ? "yes" : "no";
    256326
    257327                $hide_empty = isset($value['hide_empty']) && ($value['hide_empty'] == "01") ? "yes" : "no";
    258                
    259                 wcmamtx_render_order_count_bubble_html($count_bubble,$hide_empty,$sidebar);
     328
     329                $section_style = isset($value['count_bubble']) && ($value['count_bubble'] == "01") ? "display:block;" : "display:none;";
     330
     331                $hide_sidebar = isset($value['hide_sidebar']) && ($value['hide_sidebar'] == "01") ? "yes" : "always";
     332
     333                wcmamtx_render_woo_wallet_count_bubble_html($count_bubble,$hide_empty,$sidebar);
    260334               
    261335            break;
    262336
    263             case "downloads":
     337            case "orders":
    264338
    265339                if (is_array($value) ) {
     
    272346                   
    273347                }
     348
     349                $count_bubble = isset($value['count_bubble']) && ($value['count_bubble'] == "01") ? "yes" : "no";
     350
     351                $hide_empty = isset($value['hide_empty']) && ($value['hide_empty'] == "01") ? "yes" : "no";
     352               
     353                wcmamtx_render_order_count_bubble_html($count_bubble,$hide_empty,$sidebar);
     354               
     355            break;
     356
     357            case "downloads":
     358
     359                if (is_array($value) ) {
     360
     361                    if (!isset($value['count_bubble'])) {
     362                         $value['count_bubble'] = "01";
     363                    } else {
     364                        $value['count_bubble'] = $value['count_bubble'];
     365                    }
     366                   
     367                }
    274368               
    275369                $count_bubble = isset($value['count_bubble']) && ($value['count_bubble'] == "01") ? "yes" : "no";
  • customize-my-account-for-woocommerce/tags/3.7.19/include/wcmamtx_extra_functions.php

    r3461645 r3463725  
    10101010                   
    10111011                </span>
    1012                 <?php echo wcmamtx_counter_bubble($key,$value,"yes"); ?>
     1012                <?php
     1013                $hide_sidebar = isset($value['hide_sidebar']) && ($value['hide_sidebar'] == "01") ? "yes" : "no";
     1014
     1015                if ($hide_sidebar == "no") {
     1016                    echo wcmamtx_counter_bubble($key,$value,"yes");
     1017                }
     1018               
     1019                ?>
    10131020            </a>
    10141021        </li>
  • customize-my-account-for-woocommerce/tags/3.7.19/readme.txt

    r3461645 r3463725  
    44Requires at least: 4.0
    55Tested up to: 6.9.1
    6 WC Tested up to: 10.5.1
     6WC Tested up to: 10.5.2
    77WC Requires at least: 4.0
    88Requires PHP: 5.2
    9 Stable tag: 3.7.18
     9Stable tag: 3.7.19
    1010Requires Plugins: woocommerce
    1111License: GPLv2 or later
     
    146146== Changelog ==
    147147
    148 Version 3.7.7   - 01 February 2026
    149 
     148Version 3.7.19   - 17 February 2026
     149
     150- Enhancement - Inbuilt compatibility for Tera Wallet Plugin.
    150151- Fix - Automatic disable of user avatar.
    151152- Enhancement - Modular countof for count bubble.
  • customize-my-account-for-woocommerce/trunk/assets/css/frontend.css

    r3455275 r3463725  
    667667    font-weight: 600;
    668668    padding: 0 5px;
     669    width: auto;
    669670}
    670671.wcmamtx-banner-counter,.wcmamtx-banner-counter-sidebar {
  • customize-my-account-for-woocommerce/trunk/customize-my-account-for-woocommerce.php

    r3461645 r3463725  
    44    Plugin URI: https://sysbasics.com
    55    Description: Customize My account page. Add/Edit/Remove Endpoints.
    6     Version: 3.7.18
     6    Version: 3.7.19
    77    Author: SysBasics
    88    Author URI: https://sysbasics.com
     
    1313    Tested up to: 6.9.1
    1414    WC requires at least: 3.0.0
    15     WC tested up to: 10.5.1
     15    WC tested up to: 10.5.2
    1616    Requires Plugins: woocommerce
    1717*/
  • customize-my-account-for-woocommerce/trunk/include/admin/wrap/subwrap/countof-settings.php

    r3459431 r3463725  
    1111    $count_of_selectable = apply_filters('wcmamtx_override_count_of_array',$count_of_selectable);
    1212
    13    
     13
     14    include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
     15
     16
     17    if ( is_plugin_active( 'woo-wallet/woo-wallet.php' ) ) {
     18        $count_of_selectable['woo-wallet-balance'] = esc_html__('Tera Wallet Balance','customize-my-account-for-woocommerce');
     19    }
    1420
    1521
     
    1925
    2026        switch($key) {
     27            case "woo-wallet":
     28                if (is_array($value) ) {
     29
     30                    if (!isset($value['count_bubble'])) {
     31                         $value['count_bubble'] = "01";
     32                    } else {
     33                        $value['count_bubble'] = $value['count_bubble'];
     34                    }
     35                   
     36                }
     37
     38                $count_of = isset($value['count_of']) ? $value['count_of'] : "woo-wallet-balance";
     39               
     40                $count_bubble = isset($value['count_bubble']) && ($value['count_bubble'] == "01") ? "yes" : "no";
     41
     42                $hide_empty = isset($value['hide_empty']) && ($value['hide_empty'] == "01") ? "yes" : "no";
     43
     44                $section_style = isset($value['count_bubble']) && ($value['count_bubble'] == "01") ? "display:block;" : "display:none;";
     45
     46                $hide_sidebar = isset($value['hide_sidebar']) && ($value['hide_sidebar'] == "01") ? "yes" : "no";
     47               
     48            break;
     49
     50
    2151            case "orders":
    2252                if (is_array($value) ) {
     
    3868                $section_style = isset($value['count_bubble']) && ($value['count_bubble'] == "01") ? "display:block;" : "display:none;";
    3969
    40                
     70                $hide_sidebar = isset($value['hide_sidebar']) && ($value['hide_sidebar'] == "01") ? "yes" : "no";
    4171               
    4272            break;
     
    5787
    5888                $section_style = isset($value['count_bubble']) && ($value['count_bubble'] == "01") ? "display:block;" : "display:none;";
     89               
    5990
     91                $hide_sidebar = isset($value['hide_sidebar']) && ($value['hide_sidebar'] == "01") ? "yes" : "no";
    6092               
    6193               
     
    75107
    76108                $section_style_usermeta = isset($count_of) && ($count_of == "usermeta_count") ? "display:block;" : "display:none;";
     109
     110
     111                $hide_sidebar = isset($value['hide_sidebar']) && ($value['hide_sidebar'] == "01") ? "yes" : "no";
    77112
    78113               
     
    95130                        <label class=" wcmamtx_accordion_label"><?php echo esc_html__('Hide Empty','customize-my-account-for-woocommerce'); ?></label>
    96131
    97                         <input type="checkbox" data-toggle="toggle" data-on="<?php  echo esc_html__('Yes','customize-my-account-for-woocommerce'); ?>" data-off="<?php  echo esc_html__('No','customize-my-account-for-woocommerce'); ?>" data-size="sm" class="wcmamtx_accordion_input wcmamtx_accordion_checkbox checkmark" ype="checkbox" name="wcmamtx_advanced_settings[<?php echo $key; ?>][hide_empty]" value="01" <?php if (isset($hide_empty) && ($hide_empty == "yes")) { echo 'checked'; } ?>>
     132                        <input type="checkbox" data-toggle="toggle" data-on="<?php  echo esc_html__('Yes','customize-my-account-for-woocommerce'); ?>" data-off="<?php  echo esc_html__('No','customize-my-account-for-woocommerce'); ?>" data-size="sm" class="wcmamtx_accordion_input wcmamtx_accordion_checkbox checkmark" type="checkbox" name="wcmamtx_advanced_settings[<?php echo $key; ?>][hide_empty]" value="01" <?php if (isset($hide_empty) && ($hide_empty == "yes")) { echo 'checked'; } ?>>
     133
     134                       
     135                            <label class=" wcmamtx_accordion_label"><?php echo esc_html__('Hide in sidebar','customize-my-account-for-woocommerce'); ?></label>
     136
     137                            <input type="checkbox" data-toggle="toggle" data-on="<?php  echo esc_html__('Yes','customize-my-account-for-woocommerce'); ?>" data-off="<?php  echo esc_html__('No','customize-my-account-for-woocommerce'); ?>" data-size="sm" class="wcmamtx_accordion_input wcmamtx_accordion_checkbox checkmark" type="checkbox" name="wcmamtx_advanced_settings[<?php echo $key; ?>][hide_sidebar]" value="01" <?php if (isset($hide_sidebar) && ($hide_sidebar == "yes")) { echo 'checked'; } ?>>
     138                       
    98139                    </div>
    99140                    <?php
  • customize-my-account-for-woocommerce/trunk/include/wcmamtx_countof_functions.php

    r3459431 r3463725  
    5050 */
    5151
     52if (!function_exists('wcmamtx_get_total_woowallet_count')) {
     53
     54    function wcmamtx_get_total_woowallet_count() {
     55
     56       global $wpdb;
     57           
     58            $user_id = get_current_user_id();
     59           
     60           
     61            $wallet_balance = 0;
     62            if ( $user_id ) {
     63                $wallet_balance = $wpdb->get_var( $wpdb->prepare( "SELECT SUM(CASE WHEN t.type = 'credit' THEN t.amount ELSE -t.amount END) as balance FROM {$wpdb->base_prefix}woo_wallet_transactions AS t WHERE t.user_id=%d AND t.deleted=0", $user_id ) ); // @codingStandardsIgnoreLine
     64                $wallet_balance = (float) apply_filters( 'woo_wallet_current_balance', $wallet_balance, $user_id );
     65            }
     66            return wc_price( $wallet_balance);
     67
     68       
     69    }
     70
     71}
     72
     73
     74/**
     75 * Get account li html.
     76 *
     77 * @since 1.0.0
     78 * @param string $endpoint Endpoint.
     79 * @return string
     80 */
     81
    5282if (!function_exists('wcmamtx_get_total_downloads_count')) {
    5383
     
    146176}
    147177
    148 
    149 /**
    150  * Get account li html.
    151  *
    152  * @since 1.0.0
    153  * @param string $endpoint Endpoint.
    154  * @return string
    155  */
    156 
    157 if (!function_exists('wcmamtx_render_order_count_bubble_html')) {
    158 
    159     function wcmamtx_render_order_count_bubble_html($count_bubble,$hide_empty,$sidebar = null) {
     178/**
     179 * Get account li html.
     180 *
     181 * @since 1.0.0
     182 * @param string $endpoint Endpoint.
     183 * @return string
     184 */
     185
     186if (!function_exists('wcmamtx_render_woo_wallet_count_bubble_html')) {
     187
     188    function wcmamtx_render_woo_wallet_count_bubble_html($count_bubble,$hide_empty,$sidebar = null) {
    160189
    161190        $empty_goahead = 'yes';
    162191
    163192        if ($hide_empty == "yes") {
    164             $get_count = wcmamtx_get_total_orderid_count();
     193            $get_count = wcmamtx_get_total_woowallet_count();
    165194
    166195            if ($get_count == 0) {
     
    175204            ?>
    176205            <span class="<?php if (isset($sidebar)) { echo 'wcmamtx-banner-counter-sidebar'; } else {  echo 'wcmamtx-banner-counter';} ?>">
    177                 <?php echo wcmamtx_get_total_orderid_count(); ?>
     206                <?php echo wcmamtx_get_total_woowallet_count(); ?>
    178207
    179208            </span>
     
    195224 */
    196225
    197 if (!function_exists('wcmamtx_render_download_count_bubble_html')) {
    198 
    199     function wcmamtx_render_download_count_bubble_html($count_bubble,$hide_empty,$sidebar = null) {
     226if (!function_exists('wcmamtx_render_order_count_bubble_html')) {
     227
     228    function wcmamtx_render_order_count_bubble_html($count_bubble,$hide_empty,$sidebar = null) {
    200229
    201230        $empty_goahead = 'yes';
    202231
    203232        if ($hide_empty == "yes") {
    204             $get_count = wcmamtx_get_total_downloads_count();
     233            $get_count = wcmamtx_get_total_orderid_count();
    205234
    206235            if ($get_count == 0) {
     
    212241        }
    213242
     243        if (($count_bubble == "yes") &&  ($empty_goahead == 'yes')) {
     244            ?>
     245            <span class="<?php if (isset($sidebar)) { echo 'wcmamtx-banner-counter-sidebar'; } else {  echo 'wcmamtx-banner-counter';} ?>">
     246                <?php echo wcmamtx_get_total_orderid_count(); ?>
     247
     248            </span>
     249            <?php
     250        }
     251
     252
     253    }
     254
     255}
     256
     257
     258/**
     259 * Get account li html.
     260 *
     261 * @since 1.0.0
     262 * @param string $endpoint Endpoint.
     263 * @return string
     264 */
     265
     266if (!function_exists('wcmamtx_render_download_count_bubble_html')) {
     267
     268    function wcmamtx_render_download_count_bubble_html($count_bubble,$hide_empty,$sidebar = null) {
     269
     270        $empty_goahead = 'yes';
     271
     272        if ($hide_empty == "yes") {
     273            $get_count = wcmamtx_get_total_downloads_count();
     274
     275            if ($get_count == 0) {
     276                $empty_goahead = 'no';
     277            } else {
     278                $empty_goahead = 'yes';
     279            }
     280
     281        }
     282
    214283        if (($count_bubble == "yes") && ($empty_goahead == 'yes')) {
    215284            ?>
     
    241310
    242311         switch($key) {
    243             case "orders":
    244 
     312            case "woo-wallet":
    245313                if (is_array($value) ) {
    246314
     
    253321                }
    254322
     323                $count_of = isset($value['count_of']) ? $value['count_of'] : "woo-wallet-balance";
     324               
    255325                $count_bubble = isset($value['count_bubble']) && ($value['count_bubble'] == "01") ? "yes" : "no";
    256326
    257327                $hide_empty = isset($value['hide_empty']) && ($value['hide_empty'] == "01") ? "yes" : "no";
    258                
    259                 wcmamtx_render_order_count_bubble_html($count_bubble,$hide_empty,$sidebar);
     328
     329                $section_style = isset($value['count_bubble']) && ($value['count_bubble'] == "01") ? "display:block;" : "display:none;";
     330
     331                $hide_sidebar = isset($value['hide_sidebar']) && ($value['hide_sidebar'] == "01") ? "yes" : "always";
     332
     333                wcmamtx_render_woo_wallet_count_bubble_html($count_bubble,$hide_empty,$sidebar);
    260334               
    261335            break;
    262336
    263             case "downloads":
     337            case "orders":
    264338
    265339                if (is_array($value) ) {
     
    272346                   
    273347                }
     348
     349                $count_bubble = isset($value['count_bubble']) && ($value['count_bubble'] == "01") ? "yes" : "no";
     350
     351                $hide_empty = isset($value['hide_empty']) && ($value['hide_empty'] == "01") ? "yes" : "no";
     352               
     353                wcmamtx_render_order_count_bubble_html($count_bubble,$hide_empty,$sidebar);
     354               
     355            break;
     356
     357            case "downloads":
     358
     359                if (is_array($value) ) {
     360
     361                    if (!isset($value['count_bubble'])) {
     362                         $value['count_bubble'] = "01";
     363                    } else {
     364                        $value['count_bubble'] = $value['count_bubble'];
     365                    }
     366                   
     367                }
    274368               
    275369                $count_bubble = isset($value['count_bubble']) && ($value['count_bubble'] == "01") ? "yes" : "no";
  • customize-my-account-for-woocommerce/trunk/include/wcmamtx_extra_functions.php

    r3461645 r3463725  
    10101010                   
    10111011                </span>
    1012                 <?php echo wcmamtx_counter_bubble($key,$value,"yes"); ?>
     1012                <?php
     1013                $hide_sidebar = isset($value['hide_sidebar']) && ($value['hide_sidebar'] == "01") ? "yes" : "no";
     1014
     1015                if ($hide_sidebar == "no") {
     1016                    echo wcmamtx_counter_bubble($key,$value,"yes");
     1017                }
     1018               
     1019                ?>
    10131020            </a>
    10141021        </li>
  • customize-my-account-for-woocommerce/trunk/readme.txt

    r3461645 r3463725  
    44Requires at least: 4.0
    55Tested up to: 6.9.1
    6 WC Tested up to: 10.5.1
     6WC Tested up to: 10.5.2
    77WC Requires at least: 4.0
    88Requires PHP: 5.2
    9 Stable tag: 3.7.18
     9Stable tag: 3.7.19
    1010Requires Plugins: woocommerce
    1111License: GPLv2 or later
     
    146146== Changelog ==
    147147
    148 Version 3.7.7   - 01 February 2026
    149 
     148Version 3.7.19   - 17 February 2026
     149
     150- Enhancement - Inbuilt compatibility for Tera Wallet Plugin.
    150151- Fix - Automatic disable of user avatar.
    151152- Enhancement - Modular countof for count bubble.
Note: See TracChangeset for help on using the changeset viewer.