From 2159f23c7500517838b7c0058f26aa01d8786a8f Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Thu, 18 Jan 2024 19:57:32 +0600 Subject: [PATCH 01/20] fix spelling --- readme.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index 68ab1861..20c93bc9 100644 --- a/readme.txt +++ b/readme.txt @@ -338,7 +338,7 @@ You can easily show specific category products. While creating new table click o * Added: New filter hook added for Inner Item. hook: `wpt_item_content`. * Fixed: Search Result has been fixed based on 'relevance'. * Fixed: Sorting Icon fixed and updated to latest icon. -* Added: Displaying tabl without atts - feature added. It's actually for sample table. +* Added: Displaying table without atts - feature added. It's actually for sample table. = 3.4.6 = * Fixed: Asc/Desc icon fixed (Table Title) From d66552f760e02fb1fa65cd84e10075802c73bc82 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Thu, 18 Jan 2024 20:11:01 +0600 Subject: [PATCH 02/20] link target fixed --- includes/items/product_title.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/items/product_title.php b/includes/items/product_title.php index 3ce4a38e..783fcf8a 100644 --- a/includes/items/product_title.php +++ b/includes/items/product_title.php @@ -12,7 +12,8 @@ $title_variation = isset( $column_settings['title_variation'] ) ? $column_settings['title_variation'] : 'link'; if($title_variation == 'link'){ - $wpt_single_product_title .= "" . $the_title . ""; + $link_target = $config_value['product_link_target'] ?? '_blank'; + $wpt_single_product_title .= "" . $the_title . ""; } elseif($title_variation == 'nolink'){ $wpt_single_product_title .= "" . $the_title . ""; } elseif($title_variation == 'yith'){ From e4fbfc4aae667d78e5dc3fcdcb2c1ace8d0baa70 Mon Sep 17 00:00:00 2001 From: "Md. Ibrahim Khalil" Date: Sun, 21 Jan 2024 12:39:23 +0600 Subject: [PATCH 03/20] Compatible with CSS code add --- assets/css/new-admin.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/assets/css/new-admin.css b/assets/css/new-admin.css index 5dc84d8d..bc466a40 100644 --- a/assets/css/new-admin.css +++ b/assets/css/new-admin.css @@ -676,6 +676,12 @@ Device and Screen wise CSS end Here /* Bootstrap */ .col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.container,.container-fluid{margin-right:auto;margin-left:auto}.row{margin-right:-15px;margin-left:-15px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.container{width:750px}.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.container{width:970px}.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1200px){.container{width:1170px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}} /* recommendation area */ +/*compatible*/ +tr.col-lg-4, tr.col-md-4 { + float: unset; +} +/*compatible*/ + #wpt-recomendation-area .ca-reuire-plugin-notice.anwwhere-notice { border: 1px solid white; margin: 10px 0; From f4e18058d5a76201031c3b0eadb7dbddc183269f Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Wed, 24 Jan 2024 16:53:17 +0600 Subject: [PATCH 04/20] version wc tested updated --- includes/functions.php | 12 +++++++++--- woo-product-table.php | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index c51c10ce..af8b8849 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -1,8 +1,14 @@ '; + var_dump($val); + echo ''; + } +} if( !function_exists( 'wpt_column_setting_for_tax_cf' ) ){ diff --git a/woo-product-table.php b/woo-product-table.php index e637ee2f..a70fbd89 100644 --- a/woo-product-table.php +++ b/woo-product-table.php @@ -11,7 +11,7 @@ * Requires at least: 4.0.0 * Tested up to: 6.4.2 * WC requires at least: 5.0.0 - * WC tested up to: 8.3.1 + * WC tested up to: 8.5.1 * * * Text Domain: woo-product-table From 1f5672cd78a46bc50826322007054db00c0ee8e9 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Mon, 29 Jan 2024 18:08:52 +0600 Subject: [PATCH 05/20] issue fixed - Something some theme/plugin use enqueue on wc filter/action hook, that to publish on another selector. --- inc/shortcode-ajax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/shortcode-ajax.php b/inc/shortcode-ajax.php index a8570051..d8d3f160 100644 --- a/inc/shortcode-ajax.php +++ b/inc/shortcode-ajax.php @@ -307,7 +307,7 @@ public function wpt_load_both(){ $this->argsOrganize()->table_body(); die(); //***************************/ - + $output['div>.other_output'] = ob_get_clean(); //Something some theme/plugin use enqueue on wc filter/action hook, that to publish on another selector. wp_send_json( $output ); die(); From 2c41a72d9dd90bf690bb5ea25cd510aca4c91a45 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Mon, 29 Jan 2024 18:17:41 +0600 Subject: [PATCH 06/20] changelog updated --- readme.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/readme.txt b/readme.txt index 20c93bc9..5b131702 100644 --- a/readme.txt +++ b/readme.txt @@ -333,6 +333,9 @@ You can easily show specific category products. While creating new table click o == Changelog == += 3.4.8 = +* Fixed: pagination issue for some specific theme has been fixed. + = 3.4.7 = * Added: New filter hook added for Table Row and inner Item. hook: `wpt_td_content`. * Added: New filter hook added for Inner Item. hook: `wpt_item_content`. From b1197ccb75418ae12c6619272ad24f4cda7e3130 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Wed, 31 Jan 2024 19:23:29 +0600 Subject: [PATCH 07/20] issue fixed --- assets/js/custom.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/custom.js b/assets/js/custom.js index 400fb40a..872fe5c7 100644 --- a/assets/js/custom.js +++ b/assets/js/custom.js @@ -1827,7 +1827,7 @@ jQuery(function($) { // $(document).on('keyup','.wpt_row input.input-text.qty.text', inputBoxChangeHandle); $(document).on('keyup','.wpt_row input.input-text.qty.text', oneSecondDelay(inputBoxChangeHandle,1500)); - $('body').on('change', '.wpt_row input.input-text.qty.text', inputBoxChangeHandle); + $(document.body).on('change', '.wpt_row input.input-text.qty.text', inputBoxChangeHandle); function inputBoxChangeHandle() { var temp_number = $(this).parents('tr.wpt_row').data('temp_number'); @@ -1840,7 +1840,7 @@ jQuery(function($) { Qty_Val = 0; } - $( thisRow + ' input.input-text.qty.text').val(Qty_Val); // input.input-text.qty.text + // $( thisRow + ' input.input-text.qty.text').val(Qty_Val); // input.input-text.qty.text $( thisRow ).attr('data-quantity', Qty_Val); $( thisRow + ' .wpt_action a.wpt_woo_add_cart_button').attr('data-quantity', Qty_Val); $( thisRow + ' .wpt_action a.add_to_cart_button').attr('data-quantity', Qty_Val); From 4ebb7a7c937a5e454d5e6aa7f10c970dffcd86ce Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Mon, 5 Feb 2024 10:13:36 +0600 Subject: [PATCH 08/20] noticeborad issue fixed --- assets/css/override-root.css | 4 ++++ assets/css/universal.css | 8 +++++++- assets/js/custom.js | 8 ++++---- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/assets/css/override-root.css b/assets/css/override-root.css index 63ffbbbf..38371854 100644 --- a/assets/css/override-root.css +++ b/assets/css/override-root.css @@ -409,6 +409,10 @@ div.wpt_notice_board>div:after { div.wpt_notice_board>div:hover:after { background: var(--wpt_primary_deepest) } +.wc-block-components-notice-banner__content { + color: var(--wpt_primary); +} + div.wpt_column_sort table#wpt_table.wpt_product_table tr>th.this_column_sorted { background-color: var(--wpt_sorted_head_bg); diff --git a/assets/css/universal.css b/assets/css/universal.css index 918adbe3..a0207f1e 100644 --- a/assets/css/universal.css +++ b/assets/css/universal.css @@ -1639,7 +1639,13 @@ div.wpt_notice_board>div:after { line-height: 8px; padding: 7px; } - +div.wc-block-components-notice-banner:after, +div.wpt_notice_board>div.wc-block-components-notice-banner:after{ + position: inherit; + right: inherit; + top: auto; + display: none; +} .wpt_edit_table { display: flex; justify-content: flex-start; diff --git a/assets/js/custom.js b/assets/js/custom.js index 872fe5c7..395ffe4c 100644 --- a/assets/js/custom.js +++ b/assets/js/custom.js @@ -8,7 +8,7 @@ jQuery(function($) { 'use strict'; $(document).ready(function() { - var notice_timeout = 3000; //In mili second + var notice_timeout = 2000; //In mili second if(WPT_DATA.notice_timeout){ notice_timeout = WPT_DATA.notice_timeout; } @@ -328,10 +328,10 @@ jQuery(function($) { var eachNoticeInnter = $(response); eachNoticeInnter.css('display','none'); if(response !== ''){ - noticeBoard.prepend(eachNoticeInnter); + noticeBoard.append(eachNoticeInnter); eachNoticeInnter.fadeIn(); setTimeout(function(){ - eachNoticeInnter.fadeOut('slow'); + eachNoticeInnter.fadeOut('medium'); eachNoticeInnter.remove(); },notice_timeout); //Detault 3000 } @@ -345,7 +345,7 @@ jQuery(function($) { } $('body').on('click','div.wpt_notice_board>div',function(){ - $(this).fadeOut('slow'); + $(this).fadeOut('medium'); }); /** From b42881031372afbb42f3f4996a7a46fd7b03147d Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Mon, 5 Feb 2024 10:19:03 +0600 Subject: [PATCH 09/20] changelog added --- readme.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/readme.txt b/readme.txt index 5b131702..c3ef7fc3 100644 --- a/readme.txt +++ b/readme.txt @@ -333,10 +333,9 @@ You can easily show specific category products. While creating new table click o == Changelog == -= 3.4.8 = -* Fixed: pagination issue for some specific theme has been fixed. - = 3.4.7 = +* Fixed: added to cart block notice text color issue fixed. +* Fixed: pagination issue for some specific theme has been fixed. * Added: New filter hook added for Table Row and inner Item. hook: `wpt_td_content`. * Added: New filter hook added for Inner Item. hook: `wpt_item_content`. * Fixed: Search Result has been fixed based on 'relevance'. From d0b17866b46537cf62a3d69661ef6bcf5e4f1eb4 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Mon, 5 Feb 2024 10:20:22 +0600 Subject: [PATCH 10/20] changelog done --- readme.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/readme.txt b/readme.txt index c3ef7fc3..7d1f2f63 100644 --- a/readme.txt +++ b/readme.txt @@ -341,6 +341,8 @@ You can easily show specific category products. While creating new table click o * Fixed: Search Result has been fixed based on 'relevance'. * Fixed: Sorting Icon fixed and updated to latest icon. * Added: Displaying table without atts - feature added. It's actually for sample table. +* Bug fixed +* Code Optimized = 3.4.6 = * Fixed: Asc/Desc icon fixed (Table Title) From 9f08b8d1a17a94dd863ef5a901bd0604008f1699 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Mon, 5 Feb 2024 11:01:19 +0600 Subject: [PATCH 11/20] Temp demo link added --- admin/page-loader.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/admin/page-loader.php b/admin/page-loader.php index c87d78f8..1c282a5b 100644 --- a/admin/page-loader.php +++ b/admin/page-loader.php @@ -49,15 +49,17 @@ public function admin_menu() { $proString = $this->is_pro ? esc_html__( ' Pro', 'woo-product-table' ) : ''; add_submenu_page( $this->main_slug, esc_html__( 'Configuration ', 'woo-product-table' ) . $proString, esc_html__( 'Configure', 'woo-product-table' ), WPT_CAPABILITY, 'woo-product-table-config', [$this, 'configure_page_render'] ); - add_submenu_page( $this->main_slug, esc_html__( 'Tutorials', 'woo-product-table' ). $proString, __( 'Tutorial', 'woo-product-table' ), WPT_CAPABILITY, 'wpt-live-support', [$this, 'html_tutorial_page'] ); + if( ! $this->is_pro ){ + add_submenu_page( $this->main_slug, esc_html__( 'Temp Pro Demo', 'woo-product-table' ), esc_html__( 'Temp Pro Demo', 'woo-product-table' ), 'read', 'https://codeastro.live/?site=wpt&utm=PluginDashboard' ); + } + add_submenu_page( $this->main_slug, esc_html__( 'Tutorials', 'woo-product-table' ). $proString, __( 'Tutorial', 'woo-product-table' ), 'read', 'wpt-live-support', [$this, 'html_tutorial_page'] ); - add_submenu_page( $this->main_slug, esc_html__( 'Browse Plugins', 'woo-product-table' ). $proString, __( 'Browse Plugins', 'woo-product-table' ), WPT_CAPABILITY, 'wpt-browse-plugins',[$this, 'browse_plugins_html'] ); - add_submenu_page( $this->main_slug, esc_html__( 'Addons', 'woo-product-table' ). $proString, __( 'Addons', 'woo-product-table' ), WPT_CAPABILITY, 'wpt-addons-list',[$this, 'addons_list_html'] ); - add_submenu_page( $this->main_slug, esc_html__( 'Issue Submit', 'woo-product-table' ). $proString, __( 'Issue Submit', 'woo-product-table' ), WPT_CAPABILITY, 'https://github.com/codersaiful/woo-product-table/issues/new' ); + add_submenu_page( $this->main_slug, esc_html__( 'Browse Plugins', 'woo-product-table' ). $proString, __( 'Browse Plugins', 'woo-product-table' ), 'read', 'wpt-browse-plugins',[$this, 'browse_plugins_html'] ); + add_submenu_page( $this->main_slug, esc_html__( 'Addons', 'woo-product-table' ). $proString, __( 'Addons', 'woo-product-table' ), 'read', 'wpt-addons-list',[$this, 'addons_list_html'] ); + add_submenu_page( $this->main_slug, esc_html__( 'Issue Submit', 'woo-product-table' ). $proString, __( 'Issue Submit', 'woo-product-table' ), 'read', 'https://github.com/codersaiful/woo-product-table/issues/new' ); if( ! $this->is_pro ){ - add_submenu_page( $this->main_slug, esc_html__( 'Try Pro Version', 'woo-product-table' ), esc_html__( 'Try Pro Version', 'woo-product-table' ), WPT_CAPABILITY, 'https://try.wooproducttable.com/wp-admin/?utm=PluginDashboard' ); - add_submenu_page( $this->main_slug, esc_html__( 'GET PRO VERSION', 'woo-product-table' ), __( 'Get Pro', 'woo-product-table' ), WPT_CAPABILITY, 'https://wooproducttable.com/pricing/' ); + add_submenu_page( $this->main_slug, esc_html__( 'GET PRO VERSION', 'woo-product-table' ), __( 'Get Pro', 'woo-product-table' ), 'read', 'https://wooproducttable.com/pricing/' ); } // var_dump($this->license); From 45ba2f383219003b759b9d87599483078bd4df64 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Mon, 5 Feb 2024 11:10:26 +0600 Subject: [PATCH 12/20] 'WPT_DEV_VERSION', '3.4.7.4' --- readme.txt | 4 ++-- woo-product-table.php | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/readme.txt b/readme.txt index 7d1f2f63..e4fa2373 100644 --- a/readme.txt +++ b/readme.txt @@ -3,8 +3,8 @@ Contributors: codersaiful,codeastrology,mdibrahimk48,ultraaddons,unikforce,rafiu Donate link: https://donate.stripe.com/4gw2bB2Pzdjd8mYfYZ Tags: wc product table, wooproducttable, woo product table,woocommerce product table, product table, wc table, quick order table, wholesale table, restaurants table,woo-product-table Requires at least: 4.0.0 -Tested up to: 6.4.2 -Stable tag: 3.4.6 +Tested up to: 6.4.3 +Stable tag: 3.4.7 Requires PHP: 5.4 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html diff --git a/woo-product-table.php b/woo-product-table.php index a70fbd89..410a5b12 100644 --- a/woo-product-table.php +++ b/woo-product-table.php @@ -7,11 +7,11 @@ * Author URI: https://wooproducttable.com/?utm_source=WPT+Plugin+Dashboard&utm_medium=Free+Version * Tags: wooproducttable, woocommerce product list,woocommerce product table, wc product table, product grid view, inventory, shop product table * - * Version: 3.4.6 + * Version: 3.4.7 * Requires at least: 4.0.0 - * Tested up to: 6.4.2 + * Tested up to: 6.4.3 * WC requires at least: 5.0.0 - * WC tested up to: 8.5.1 + * WC tested up to: 8.5.2 * * * Text Domain: woo-product-table @@ -33,7 +33,7 @@ } if( ! defined( 'WPT_DEV_VERSION' ) ){ - define( 'WPT_DEV_VERSION', '3.4.7.4' ); + define( 'WPT_DEV_VERSION', '3.4.7.5' ); } if( ! defined( 'WPT_CAPABILITY' ) ){ From b25f724cde712519aab12c86c5d2cc49a7c9dabf Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Mon, 5 Feb 2024 11:23:20 +0600 Subject: [PATCH 13/20] try demo for all --- admin/page-loader.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/admin/page-loader.php b/admin/page-loader.php index 1c282a5b..afa42800 100644 --- a/admin/page-loader.php +++ b/admin/page-loader.php @@ -49,9 +49,7 @@ public function admin_menu() { $proString = $this->is_pro ? esc_html__( ' Pro', 'woo-product-table' ) : ''; add_submenu_page( $this->main_slug, esc_html__( 'Configuration ', 'woo-product-table' ) . $proString, esc_html__( 'Configure', 'woo-product-table' ), WPT_CAPABILITY, 'woo-product-table-config', [$this, 'configure_page_render'] ); - if( ! $this->is_pro ){ - add_submenu_page( $this->main_slug, esc_html__( 'Temp Pro Demo', 'woo-product-table' ), esc_html__( 'Temp Pro Demo', 'woo-product-table' ), 'read', 'https://codeastro.live/?site=wpt&utm=PluginDashboard' ); - } + add_submenu_page( $this->main_slug, esc_html__( 'Temp Pro Demo', 'woo-product-table' ), esc_html__( 'Temp Pro Demo', 'woo-product-table' ), 'read', 'https://codeastro.live/?site=wpt&utm=PluginDashboard' ); add_submenu_page( $this->main_slug, esc_html__( 'Tutorials', 'woo-product-table' ). $proString, __( 'Tutorial', 'woo-product-table' ), 'read', 'wpt-live-support', [$this, 'html_tutorial_page'] ); From 7048338fb0ace68664fb1b4146cf11e932118c10 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Mon, 12 Feb 2024 17:33:57 +0600 Subject: [PATCH 14/20] working for multiple cart adding --- assets/js/custom.js | 3 ++- inc/handle/checkbox-box.php | 11 ++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/assets/js/custom.js b/assets/js/custom.js index 395ffe4c..1e348fb0 100644 --- a/assets/js/custom.js +++ b/assets/js/custom.js @@ -2517,6 +2517,7 @@ jQuery(function($) { //div.normal_table_wrapper table.normal_table $('div.advance_table_wrapper a.button.add_to_cart_all_selected').click(function() { + WPT_BlankNotice(); var temp_number = $(this).data('temp_number'); var allMessageBox = $('#table_id_' + temp_number + ' .wpt_custom_message'); @@ -2557,7 +2558,7 @@ jQuery(function($) { let eachProductData = 'product_id=' + product_id + '&' + form.serialize(); var obj = {}; - console.log(eachProductData); + eachProductData.replace(/([^=&]+)=([^&]*)/g, function(m, key, value) { obj[decodeURIComponent(key)] = decodeURIComponent(value); }); diff --git a/inc/handle/checkbox-box.php b/inc/handle/checkbox-box.php index 73d27b3c..8a609b11 100644 --- a/inc/handle/checkbox-box.php +++ b/inc/handle/checkbox-box.php @@ -19,7 +19,16 @@ public static function render( Shortcode $shortcode, string $position = 'header' // $text = ! empty( $text ) ? __( $text, 'woo-product-table' ) : __( 'Add to cart', 'woo-product-table' ); $selected_text = ! empty( $selected_text ) ? __( $selected_text, 'woo-product-table' ) : __( 'Add to Cart (Selected)','woo-product-table' ); $check_uncheck_text = ! empty( $check_uncheck_text ) ? __( $check_uncheck_text, 'woo-product-table' ) : __( 'Select All','woo-product-table' ); - + + /** + * Some site can be slow, then we will + * use filter hook 'wpt_multi_cart_faster' + * for adding fast in cart but without checkout all other + * + * Just doing it faster. + */ + $faster_carting = apply_filters( 'wpt_multi_cart_faster', '', $shortcode->table_id ); + $faster_carting = is_string( $faster_carting ) && ! empty( $faster_carting ) ? $faster_carting : ''; ?> "; }elseif($thumb_variation == 'ca_quick_view') { - - $tag_start = "
"; + $class_name = class_exists('CAWQV_PLUGIN_LITE') ? 'caqv-open-modal' : 'caqv-open-modal-notfound'; + $tag_start = "
"; $tag_end = "
"; }elseif ($thumb_variation == 'url') {