Changeset 3463725
- Timestamp:
- 02/17/2026 05:42:57 PM (6 weeks ago)
- Location:
- customize-my-account-for-woocommerce
- Files:
-
- 12 edited
- 1 copied
-
tags/3.7.19 (copied) (copied from customize-my-account-for-woocommerce/trunk)
-
tags/3.7.19/assets/css/frontend.css (modified) (1 diff)
-
tags/3.7.19/customize-my-account-for-woocommerce.php (modified) (2 diffs)
-
tags/3.7.19/include/admin/wrap/subwrap/countof-settings.php (modified) (6 diffs)
-
tags/3.7.19/include/wcmamtx_countof_functions.php (modified) (8 diffs)
-
tags/3.7.19/include/wcmamtx_extra_functions.php (modified) (1 diff)
-
tags/3.7.19/readme.txt (modified) (2 diffs)
-
trunk/assets/css/frontend.css (modified) (1 diff)
-
trunk/customize-my-account-for-woocommerce.php (modified) (2 diffs)
-
trunk/include/admin/wrap/subwrap/countof-settings.php (modified) (6 diffs)
-
trunk/include/wcmamtx_countof_functions.php (modified) (8 diffs)
-
trunk/include/wcmamtx_extra_functions.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
customize-my-account-for-woocommerce/tags/3.7.19/assets/css/frontend.css
r3455275 r3463725 667 667 font-weight: 600; 668 668 padding: 0 5px; 669 width: auto; 669 670 } 670 671 .wcmamtx-banner-counter,.wcmamtx-banner-counter-sidebar { -
customize-my-account-for-woocommerce/tags/3.7.19/customize-my-account-for-woocommerce.php
r3461645 r3463725 4 4 Plugin URI: https://sysbasics.com 5 5 Description: Customize My account page. Add/Edit/Remove Endpoints. 6 Version: 3.7.1 86 Version: 3.7.19 7 7 Author: SysBasics 8 8 Author URI: https://sysbasics.com … … 13 13 Tested up to: 6.9.1 14 14 WC requires at least: 3.0.0 15 WC tested up to: 10.5. 115 WC tested up to: 10.5.2 16 16 Requires Plugins: woocommerce 17 17 */ -
customize-my-account-for-woocommerce/tags/3.7.19/include/admin/wrap/subwrap/countof-settings.php
r3459431 r3463725 11 11 $count_of_selectable = apply_filters('wcmamtx_override_count_of_array',$count_of_selectable); 12 12 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 } 14 20 15 21 … … 19 25 20 26 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 21 51 case "orders": 22 52 if (is_array($value) ) { … … 38 68 $section_style = isset($value['count_bubble']) && ($value['count_bubble'] == "01") ? "display:block;" : "display:none;"; 39 69 40 70 $hide_sidebar = isset($value['hide_sidebar']) && ($value['hide_sidebar'] == "01") ? "yes" : "no"; 41 71 42 72 break; … … 57 87 58 88 $section_style = isset($value['count_bubble']) && ($value['count_bubble'] == "01") ? "display:block;" : "display:none;"; 89 59 90 91 $hide_sidebar = isset($value['hide_sidebar']) && ($value['hide_sidebar'] == "01") ? "yes" : "no"; 60 92 61 93 … … 75 107 76 108 $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"; 77 112 78 113 … … 95 130 <label class=" wcmamtx_accordion_label"><?php echo esc_html__('Hide Empty','customize-my-account-for-woocommerce'); ?></label> 96 131 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 98 139 </div> 99 140 <?php -
customize-my-account-for-woocommerce/tags/3.7.19/include/wcmamtx_countof_functions.php
r3459431 r3463725 50 50 */ 51 51 52 if (!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 52 82 if (!function_exists('wcmamtx_get_total_downloads_count')) { 53 83 … … 146 176 } 147 177 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 186 if (!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) { 160 189 161 190 $empty_goahead = 'yes'; 162 191 163 192 if ($hide_empty == "yes") { 164 $get_count = wcmamtx_get_total_ orderid_count();193 $get_count = wcmamtx_get_total_woowallet_count(); 165 194 166 195 if ($get_count == 0) { … … 175 204 ?> 176 205 <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(); ?> 178 207 179 208 </span> … … 195 224 */ 196 225 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) {226 if (!function_exists('wcmamtx_render_order_count_bubble_html')) { 227 228 function wcmamtx_render_order_count_bubble_html($count_bubble,$hide_empty,$sidebar = null) { 200 229 201 230 $empty_goahead = 'yes'; 202 231 203 232 if ($hide_empty == "yes") { 204 $get_count = wcmamtx_get_total_ downloads_count();233 $get_count = wcmamtx_get_total_orderid_count(); 205 234 206 235 if ($get_count == 0) { … … 212 241 } 213 242 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 266 if (!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 214 283 if (($count_bubble == "yes") && ($empty_goahead == 'yes')) { 215 284 ?> … … 241 310 242 311 switch($key) { 243 case "orders": 244 312 case "woo-wallet": 245 313 if (is_array($value) ) { 246 314 … … 253 321 } 254 322 323 $count_of = isset($value['count_of']) ? $value['count_of'] : "woo-wallet-balance"; 324 255 325 $count_bubble = isset($value['count_bubble']) && ($value['count_bubble'] == "01") ? "yes" : "no"; 256 326 257 327 $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); 260 334 261 335 break; 262 336 263 case " downloads":337 case "orders": 264 338 265 339 if (is_array($value) ) { … … 272 346 273 347 } 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 } 274 368 275 369 $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 1010 1010 1011 1011 </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 ?> 1013 1020 </a> 1014 1021 </li> -
customize-my-account-for-woocommerce/tags/3.7.19/readme.txt
r3461645 r3463725 4 4 Requires at least: 4.0 5 5 Tested up to: 6.9.1 6 WC Tested up to: 10.5. 16 WC Tested up to: 10.5.2 7 7 WC Requires at least: 4.0 8 8 Requires PHP: 5.2 9 Stable tag: 3.7.1 89 Stable tag: 3.7.19 10 10 Requires Plugins: woocommerce 11 11 License: GPLv2 or later … … 146 146 == Changelog == 147 147 148 Version 3.7.7 - 01 February 2026 149 148 Version 3.7.19 - 17 February 2026 149 150 - Enhancement - Inbuilt compatibility for Tera Wallet Plugin. 150 151 - Fix - Automatic disable of user avatar. 151 152 - Enhancement - Modular countof for count bubble. -
customize-my-account-for-woocommerce/trunk/assets/css/frontend.css
r3455275 r3463725 667 667 font-weight: 600; 668 668 padding: 0 5px; 669 width: auto; 669 670 } 670 671 .wcmamtx-banner-counter,.wcmamtx-banner-counter-sidebar { -
customize-my-account-for-woocommerce/trunk/customize-my-account-for-woocommerce.php
r3461645 r3463725 4 4 Plugin URI: https://sysbasics.com 5 5 Description: Customize My account page. Add/Edit/Remove Endpoints. 6 Version: 3.7.1 86 Version: 3.7.19 7 7 Author: SysBasics 8 8 Author URI: https://sysbasics.com … … 13 13 Tested up to: 6.9.1 14 14 WC requires at least: 3.0.0 15 WC tested up to: 10.5. 115 WC tested up to: 10.5.2 16 16 Requires Plugins: woocommerce 17 17 */ -
customize-my-account-for-woocommerce/trunk/include/admin/wrap/subwrap/countof-settings.php
r3459431 r3463725 11 11 $count_of_selectable = apply_filters('wcmamtx_override_count_of_array',$count_of_selectable); 12 12 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 } 14 20 15 21 … … 19 25 20 26 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 21 51 case "orders": 22 52 if (is_array($value) ) { … … 38 68 $section_style = isset($value['count_bubble']) && ($value['count_bubble'] == "01") ? "display:block;" : "display:none;"; 39 69 40 70 $hide_sidebar = isset($value['hide_sidebar']) && ($value['hide_sidebar'] == "01") ? "yes" : "no"; 41 71 42 72 break; … … 57 87 58 88 $section_style = isset($value['count_bubble']) && ($value['count_bubble'] == "01") ? "display:block;" : "display:none;"; 89 59 90 91 $hide_sidebar = isset($value['hide_sidebar']) && ($value['hide_sidebar'] == "01") ? "yes" : "no"; 60 92 61 93 … … 75 107 76 108 $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"; 77 112 78 113 … … 95 130 <label class=" wcmamtx_accordion_label"><?php echo esc_html__('Hide Empty','customize-my-account-for-woocommerce'); ?></label> 96 131 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 98 139 </div> 99 140 <?php -
customize-my-account-for-woocommerce/trunk/include/wcmamtx_countof_functions.php
r3459431 r3463725 50 50 */ 51 51 52 if (!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 52 82 if (!function_exists('wcmamtx_get_total_downloads_count')) { 53 83 … … 146 176 } 147 177 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 186 if (!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) { 160 189 161 190 $empty_goahead = 'yes'; 162 191 163 192 if ($hide_empty == "yes") { 164 $get_count = wcmamtx_get_total_ orderid_count();193 $get_count = wcmamtx_get_total_woowallet_count(); 165 194 166 195 if ($get_count == 0) { … … 175 204 ?> 176 205 <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(); ?> 178 207 179 208 </span> … … 195 224 */ 196 225 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) {226 if (!function_exists('wcmamtx_render_order_count_bubble_html')) { 227 228 function wcmamtx_render_order_count_bubble_html($count_bubble,$hide_empty,$sidebar = null) { 200 229 201 230 $empty_goahead = 'yes'; 202 231 203 232 if ($hide_empty == "yes") { 204 $get_count = wcmamtx_get_total_ downloads_count();233 $get_count = wcmamtx_get_total_orderid_count(); 205 234 206 235 if ($get_count == 0) { … … 212 241 } 213 242 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 266 if (!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 214 283 if (($count_bubble == "yes") && ($empty_goahead == 'yes')) { 215 284 ?> … … 241 310 242 311 switch($key) { 243 case "orders": 244 312 case "woo-wallet": 245 313 if (is_array($value) ) { 246 314 … … 253 321 } 254 322 323 $count_of = isset($value['count_of']) ? $value['count_of'] : "woo-wallet-balance"; 324 255 325 $count_bubble = isset($value['count_bubble']) && ($value['count_bubble'] == "01") ? "yes" : "no"; 256 326 257 327 $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); 260 334 261 335 break; 262 336 263 case " downloads":337 case "orders": 264 338 265 339 if (is_array($value) ) { … … 272 346 273 347 } 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 } 274 368 275 369 $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 1010 1010 1011 1011 </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 ?> 1013 1020 </a> 1014 1021 </li> -
customize-my-account-for-woocommerce/trunk/readme.txt
r3461645 r3463725 4 4 Requires at least: 4.0 5 5 Tested up to: 6.9.1 6 WC Tested up to: 10.5. 16 WC Tested up to: 10.5.2 7 7 WC Requires at least: 4.0 8 8 Requires PHP: 5.2 9 Stable tag: 3.7.1 89 Stable tag: 3.7.19 10 10 Requires Plugins: woocommerce 11 11 License: GPLv2 or later … … 146 146 == Changelog == 147 147 148 Version 3.7.7 - 01 February 2026 149 148 Version 3.7.19 - 17 February 2026 149 150 - Enhancement - Inbuilt compatibility for Tera Wallet Plugin. 150 151 - Fix - Automatic disable of user avatar. 151 152 - Enhancement - Modular countof for count bubble.
Note: See TracChangeset
for help on using the changeset viewer.