From 92903b204f886b44847908804f3aa9b6fd727240 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Thu, 24 Aug 2023 10:28:16 +0600 Subject: [PATCH 01/83] changelog updated --- readme.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/readme.txt b/readme.txt index a1dda7c9..282113f5 100644 --- a/readme.txt +++ b/readme.txt @@ -293,6 +293,13 @@ You can easily show specific category products. While creating new table click o == Changelog == += 3.4.3 = +* Speed optimized for product table using shortcode. +* Plugin init loaded on 'plugins_loaded' hook +* Fixed: sku search issue fixed for variable and variation product. +* Bug fixed +* Code Optimized + = 3.4.2 = * Added: new filter hook `wpt_subtotal_text` added for Subtotal text of footer cart. * Added: Footer added sub total and line total with class markup, so that user can easily handle. From 5195e94c1a5c43d2184568acc3513a3e6ad12f08 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Thu, 24 Aug 2023 10:34:03 +0600 Subject: [PATCH 02/83] changlog updated --- readme.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/readme.txt b/readme.txt index 282113f5..a2446b7a 100644 --- a/readme.txt +++ b/readme.txt @@ -297,6 +297,7 @@ You can easily show specific category products. While creating new table click o * Speed optimized for product table using shortcode. * Plugin init loaded on 'plugins_loaded' hook * Fixed: sku search issue fixed for variable and variation product. +* Fixed: conditional checkbox and conditional Add to cart button - issue fix for All to cart all selected. * Bug fixed * Code Optimized From 7053f74040dd1eb0512fe6d20bd557c5b09ed930 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Thu, 24 Aug 2023 12:45:45 +0600 Subject: [PATCH 03/83] wpt_loaded hook fully removed from inside free version --- inc/shortcode.php | 2 -- includes/enqueue.php | 4 ++-- includes/functions.php | 2 +- readme.txt | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/inc/shortcode.php b/inc/shortcode.php index 488bb6f2..9bede78f 100644 --- a/inc/shortcode.php +++ b/inc/shortcode.php @@ -380,8 +380,6 @@ class=""> table_id ); /** * Dev version for Get Vardump to get Object Details Var Dump diff --git a/includes/enqueue.php b/includes/enqueue.php index 9d6a94f4..a26999d6 100644 --- a/includes/enqueue.php +++ b/includes/enqueue.php @@ -121,7 +121,7 @@ function wpt_enqueue_common(){ /** * DataTable enable disable function using enqueue - * Used hook wpt_loaded + * Used hook wpt_after_table * * @since 3.1.9.0 * @author Saiful Islam @@ -164,7 +164,7 @@ function wpt_datatables_enqueue( $table_ID ){ } } -add_action( 'wpt_loaded', 'wpt_datatables_enqueue', 99 ); //wp_enqueue_scripts +add_action( 'wpt_after_table', 'wpt_datatables_enqueue', 99 ); //wp_enqueue_scripts function wpt_datatable_wise_arg_manage( $args, $table_ID ){ $condtion = get_post_meta( $table_ID, 'conditions', true ); diff --git a/includes/functions.php b/includes/functions.php index fa49d548..c51c10ce 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -1584,5 +1584,5 @@ function wpt_default_css_template( $tbl_id ){ $template_file = WPT_Product_Table::getPath('BASE_URL') . 'assets/css/templates/' . $template . '.css'; wp_enqueue_style( 'wpt-template-' . $template , $template_file, array(), WPT_DEV_VERSION, 'all' ); } -// add_action( 'wpt_loaded','wpt_default_css_template', 999 ); +// add_action( 'wpt_after_table','wpt_default_css_template', 999 ); // add_action( 'wpto_action_start_table','wpt_default_css_template', 999 ); \ No newline at end of file diff --git a/readme.txt b/readme.txt index a2446b7a..d26da56f 100644 --- a/readme.txt +++ b/readme.txt @@ -463,7 +463,7 @@ You can easily show specific category products. While creating new table click o * Empty Cart buttin fixed. * Fontello added. Some cutom icon added to our table. * Added Action_Hook wpt_load for staring product table anywhere. - * Added Action_Hook wpt_loaded at the end product table anywhere. + * Added Action_Hook wpt_after_table at the end product table anywhere. = 3.1.7 = * Audio file issue fixed in table. From 5f2a9ece8336ae2d2b4372bd6d34296ece0b43cb Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Sun, 27 Aug 2023 11:45:39 +0600 Subject: [PATCH 04/83] working --- includes/variation_html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/variation_html.php b/includes/variation_html.php index da727581..7ffc8207 100644 --- a/includes/variation_html.php +++ b/includes/variation_html.php @@ -67,4 +67,4 @@ Date: Sun, 27 Aug 2023 16:10:22 +0600 Subject: [PATCH 05/83] added --- includes/variation_html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/variation_html.php b/includes/variation_html.php index 7ffc8207..e20b4b2a 100644 --- a/includes/variation_html.php +++ b/includes/variation_html.php @@ -67,4 +67,4 @@ Date: Wed, 30 Aug 2023 17:14:40 +0600 Subject: [PATCH 06/83] addons page creattion done --- admin/page-loader.php | 10 + admin/page/addons-list.php | 512 +++++++++++++++++++++++++++++++++++++ 2 files changed, 522 insertions(+) create mode 100644 admin/page/addons-list.php diff --git a/admin/page-loader.php b/admin/page-loader.php index 4691eca3..8f9d83ce 100644 --- a/admin/page-loader.php +++ b/admin/page-loader.php @@ -52,6 +52,7 @@ public function admin_menu() add_submenu_page( $this->main_slug, esc_html__( 'Browse Plugins', 'woo-product-table' ), __( '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' ), __( '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' ), __( 'Issue Submit', 'woo-product-table' ), WPT_CAPABILITY, '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' ); @@ -120,6 +121,15 @@ public function browse_plugins_html() } include $this->page_folder_dir . 'browse-plugins.php'; } + public function addons_list_html() + { + $this->topbar_sub_title = __( 'Addons','woo-product-table' ); + include $this->topbar_file; + if( ! $this->is_pro ){ + include $this->page_folder_dir . 'premium-link-header.php'; + } + include $this->page_folder_dir . 'addons-list.php'; + } public function html_tutorial_page() { //In future, I will make it like min max plugin - which I already did diff --git a/admin/page/addons-list.php b/admin/page/addons-list.php new file mode 100644 index 00000000..80596ec1 --- /dev/null +++ b/admin/page/addons-list.php @@ -0,0 +1,512 @@ + + +
+

+
+ +
+ + + + +
+
+
+
+ + + + + + + + + + +
+ +
+
+
+ +
+

Troubleshoots

+
+ + + View All + +
+
+
+ +
+
+
+ +
+

Help us to Inprove Plugin

+
+ +
+
+
+ +
+
+
+ + + + +
+
+ +
+ + From 6c3c6002de8004435b14f1245de5092ae9f86841 Mon Sep 17 00:00:00 2001 From: Fazle Bari Date: Wed, 30 Aug 2023 17:50:31 +0600 Subject: [PATCH 07/83] update Addons page --- admin/page/addons-list.php | 303 ++----------------------------------- 1 file changed, 15 insertions(+), 288 deletions(-) diff --git a/admin/page/addons-list.php b/admin/page/addons-list.php index 80596ec1..63daf6b5 100644 --- a/admin/page/addons-list.php +++ b/admin/page/addons-list.php @@ -193,24 +193,16 @@
-

Pre Sale

+

Group Products By Category

+
+ +
+

+ With the Group Products By Category plugin, you can transform your product listings into a well-structured and visually appealing format. Gone are the days of scrolling through an endless list of products – now you can effortlessly group products based on their respective categories, creating a clear hierarchy that helps customers navigate and explore your offerings more efficiently. +

- - View All + See More
@@ -218,283 +210,18 @@ - - - - - - - - - -
-
- -
-

WooCommerce Tips

+
+

+ An addon of Woo Product Table plugin. This will help you to display variable and simple products together. This plugin will convert every variation as a row and display it among the simple products. Make sure you have installed our main (Woo Product Table) plugin. +

- - - View All - -
-
-
-
- -
-

Troubleshoots

-
- - - View All - -
-
- -
-
- -
-

Help us to Inprove Plugin

-
- -
-
From a789264e5bd22b8101a6badbd312ce524c199445 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Thu, 31 Aug 2023 09:28:31 +0600 Subject: [PATCH 08/83] more styled --- admin/page/addons-list.php | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/admin/page/addons-list.php b/admin/page/addons-list.php index 63daf6b5..b994acaf 100644 --- a/admin/page/addons-list.php +++ b/admin/page/addons-list.php @@ -64,7 +64,7 @@ .col-md-4 { flex: 0 0 auto; - width: 300px; + width: 380px; } .fadeInUp { @@ -174,6 +174,9 @@ h2.wpt-heading-title.wpt-size-default { font-size: 3em; } + a.get-addons-btn{ + width: fit-content; + }
@@ -201,12 +204,15 @@ With the Group Products By Category plugin, you can transform your product listings into a well-structured and visually appealing format. Gone are the days of scrolling through an endless list of products – now you can effortlessly group products based on their respective categories, creating a clear hierarchy that helps customers navigate and explore your offerings more efficiently.

- - See More + + + Get it now -
+ + +
@@ -217,11 +223,24 @@ An addon of Woo Product Table plugin. This will help you to display variable and simple products together. This plugin will convert every variation as a row and display it among the simple products. Make sure you have installed our main (Woo Product Table) plugin.

- - See More + + + Get it now
+
+
+ +
+

Comming Soon

+
+
+

More addons for Woo Product table has been cominng.

+
+ +
+
From 3f88204fb227cd5a6366e59edda3c5b0e028ca7a Mon Sep 17 00:00:00 2001 From: Fazle Bari Date: Thu, 31 Aug 2023 11:15:37 +0600 Subject: [PATCH 09/83] addon list --- admin/page/addons-list.php | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/admin/page/addons-list.php b/admin/page/addons-list.php index 63daf6b5..03363f17 100644 --- a/admin/page/addons-list.php +++ b/admin/page/addons-list.php @@ -82,9 +82,9 @@ flex-wrap: wrap; } - .categories_guide_item .doc_tag_title { + /* .categories_guide_item .doc_tag_title { margin-bottom: 24px; - } + } */ .categories_guide_item .tag_list { margin-bottom: 42px; @@ -119,7 +119,7 @@ } .doc_tag_title h4 { - font-size: 20px; + font-size: 25px; line-height: 26px; margin-bottom: 20px; } @@ -174,6 +174,10 @@ h2.wpt-heading-title.wpt-size-default { font-size: 3em; } + .wpt-addons-desc p { + font-size: 16px; + line-height: 25px; + }
@@ -196,9 +200,9 @@

Group Products By Category

-
+

- With the Group Products By Category plugin, you can transform your product listings into a well-structured and visually appealing format. Gone are the days of scrolling through an endless list of products – now you can effortlessly group products based on their respective categories, creating a clear hierarchy that helps customers navigate and explore your offerings more efficiently. + You can effortlessly group products based on their respective categories, creating a clear hierarchy that helps customers navigate and explore your offerings more efficiently.

@@ -212,12 +216,12 @@

Simple and Variation Products

-
From 2f91420b506fed234062d9380b6bc4c191fc99ce Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Thu, 31 Aug 2023 11:22:40 +0600 Subject: [PATCH 10/83] done --- admin/page/addons-list.php | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/admin/page/addons-list.php b/admin/page/addons-list.php index 63daf6b5..b994acaf 100644 --- a/admin/page/addons-list.php +++ b/admin/page/addons-list.php @@ -64,7 +64,7 @@ .col-md-4 { flex: 0 0 auto; - width: 300px; + width: 380px; } .fadeInUp { @@ -174,6 +174,9 @@ h2.wpt-heading-title.wpt-size-default { font-size: 3em; } + a.get-addons-btn{ + width: fit-content; + }
@@ -201,12 +204,15 @@ With the Group Products By Category plugin, you can transform your product listings into a well-structured and visually appealing format. Gone are the days of scrolling through an endless list of products – now you can effortlessly group products based on their respective categories, creating a clear hierarchy that helps customers navigate and explore your offerings more efficiently.

- - See More + + + Get it now
-
+ + +
@@ -217,11 +223,24 @@ An addon of Woo Product Table plugin. This will help you to display variable and simple products together. This plugin will convert every variation as a row and display it among the simple products. Make sure you have installed our main (Woo Product Table) plugin.

- - See More + + + Get it now
+
+
+ +
+

Comming Soon

+
+
+

More addons for Woo Product table has been cominng.

+
+ +
+
From 31c5d409456aa56a304729e516c60159b0f74b50 Mon Sep 17 00:00:00 2001 From: Fazle Bari Date: Thu, 31 Aug 2023 12:24:41 +0600 Subject: [PATCH 11/83] Done --- admin/page/addons-list.php | 62 +++++++++++++++++++------------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/admin/page/addons-list.php b/admin/page/addons-list.php index b994acaf..b34e8c0f 100644 --- a/admin/page/addons-list.php +++ b/admin/page/addons-list.php @@ -27,6 +27,7 @@ .wpt-6539 .wpt-element.wpt-element-727a4d7a { text-align: center; } + .elementor *, .elementor :after, .elementor :before { @@ -36,6 +37,10 @@ .home-docs .col-md-4 { display: flex; + transition: transform 1.5s ease; + } + .home-docs .col-md-4:hover { + transform: scale(1.1); } .home-docs .categories_guide_item { @@ -49,7 +54,8 @@ transition: background .3s, border .3s, border-radius .3s, box-shadow .3s; transition: background .3s, border .3s, border-radius .3s, box-shadow .3s, -webkit-box-shadow .3s; } - .wpt-widget-container-flued .tuts-box-wrapper{ + + .wpt-widget-container-flued .tuts-box-wrapper { display: flex; gap: 25px; flex-wrap: wrap; @@ -82,9 +88,9 @@ flex-wrap: wrap; } - .categories_guide_item .doc_tag_title { + /* .categories_guide_item .doc_tag_title { margin-bottom: 24px; - } + } */ .categories_guide_item .tag_list { margin-bottom: 42px; @@ -119,7 +125,7 @@ } .doc_tag_title h4 { - font-size: 20px; + font-size: 24px; line-height: 26px; margin-bottom: 20px; } @@ -155,15 +161,18 @@ .wpt-widget-text-editor .wpt-drop-cap-letter { display: inline-block } + .home-docs .container-flued>.row { display: flex; align-items: stretch; gap: 25px; } + .home-docs .col-md-4 a { text-decoration: none; margin-top: auto; } + .home-docs .col-md-4 a.wpt-button.reset { text-decoration: none; margin-top: auto; @@ -171,46 +180,45 @@ text-align: center; text-transform: none; } + h2.wpt-heading-title.wpt-size-default { font-size: 3em; } - a.get-addons-btn{ + + a.get-addons-btn { width: fit-content; } + .wpt-addons-desc p { + font-size: 16px; + line-height: 1.6; + }

-
- - - - -
+
- +

Group Products By Category

- -
+

- With the Group Products By Category plugin, you can transform your product listings into a well-structured and visually appealing format. Gone are the days of scrolling through an endless list of products – now you can effortlessly group products based on their respective categories, creating a clear hierarchy that helps customers navigate and explore your offerings more efficiently. + Gone are the days of scrolling through an endless list of products – now you can effortlessly group products based on their respective categories, creating a clear hierarchy that helps customers navigate and explore your offerings more efficiently.

- + Get it now
-
@@ -218,12 +226,12 @@

Simple and Variation Products

-
+

- An addon of Woo Product Table plugin. This will help you to display variable and simple products together. This plugin will convert every variation as a row and display it among the simple products. Make sure you have installed our main (Woo Product Table) plugin. + This will help you to display variable and simple products together. This plugin will convert every variation as a row and display it among the simple products.Now customers will get a more visual presentation.

- + Get it now @@ -235,24 +243,16 @@

Comming Soon

-
-

More addons for Woo Product table has been cominng.

+
+

More add-ons for Woo Product Table have been coming...

-
-
- - - -
-
- - +
\ No newline at end of file From 28e51152b683124d30835545d528716727e9cfbb Mon Sep 17 00:00:00 2001 From: Fazle Bari Date: Thu, 31 Aug 2023 12:34:17 +0600 Subject: [PATCH 12/83] fix design and remove codecanyon link of tutorial.php --- admin/page/tutorials.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/admin/page/tutorials.php b/admin/page/tutorials.php index 80596ec1..dd0b631a 100644 --- a/admin/page/tutorials.php +++ b/admin/page/tutorials.php @@ -82,14 +82,14 @@ flex-wrap: wrap; } - .categories_guide_item .doc_tag_title { + /* .categories_guide_item .doc_tag_title { margin-bottom: 24px; - } - + } */ +/* .categories_guide_item .tag_list { margin-bottom: 42px; margin-top: 22px; - } + } */ .tag_list li { margin-top: 15px; @@ -225,10 +225,6 @@ How to create WooCommerce Product Table? -
  • - - Where is my plugin purchase code? (Only for CodeCanyon user) -
  • Get Automatic Updates from CodeCanyon (Only for CodeCanyon user) From a09d37c196d49534691b6b86eba8642ea21815e3 Mon Sep 17 00:00:00 2001 From: Fazle Bari Date: Thu, 31 Aug 2023 12:52:51 +0600 Subject: [PATCH 13/83] set transform: scale(1.01) --- admin/page/addons-list.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/page/addons-list.php b/admin/page/addons-list.php index b34e8c0f..16efe665 100644 --- a/admin/page/addons-list.php +++ b/admin/page/addons-list.php @@ -37,10 +37,10 @@ .home-docs .col-md-4 { display: flex; - transition: transform 1.5s ease; + transition: transform 0.3s ease; } .home-docs .col-md-4:hover { - transform: scale(1.1); + transform: scale(1.01); } .home-docs .categories_guide_item { From 77b7069c6a5ed33702362606c9a56193b1d044d7 Mon Sep 17 00:00:00 2001 From: Fazle Bari Date: Thu, 31 Aug 2023 12:56:46 +0600 Subject: [PATCH 14/83] remove console.log from admin.js file --- assets/js/admin.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/assets/js/admin.js b/assets/js/admin.js index 831a97a3..1e17e83f 100644 --- a/assets/js/admin.js +++ b/assets/js/admin.js @@ -340,7 +340,7 @@ jQuery.fn.extend({ var prevClass = prev.attr('class'); var next = thisElement.next(); var nextClass = next.attr('class'); - console.log(target); + //console.log(typeof prev, typeof next, typeof thisElement); if( target == 'next' && typeof next.html() !== 'undefined'){ thisElement.before('
  • '+next.html()+'
  • '); @@ -918,7 +918,7 @@ jQuery.fn.extend({ */ var colSetsLen = $('form#wpt-main-configuration-form').length; - console.log(colSetsLen); + if( colSetsLen > 0 ){ var saveChangeText = 'Save'; @@ -929,7 +929,7 @@ jQuery.fn.extend({ $('#wpt-main-configuration-form').append(btnHtml); $(window).on('scroll',function(){ - console.log(222222); + let targetElement = $('.float-btn'); // if(targetElement.length < 1) return; @@ -976,7 +976,7 @@ jQuery.fn.extend({ */ var status = $('#original_post_status').val(); - console.log(status, postColSetsLen); + if( postColSetsLen > 0 && status === 'publish'){ var saveChangeText = $('button.button[name="wpt_post_submit"]').text(); //Save Change var myHtml = '
    '; @@ -984,7 +984,7 @@ jQuery.fn.extend({ myHtml += '
    '; $('#wpt_configuration_form').append(myHtml); $(window).on('scroll',function(){ - console.log(88888888888); + let targetElement = $('.stick_on_scroll'); if(targetElement.length < 1) return; From 358ca447acfce5e8863f48d014dc20c7605d0143 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Thu, 7 Sep 2023 18:32:04 +0600 Subject: [PATCH 15/83] new filter hook added wpt_pagination_class_arr --- inc/handle/pagination.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/inc/handle/pagination.php b/inc/handle/pagination.php index 8f2f2c1b..02d3b400 100644 --- a/inc/handle/pagination.php +++ b/inc/handle/pagination.php @@ -15,7 +15,13 @@ class Pagination{ * @return void */ public static function render( Shortcode $shortcode ){ + $pagi_class_args = apply_filters('wpt_pagination_class_arr', [ + 'wpt_my_pagination', + 'wpt-my-pagination-' . $shortcode->table_id, + 'wpt_table_pagination' + ], $shortcode->table_id); + $pagi_class = implode( ' ', $pagi_class_args ); /** * Pagination's this part/method, only need when pagination will number. * and in our plugin, pagination value 'on' means number. for other, @@ -26,7 +32,7 @@ public static function render( Shortcode $shortcode ){ //Actually I have to check. // if( 'on' !== $shortcode->pagination ) return; ?> -
    +
    From ef6d52a2a81e43bafef332b06f63bc2cdebaf7aa Mon Sep 17 00:00:00 2001 From: Fazle Bari Date: Sat, 9 Sep 2023 11:38:53 +0600 Subject: [PATCH 16/83] if "Stock management" is checked, backorders is allowed and quantity is one then quantity type is checnge to 'hidden'. --- includes/items/quantity.php | 48 +++++++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 18 deletions(-) diff --git a/includes/items/quantity.php b/includes/items/quantity.php index 695bece2..e1e9c1f5 100644 --- a/includes/items/quantity.php +++ b/includes/items/quantity.php @@ -1,24 +1,36 @@
    is_sold_individually() ) return false; + /** + * Checking if is_sold_individually + * then wc will not show qty box + * that's why, I return default template + * + * rest will handle from WooCommerce + * + * @since 1.0.8 + */ + + if( $product->is_sold_individually() ) return false; -$t_args = array( - 'input_value' => apply_filters( 'woocommerce_quantity_input_min', 1, $product ), - 'max_value' => apply_filters( 'woocommerce_quantity_input_max', $product->get_stock_quantity(), $product ), - 'min_value' => apply_filters( 'woocommerce_quantity_input_min', 1, $product ), - 'step' => apply_filters( 'woocommerce_quantity_input_step', 1, $product ), -); -woocommerce_quantity_input( $t_args , $product, true ); -?> + $t_args = array( + 'input_value' => apply_filters( 'woocommerce_quantity_input_min', 1, $product ), + 'max_value' => apply_filters( 'woocommerce_quantity_input_max', $product->get_stock_quantity(), $product ), + 'min_value' => apply_filters( 'woocommerce_quantity_input_min', 1, $product ), + 'step' => apply_filters( 'woocommerce_quantity_input_step', 1, $product ), + ); + + /** + * if "Stock management" is checked, backorders is allowed and quantity is one then quantity type is checnge to 'hidden'. + * Therefor quantity box is not showing. + * with this hook we are changing back to 'number' + */ + add_filter('woocommerce_quantity_input_type', function($type){ + $type = 'number'; + return $type; + }); + + woocommerce_quantity_input( $t_args , $product, true ); + ?>
    From ea2487d1c1b0a60bc359c6eab171df184776d6bf Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Mon, 11 Sep 2023 18:16:37 +0600 Subject: [PATCH 17/83] renew order has done --- admin/page-loader.php | 83 ++++++++++++++++++++++++++++++++++++++++++- assets/css/admin.css | 54 ++++++++++++++++++++++++++++ 2 files changed, 136 insertions(+), 1 deletion(-) diff --git a/admin/page-loader.php b/admin/page-loader.php index 8f9d83ce..67486131 100644 --- a/admin/page-loader.php +++ b/admin/page-loader.php @@ -20,7 +20,7 @@ public function __construct() $this->is_pro = defined( 'WPT_PRO_DEV_VERSION' ); if($this->is_pro && class_exists( '\WOO_Product_Table' ) ){ $this->pro_version = WPT_PRO_DEV_VERSION; - // $this->license = \WOO_Product_Table::$direct; + $this->handle_license_n_update(); } $this->page_folder_dir = $this->base_dir . 'admin/page/'; $this->topbar_file = $this->page_folder_dir . 'topbar.php'; @@ -141,4 +141,85 @@ public function html_tutorial_page() } include $this->page_folder_dir . 'tutorials.php'; } + + /** + * If will work, when only found pro version + * + * @since 3.4.3.0 + * @author Saiful Islam + * + * @return void + */ + public function handle_license_n_update() + { + $this->license_key = get_option( 'wpt_pro_license_key' ); + if(empty($this->license_key)) return; + $this->license_data_key = 'wpt_license_data'; + $this->license_status_key = 'wpt_pro_license_status'; + $this->license_status = get_option( $this->license_status_key ); + $this->license_data = get_option($this->license_data_key); + /** + * Actually if not found lisen data, we will return null here + * + * @since 3.4.3.0 + * @author Saiful Islam + */ + if( empty( $this->license_status ) || empty( $this->license_data ) ) return; + + $expires = isset($this->license_data->expires) ? $this->license_data->expires : ''; + $this->item_id = isset($this->license_data->item_id) ? $this->license_data->item_id : ''; + if('lifetime' == $expires) return; + $exp_timestamp = strtotime($expires); + /** + * keno ami ei timestamp niyechi. + * asole expire a zodi faka ase, tahole ta 1 jan, 1970 as strtotime er output. + * + * ar jehetu amora 2010 er por kaj suru korechi. tai sei expire date ba ager date asar kOnO karonoi nai. + * tai zodi 2012 er kom timestamp ase amora return null kore debo. + * za already diyechi: if( $exp_timestamp < $year2010_timestamp ) return; by this line. niche follow korun. + */ + $year2010_timestamp = strtotime('2023-09-08 23:59:59'); + if( $exp_timestamp < $year2010_timestamp ) return; + + //ekhon amora bortoman date er sathe tulona korbo + if($exp_timestamp < time()){ + + $this->exp_timestamp = $exp_timestamp; + // var_dump($this->license_data); + if($this->license_status == 'valid'){ + $this->invalid_status = 'invalid'; + $this->license_data->license = $this->invalid_status; + update_option( $this->license_status_key, $this->invalid_status ); + update_option( $this->license_data_key, $this->license_data ); + + + } + add_action( 'admin_notices', [$this, 'renew_license_notice'] ); + } + + + } + + public function renew_license_notice() + { + + if(empty($this->item_id)) return; + $wpt_logo = WPT_ASSETS_URL . 'images/logo.png'; + $expired_date = date( 'd M, Y', $this->exp_timestamp ); + $link_label = __( 'Renew License', 'wpt_pro' ); + $link = "https://codeastrology.com/checkout/?edd_license_key={$this->license_key}&download_id={$this->item_id}"; + $message = esc_html__( ' Renew it to get latest update.', 'wpt_pro' ) . ''; + ob_start(); + ?> +
    +
    + + Your License of Woo Product Table pro has been expired at + %1$s %3$s +
    +
    ' + div { + background: white; + padding: 10px 15px; + display: block !important; + clear: both; + border-left: 5px solid #d00; + margin: 13px 0 0 0; + box-sizing: border-box; + height: max-content; + line-height: 30px; +} +.wpt-renew-license-notice { + display: block; + clear: both; + height: max-content; + background: transparent; +} +.error.wpt-renew-license-notice { + border: 0 none !important; + padding: 0; +} +.wpt-renew-license-notice a { + background: #E91E63; + border-color: #E91E63; + text-transform: uppercase !important; + padding: 6px 10px !important; + border-left: 27px solid #7a052d; + position: relative; + color: white; + text-decoration: none; + white-space: nowrap; +} +.wpt-renew-license-notice a:hover { + + background: #4caf50; + border-color: #38823b; + text-transform: uppercase !important; + padding: 6px 10px !important; + border-left: 27px solid #38823b; + position: relative; +} +.wpt-renew-license-notice a::before { + content: "☀"; + position: absolute; + top: -2px; + left: -20px; + color: rgb(255, 255, 255); +} +img.wpt-license-brand-logo { + width: 25px; + height: auto; + display: inline-block; + margin-bottom: -8px; +} a.wpt-doc-lick{ text-decoration: none; padding: 5px; From f18f6d12c248e17b11a2870af88f471dbed56a32 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Wed, 13 Sep 2023 09:54:23 +0600 Subject: [PATCH 18/83] WC tested up to: 8.1.0 --- woo-product-table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/woo-product-table.php b/woo-product-table.php index fba31509..4bbbca9a 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.3 * WC requires at least: 5.0.0 - * WC tested up to: 8.0.2 + * WC tested up to: 8.1.0 * * * Text Domain: woo-product-table From 4b3159d1a5d9e9021a5dba192f683858ba8824de Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Wed, 13 Sep 2023 13:45:45 +0600 Subject: [PATCH 19/83] discount notice added --- admin/page-loader.php | 2 +- framework/handle.php | 36 ++++++++++++++++++++++++++---------- 2 files changed, 27 insertions(+), 11 deletions(-) diff --git a/admin/page-loader.php b/admin/page-loader.php index 67486131..c099fee0 100644 --- a/admin/page-loader.php +++ b/admin/page-loader.php @@ -214,7 +214,7 @@ public function renew_license_notice()
    - Your License of Woo Product Table pro has been expired at + Your License of Woo Product Table pro has been expired at %1$s %3$s
    ' diff --git a/framework/handle.php b/framework/handle.php index 3995c975..adfc75ab 100644 --- a/framework/handle.php +++ b/framework/handle.php @@ -50,11 +50,12 @@ public static function fail() */ public static function display_notice() { - if(time() > 1692167603 + 864000) return; + + if(time() > 1694587433 + 864000) return; if( defined( 'WPT_PRO_DEV_VERSION' ) ) return; - $temp_numb = rand(1,10); - // var_dump($temp_numb); + $temp_numb = rand(1,5); + /** * small notice for pro plugin, * charect: @@ -71,21 +72,36 @@ public static function display_notice() // if($temp_numb == 3) $small_notc->show(); - - $target = 'https://codeastrology.com/coupons/?campaign=SPECIAL60F10DAYS&ref=1&utm_source=Default_Offer_LINK'; - $my_message = 'COUPON CODE: SPECIAL60F10DAYS - up to 60% OFF A coupon code for you for Woo Product Table Pro) Plugin'; - $offerNc = new Notice('wpt_SPECIAL60F10DAYS_offer'); + $coupon_Code = 'CA60PERCENT'; + $target = 'https://wooproducttable.com/pricing/?discount=' . $coupon_Code . '&campaign=' . $coupon_Code . '&ref=1&utm_source=Default_Offer_LINK'; + $my_message = 'Make Product Table easily with discount offer.
    COUPON CODE: ' . $coupon_Code . ' - up to 60% OFF A coupon code for you for Woo Product Table Pro) Plugin'; + $offerNc = new Notice('wpt_'.$coupon_Code.'_offer'); $offerNc->set_title( 'SPECIAL OFFER for 10 days' ) - ->set_diff_limit(35) + ->set_diff_limit(3) ->set_type('offer') ->set_img( WPT_BASE_URL. 'assets/images/wpt-logo-sk.png') ->set_img_target( $target ) ->set_message( $my_message ) ->add_button([ - 'text' => 'Claim Discount', - 'type' => 'error', + 'text' => 'Full Pricing', + 'type' => 'success', 'link' => $target, ]); + $offerNc->add_button([ + 'text' => 'Unlimited Access(Lifetime)', + 'type' => 'offer', + 'link' => 'https://codeastrology.com/checkout?edd_action=add_to_cart&download_id=6553&edd_options%5Bprice_id%5D=6&discount=' . $coupon_Code, + ]); + $offerNc->add_button([ + 'text' => 'Unlimited Access(Yearly)', + 'type' => 'offer', + 'link' => 'https://codeastrology.com/checkout?edd_action=add_to_cart&download_id=6553&edd_options%5Bprice_id%5D=3&discount=' . $coupon_Code, + ]); + $offerNc->add_button([ + 'text' => 'All Products', + 'type' => 'error', + 'link' => 'https://codeastrology.com/downloads/?discount=' . $coupon_Code, + ]); // if( method_exists($offerNc, 'set_location') ){ // $offerNc->set_location('wpt_offer_here'); //wpt_premium_image_bottom // } From e962b70c25f296ba27bc0cd2e12c2bfdab0d2b4e Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Wed, 13 Sep 2023 14:50:00 +0600 Subject: [PATCH 20/83] apatoto tracker loader off --- admin/admin-loader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/admin-loader.php b/admin/admin-loader.php index 9112624b..690def37 100644 --- a/admin/admin-loader.php +++ b/admin/admin-loader.php @@ -32,7 +32,7 @@ public function __construct(){ $features->run(); - add_action('admin_init', [$this, 'admin_init']); + // add_action('admin_init', [$this, 'admin_init']); } public function admin_init(){ From 5ce717a8e25344e66029b06e6941bfd70fccca1e Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Thu, 14 Sep 2023 10:48:07 +0600 Subject: [PATCH 21/83] sorting price has been fixed --- assets/js/custom.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/assets/js/custom.js b/assets/js/custom.js index bad561a1..71c5fa56 100644 --- a/assets/js/custom.js +++ b/assets/js/custom.js @@ -2301,12 +2301,11 @@ jQuery(function($) { ]; var number_class = $('td'+target_class + '>.text_with_number');//.find('.text_with_number'); var content_type = 'normal'; - if(target_class.search('.wpt_price') != -1){ - content_type = 'price'; - }else if(number_class.length > 0 || target_class.search('.wpt_serial_number') != -1 || target_class.search('.wpt_product_id') != -1 || target_class.search('.wpt_total') != -1 ){ + if(number_class.length > 0 || target_class.search('.wpt_serial_number') != -1 || target_class.search('.wpt_product_id') != -1 || target_class.search('.wpt_total') != -1 ){ content_type = 'number'; + }else if(target_class.search('.wpt_price') != -1){ + content_type = 'price'; } - //wpt_serial_number var sort_type = $(this).attr('data-sort_type'); From 37bfe20c089f440df9e51919c6e28f98d7ce55df Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Sun, 24 Sep 2023 10:22:47 +0600 Subject: [PATCH 22/83] WC tested up to: 8.1.1 --- woo-product-table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/woo-product-table.php b/woo-product-table.php index 4bbbca9a..3974e275 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.3 * WC requires at least: 5.0.0 - * WC tested up to: 8.1.0 + * WC tested up to: 8.1.1 * * * Text Domain: woo-product-table From 62309046eaa871d3e483c07e5933398c16fbd571 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Sun, 1 Oct 2023 10:41:49 +0600 Subject: [PATCH 23/83] single quotesion issue has been solved --- admin/page-loader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/page-loader.php b/admin/page-loader.php index c099fee0..01a7f72d 100644 --- a/admin/page-loader.php +++ b/admin/page-loader.php @@ -217,7 +217,7 @@ public function renew_license_notice() Your License of Woo Product Table pro has been expired at %1$s %3$s
    -
    ' +
    Date: Sun, 1 Oct 2023 10:57:07 +0600 Subject: [PATCH 24/83] console.log and commented console.log has been removed --- assets/js/custom.js | 52 ++++++++------------------------------------- 1 file changed, 9 insertions(+), 43 deletions(-) diff --git a/assets/js/custom.js b/assets/js/custom.js index 71c5fa56..e8e59d1b 100644 --- a/assets/js/custom.js +++ b/assets/js/custom.js @@ -103,7 +103,7 @@ jQuery(function($) { var thisButton = $(this); var thisPagination = thisButton.closest('.wpt_my_pagination'); var page_number = $(thisButton).text(); - // console.log(page_number) + var table_id = thisPagination.data('table_id'); var data = { @@ -137,14 +137,6 @@ jQuery(function($) { var targetTableArgs = targetTable.attr( 'data-data_json' ); targetTableArgs = JSON.parse(targetTableArgs); - // let newArgs = $(this).parents('mypagi').attr('myjson'); - // // console.log(typeof newArgs, newArgs); - // if( typeof newArgs !== 'undefined' && typeof newArgs === 'string' ){ - // targetTableArgs = JSON.parse(newArgs); - // }else{ - // targetTableArgs = JSON.parse(targetTableArgs); - // } - // // console.log(targetTableArgs); var targetTableBody = $('#table_id_' + temp_number + ' table#wpt_table tbody'); @@ -179,7 +171,6 @@ jQuery(function($) { }else{ return; } - // console.log(targetTableArgs,data); $.ajax({ @@ -307,7 +298,7 @@ jQuery(function($) { } return temp_cjson; } - //console.log(config_json); + var footer_cart = config_json.footer_cart; var footer_cart_size = config_json.footer_cart_size; var footer_possition = config_json.footer_possition; @@ -407,7 +398,6 @@ jQuery(function($) { }); if('undefined' !== typeof finalImgObject){ - console.log(fullObject); final_image_url = finalImgObject.full_src; image_width = finalImgObject.full_src_w; IMG_Generator(thisImg,final_image_url, image_width); @@ -1480,7 +1470,7 @@ jQuery(function($) { //Generating Custom Field/Meqa Query for Query Args inside wp_query var final_custom_field = {}; Object.keys(custom_field).forEach(function(key,bbb){ - console.log(key,bbb); + if(Object.keys(custom_field[key]).length > 0){ //custom_field[key] !== null && var compare = multiple_attr[key]; @@ -1571,7 +1561,7 @@ jQuery(function($) { if( actionType === 'query' ){ $('#wpt_load_more_wrapper_' + temp_number).remove(); targetTableBody.html( data ); - //console.log(data,data.match('wpt_product_not_found')); + $('#table_id_' + temp_number + ' .wpt_table_tag_wrapper .wpt_product_not_found').remove(); if(data.match('wpt_product_not_found')){ @@ -1691,14 +1681,6 @@ jQuery(function($) { }); - $(document.body).on('click','h1.entry-title-BACKUP',function(){ - var temp_number = '19541'; - var newjsonData = $('#table_id_' + temp_number + ' mypagi').attr('myjson'); - var thisNewPagiWrappers = $('#table_id_' + temp_number + ' .wpt_table_pagination').attr('data-whole_data'); - // console.log('newjsonData',JSON.parse(newjsonData)); - console.log('thisNewPagiWrappers',JSON.parse(thisNewPagiWrappers)); - - }); function loadPaginationLinks($data,temp_number){ var targetTable = $('#table_id_' + temp_number + ' table#wpt_table'); @@ -1752,7 +1734,7 @@ jQuery(function($) { //Checking FilterBox var filterBoxYesNo = $('#table_id_' + temp_number + ' .wpt-mini-filter').html(); - // console.log(filterBoxYesNo); + /** * Uncheck All, If any change on filter button * @version 2.0 @@ -1763,7 +1745,7 @@ jQuery(function($) { var serial = 0; $('#table_id_' + temp_number + ' .wpt-mini-filter select.filter_select').each(function(){ var currentClass = $(this).val(); - + if(currentClass !==''){ ClassArray[serial] = '.' + currentClass; serial++; @@ -1829,7 +1811,7 @@ jQuery(function($) { $('body').on('change', '.wpt_row input.input-text.qty.text', inputBoxChangeHandle); function inputBoxChangeHandle() { - // console.log(2222); + var temp_number = $(this).parents('tr.wpt_row').data('temp_number'); var Qty_Val = $(this).val(); var product_id = $(this).parents('tr').data('product_id'); @@ -1904,7 +1886,6 @@ jQuery(function($) { upateGlobalCheckboxCount(); function upateGlobalCheckboxCount(){ - // console.log('upateGlobalCheckboxCount()'); var add_cart_text = $('.wpt-wrap').data('basic_settings').add_to_cart; var currentAllSelectedButtonSelector = $('body a.wpt-global-added-to-cart>span'); @@ -2008,21 +1989,6 @@ jQuery(function($) { updateCheckBoxCount(temp_number); }); -// $(document).on('wpt_count_updated',function(aaa,args){ -// //console.log(args); -// var btn = args['button_object']; -// var itemAmount = args['itemAmount']; -// var button_text = args['button_text']; -// var custom_text = 'Pay now'; -// itemAmount = parseInt( itemAmount ); -// if( itemAmount > 0 ){ -// btn.html( custom_text); -// //btn.html( custom_text + ' [ ' + itemAmount + ' ' + args['itemText'] + ' ]');; -// }else{ -// btn.html( button_text + ' [ ' + itemAmount + ' ' + args['itemText'] + ' ]'); -// } -// -// }); $('body').on('click', 'input.wpt_check_universal,input.enabled.wpt_tabel_checkbox.wpt_td_checkbox', function() { //wpt_td_checkbox var temp_number = $(this).data('temp_number'); @@ -2217,7 +2183,7 @@ jQuery(function($) { var temp_number = $(this).data('temp_number'); var config_json = getConfig_json( temp_number ); var key = $(this).data('key'); - //console.log(key); + var label = $(this).data('label'); var taxArray = new Array(); var taxValArray = new Array(); @@ -2338,7 +2304,7 @@ jQuery(function($) { var contentHTMLArray = []; var currentColumnObject = $(target_table_wrapper_id + ' table tbody td' + target_class); - // console.log(currentColumnObject); + currentColumnObject.each(function(index){ From 4f97a47b5a343f4ed4b8b192276728fd0d9cda7a Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Sun, 1 Oct 2023 12:13:39 +0600 Subject: [PATCH 25/83] notfound mater has been fixed --- assets/js/custom.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/js/custom.js b/assets/js/custom.js index e8e59d1b..dcb4761f 100644 --- a/assets/js/custom.js +++ b/assets/js/custom.js @@ -1763,12 +1763,13 @@ jQuery(function($) { if(foundRowCount > 0){ $('.wpt-my-pagination-' + temp_number).hide();//wpt_filter_reset } + //if not found available from before, we will remove it first. + $('#table_id_' + temp_number + ' table#wpt_table tbody tr.product-not-found-tr').remove(); if(foundRowCount < 1){ let newRotHtml = "
    " + notFundMsg + "
    "; $('#table_id_' + temp_number + ' table#wpt_table tbody').append(newRotHtml) - }else{ - $('#table_id_' + temp_number + ' table#wpt_table tbody tr.product-not-found-tr').remove(); } + //here was remove notFound on else. we remove it becuase, we have added at the begining always if( filterBoxYesNo ){ From ac9a023a1554770a0aefd6caee30870b84d0cc6b Mon Sep 17 00:00:00 2001 From: Fazle Bari Date: Mon, 2 Oct 2023 10:27:04 +0600 Subject: [PATCH 26/83] add stock status for quantity column --- includes/items/quantity.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/includes/items/quantity.php b/includes/items/quantity.php index e1e9c1f5..d55ce77f 100644 --- a/includes/items/quantity.php +++ b/includes/items/quantity.php @@ -30,6 +30,18 @@ return $type; }); + /** + * If any product is out of stock then quantity box will hide and stock status will show + * @since 3.4.3.0 + * @author Fazle Bari + */ + $product_type = $product->get_type(); + $stock = $product->stock_status; + if( 'outofstock' == $stock && ($product_type == 'variation' || $product_type == 'simple')){ // + echo wc_get_stock_html( $product ); + return; + } + woocommerce_quantity_input( $t_args , $product, true ); ?>
    From 0a68e35864b960ed7de195e3ce5300824fa18838 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Mon, 2 Oct 2023 10:47:50 +0600 Subject: [PATCH 27/83] Compatible with HPOS --- woo-product-table.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/woo-product-table.php b/woo-product-table.php index 3974e275..731f62d5 100644 --- a/woo-product-table.php +++ b/woo-product-table.php @@ -369,6 +369,15 @@ public static function getInstance() { public function __construct() { + // Declare compatibility with custom order tables for WooCommerce. + add_action( 'before_woocommerce_init', function(){ + if (class_exists('\Automattic\WooCommerce\Utilities\FeaturesUtil')) { + \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility('custom_order_tables', __FILE__, true); + } + } + ); + + /** * Including CA_Framework * From f5592415acc5a7f22069a212db1c624ee29da1b5 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Mon, 2 Oct 2023 11:00:33 +0600 Subject: [PATCH 28/83] changelog updated --- readme.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/readme.txt b/readme.txt index d26da56f..b4a18c32 100644 --- a/readme.txt +++ b/readme.txt @@ -293,6 +293,10 @@ You can easily show specific category products. While creating new table click o == Changelog == += 3.4.4 = +* Compatibility: Compabile with HPOS. +* Bug Fixed. + = 3.4.3 = * Speed optimized for product table using shortcode. * Plugin init loaded on 'plugins_loaded' hook From aaeb93783eaf71efc6a819fdb7a0d52e76157412 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Mon, 2 Oct 2023 11:31:04 +0600 Subject: [PATCH 29/83] 'WPT_DEV_VERSION', '3.4.3.1' --- woo-product-table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/woo-product-table.php b/woo-product-table.php index 731f62d5..793d10ca 100644 --- a/woo-product-table.php +++ b/woo-product-table.php @@ -33,7 +33,7 @@ } if( ! defined( 'WPT_DEV_VERSION' ) ){ - define( 'WPT_DEV_VERSION', '3.4.3.0' ); + define( 'WPT_DEV_VERSION', '3.4.3.1' ); } if( ! defined( 'WPT_CAPABILITY' ) ){ From 0fd22b108f69a7a96deb1d36b6e1e3856d052cec Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Mon, 2 Oct 2023 11:39:18 +0600 Subject: [PATCH 30/83] buy link added --- includes/items/buy_link.php | 2 ++ woo-product-table.php | 1 + 2 files changed, 3 insertions(+) create mode 100644 includes/items/buy_link.php diff --git a/includes/items/buy_link.php b/includes/items/buy_link.php new file mode 100644 index 00000000..6d1d14fa --- /dev/null +++ b/includes/items/buy_link.php @@ -0,0 +1,2 @@ + __( 'ID', 'woo-product-table' ), 'serial_number' => __( 'SL', 'woo-product-table' ), 'action' => __( 'Action', 'woo-product-table' ), + 'buy_link' => __( 'Buy Link', 'woo-product-table' ), ); $column_array = apply_filters( 'wpto_default_column_arr', $column_array ); From 7592d2da2c78ab0994211d2ad4d69425947f0f8b Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Mon, 2 Oct 2023 11:56:48 +0600 Subject: [PATCH 31/83] qty issue fixed --- includes/items/quantity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/items/quantity.php b/includes/items/quantity.php index d55ce77f..e79d2096 100644 --- a/includes/items/quantity.php +++ b/includes/items/quantity.php @@ -36,7 +36,7 @@ * @author Fazle Bari */ $product_type = $product->get_type(); - $stock = $product->stock_status; + $stock = $data['stock_status'] ?? ''; if( 'outofstock' == $stock && ($product_type == 'variation' || $product_type == 'simple')){ // echo wc_get_stock_html( $product ); return; From 8735a79cf2e4d37f1b113b38c4be509e2bccecd5 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Mon, 2 Oct 2023 14:37:29 +0600 Subject: [PATCH 32/83] added new column Buy link --- assets/js/custom.js | 6 +++--- readme.txt | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/assets/js/custom.js b/assets/js/custom.js index dcb4761f..29c6d409 100644 --- a/assets/js/custom.js +++ b/assets/js/custom.js @@ -1825,10 +1825,10 @@ jQuery(function($) { $( thisRow + ' input.input-text.qty.text').val(Qty_Val); // input.input-text.qty.text $( thisRow ).attr('data-quantity', Qty_Val); - $( thisRow + ' a.wpt_woo_add_cart_button').attr('data-quantity', Qty_Val); - $( thisRow + ' a.add_to_cart_button').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); var Item_URL = '?add-to-cart=' + product_id + '&quantity=' + Qty_Val; - $( thisRow + ' a.add_to_cart_button').attr('href', Item_URL); + $( thisRow + ' .wpt_action a.add_to_cart_button').attr('href', Item_URL); var targetTotalSelector = $('#table_id_' + temp_number + ' .product_id_' + product_id + ' .wpt_total_item.total_general'); diff --git a/readme.txt b/readme.txt index b4a18c32..eba9d938 100644 --- a/readme.txt +++ b/readme.txt @@ -294,6 +294,7 @@ You can easily show specific category products. While creating new table click o == Changelog == = 3.4.4 = +* Added: new column/item added name: Buy Link. * Compatibility: Compabile with HPOS. * Bug Fixed. From 23760bafb35f7d7db6f04b9556cea93016981862 Mon Sep 17 00:00:00 2001 From: Fazle Bari Date: Tue, 3 Oct 2023 12:04:23 +0600 Subject: [PATCH 33/83] Hide count number for buy link column --- assets/css/universal.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets/css/universal.css b/assets/css/universal.css index 218e5198..12e06596 100644 --- a/assets/css/universal.css +++ b/assets/css/universal.css @@ -1819,4 +1819,8 @@ td.wpt-replace-td-in-tr.wpt-mobile-label-show a.wpt_product_title_in_td{ body[class^="wpt-"]:before, body[class*=" wpt-"]:before { display: none; +} + +.wpt_buy_link span.wpt_ccount { + display: none; } \ No newline at end of file From 28e113c77821c3cac8ccdfd8e37b4d88b086911f Mon Sep 17 00:00:00 2001 From: Fazle Bari Date: Tue, 3 Oct 2023 12:16:22 +0600 Subject: [PATCH 34/83] hide cart remove icon for the buy link column --- assets/css/universal.css | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/css/universal.css b/assets/css/universal.css index 12e06596..48177567 100644 --- a/assets/css/universal.css +++ b/assets/css/universal.css @@ -1821,6 +1821,7 @@ body[class^="wpt-"]:before, body[class*=" wpt-"]:before { display: none; } +.wpt_buy_link span.wpt-cart-remove, .wpt_buy_link span.wpt_ccount { display: none; } \ No newline at end of file From 7de4040f86bccc1679180526f587791717f5803a Mon Sep 17 00:00:00 2001 From: Fazle Bari Date: Tue, 3 Oct 2023 15:31:04 +0600 Subject: [PATCH 35/83] fix buy link counter --- assets/css/override-root.css | 1 + assets/css/universal.css | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/assets/css/override-root.css b/assets/css/override-root.css index e90cd4f4..63ffbbbf 100644 --- a/assets/css/override-root.css +++ b/assets/css/override-root.css @@ -90,6 +90,7 @@ button.single_add_to_cart_button >span.wpt_ccount i.animate-spin, a.button.wpt_w color: var(--wpt_primary); } +.wpt_buy_link span.wpt_ccount, a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart>span.wpt_ccount, a.product_type_variation>span.wpt_ccount, button.single_add_to_cart_button >span.wpt_ccount, a.button.wpt_woo_add_cart_button>span.wpt_ccount { diff --git a/assets/css/universal.css b/assets/css/universal.css index 48177567..9f875aa8 100644 --- a/assets/css/universal.css +++ b/assets/css/universal.css @@ -509,6 +509,7 @@ a.button.wpt_woo_add_cart_button>span.wpt_ccount i.animate-spin::before{ padding: 0; } +.wpt_buy_link span.wpt_ccount, a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart>span.wpt_ccount, a.product_type_variation>span.wpt_ccount, button.single_add_to_cart_button>span.wpt_ccount, @@ -1821,7 +1822,3 @@ body[class^="wpt-"]:before, body[class*=" wpt-"]:before { display: none; } -.wpt_buy_link span.wpt-cart-remove, -.wpt_buy_link span.wpt_ccount { - display: none; -} \ No newline at end of file From 9ac24436dfc2638cd6dae043f116612025965349 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Thu, 12 Oct 2023 18:28:09 +0600 Subject: [PATCH 36/83] wc tested updated --- woo-product-table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/woo-product-table.php b/woo-product-table.php index 17af766d..dd00b754 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.3 * WC requires at least: 5.0.0 - * WC tested up to: 8.1.1 + * WC tested up to: 8.2.0 * * * Text Domain: woo-product-table From f0358852bff0991ef976f19f3a280a4477e32c70 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Sun, 15 Oct 2023 16:59:53 +0600 Subject: [PATCH 37/83] working --- admin/page/premium-link-header.php | 12 +++++------ framework/handle.php | 33 +++++++++++++++--------------- woo-product-table.php | 2 +- 3 files changed, 24 insertions(+), 23 deletions(-) diff --git a/admin/page/premium-link-header.php b/admin/page/premium-link-header.php index c3ff5fb3..d8543e4b 100644 --- a/admin/page/premium-link-header.php +++ b/admin/page/premium-link-header.php @@ -6,21 +6,21 @@
    -

    Running Discount

    -

    Enjoy all awesome feature.

    +

    Cyber Security Month

    +

    Checkout our Offer.

    - + Money Back Guarantee

    100% No-Risk 30-Days Money Back Guarantee

    @@ -131,7 +131,7 @@ text-transform: uppercase; letter-spacing: -0.025em; line-height: 1; - color: #c0f !important; + color: #FFC107 !important; } .wpt-premium-notice-panel .wpt-pic-col p { font-size: 16px; diff --git a/framework/handle.php b/framework/handle.php index adfc75ab..bb2321a3 100644 --- a/framework/handle.php +++ b/framework/handle.php @@ -50,11 +50,11 @@ public static function fail() */ public static function display_notice() { - - if(time() > 1694587433 + 864000) return; + //Today: 15.10.2023 - 1697365177 and added 20 days seccond - 1728000 + if(time() > (1697365177 + 1728000)) return; if( defined( 'WPT_PRO_DEV_VERSION' ) ) return; - $temp_numb = rand(1,5); + $temp_numb = rand(2,5); /** * small notice for pro plugin, @@ -72,36 +72,37 @@ public static function display_notice() // if($temp_numb == 3) $small_notc->show(); - $coupon_Code = 'CA60PERCENT'; + $coupon_Code = 'CYBERSECURITY50'; $target = 'https://wooproducttable.com/pricing/?discount=' . $coupon_Code . '&campaign=' . $coupon_Code . '&ref=1&utm_source=Default_Offer_LINK'; - $my_message = 'Make Product Table easily with discount offer.
    COUPON CODE: ' . $coupon_Code . ' - up to 60% OFF A coupon code for you for Woo Product Table Pro) Plugin'; + $my_message = 'Make Product Table easily with discount offer.
    COUPON CODE: ' . $coupon_Code . ' - up to 60% OFF A coupon code for you for Woo Product Table Pro) Plugin'; $offerNc = new Notice('wpt_'.$coupon_Code.'_offer'); - $offerNc->set_title( 'SPECIAL OFFER for 10 days' ) + $offerNc->set_title( '50% Discount - Sale Offer' ) ->set_diff_limit(3) ->set_type('offer') ->set_img( WPT_BASE_URL. 'assets/images/wpt-logo-sk.png') ->set_img_target( $target ) ->set_message( $my_message ) ->add_button([ - 'text' => 'Full Pricing', + 'text' => 'Claim Coupon', 'type' => 'success', - 'link' => $target, + 'link' => 'https://codeastrology.com/coupons/?discount=' . $coupon_Code, ]); $offerNc->add_button([ - 'text' => 'Unlimited Access(Lifetime)', + 'text' => 'Save Extra 35% on Bundle', 'type' => 'offer', - 'link' => 'https://codeastrology.com/checkout?edd_action=add_to_cart&download_id=6553&edd_options%5Bprice_id%5D=6&discount=' . $coupon_Code, + 'link' => 'https://codeastrology.com/downloads/bundle-woo-product-table-min-max-step-control/?discount=' . $coupon_Code, ]); $offerNc->add_button([ - 'text' => 'Unlimited Access(Yearly)', - 'type' => 'offer', - 'link' => 'https://codeastrology.com/checkout?edd_action=add_to_cart&download_id=6553&edd_options%5Bprice_id%5D=3&discount=' . $coupon_Code, + 'text' => 'Unlimited Access(Lifetime)', + 'type' => 'error', + 'link' => 'https://codeastrology.com/checkout?edd_action=add_to_cart&download_id=6553&edd_options%5Bprice_id%5D=6&discount=' . $coupon_Code, ]); $offerNc->add_button([ - 'text' => 'All Products', - 'type' => 'error', - 'link' => 'https://codeastrology.com/downloads/?discount=' . $coupon_Code, + 'text' => 'Full Pricing', + 'type' => 'offer', + 'link' => $target, ]); + // if( method_exists($offerNc, 'set_location') ){ // $offerNc->set_location('wpt_offer_here'); //wpt_premium_image_bottom // } diff --git a/woo-product-table.php b/woo-product-table.php index dd00b754..ab2ca9a9 100644 --- a/woo-product-table.php +++ b/woo-product-table.php @@ -9,7 +9,7 @@ * * Version: 3.4.3 * Requires at least: 4.0.0 - * Tested up to: 6.3 + * Tested up to: 6.3.2 * WC requires at least: 5.0.0 * WC tested up to: 8.2.0 * From c15bafc4d7422b9860ee14ec26e82aa7afeefb01 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Sun, 15 Oct 2023 17:00:56 +0600 Subject: [PATCH 38/83] 'WPT_DEV_VERSION', '3.4.4.0' --- readme.txt | 2 +- woo-product-table.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/readme.txt b/readme.txt index eba9d938..abef936a 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ 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.3 -Stable tag: 3.4.3 +Stable tag: 3.4.4 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 ab2ca9a9..bf9e6dbe 100644 --- a/woo-product-table.php +++ b/woo-product-table.php @@ -7,7 +7,7 @@ * 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.3 + * Version: 3.4.4 * Requires at least: 4.0.0 * Tested up to: 6.3.2 * WC requires at least: 5.0.0 @@ -33,7 +33,7 @@ } if( ! defined( 'WPT_DEV_VERSION' ) ){ - define( 'WPT_DEV_VERSION', '3.4.3.1' ); + define( 'WPT_DEV_VERSION', '3.4.4.0' ); } if( ! defined( 'WPT_CAPABILITY' ) ){ From 7446f218e27364d9345a1013f73e368ff3780432 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Sun, 15 Oct 2023 17:09:29 +0600 Subject: [PATCH 39/83] link changed --- framework/handle.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/handle.php b/framework/handle.php index bb2321a3..859a528f 100644 --- a/framework/handle.php +++ b/framework/handle.php @@ -73,7 +73,7 @@ public static function display_notice() $coupon_Code = 'CYBERSECURITY50'; - $target = 'https://wooproducttable.com/pricing/?discount=' . $coupon_Code . '&campaign=' . $coupon_Code . '&ref=1&utm_source=Default_Offer_LINK'; + $target = 'https://codeastrology.com/coupons/?discount=' . $coupon_Code . '&campaign=' . $coupon_Code . '&ref=1&utm_source=Default_Offer_LINK'; $my_message = 'Make Product Table easily with discount offer.
    COUPON CODE: ' . $coupon_Code . ' - up to 60% OFF A coupon code for you for Woo Product Table Pro) Plugin'; $offerNc = new Notice('wpt_'.$coupon_Code.'_offer'); $offerNc->set_title( '50% Discount - Sale Offer' ) From b44e2c276c37d5649303ebeb41afe1cacd953d30 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Sun, 15 Oct 2023 17:19:36 +0600 Subject: [PATCH 40/83] offer version updated --- framework/handle.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/handle.php b/framework/handle.php index 859a528f..0a1b0807 100644 --- a/framework/handle.php +++ b/framework/handle.php @@ -76,7 +76,7 @@ public static function display_notice() $target = 'https://codeastrology.com/coupons/?discount=' . $coupon_Code . '&campaign=' . $coupon_Code . '&ref=1&utm_source=Default_Offer_LINK'; $my_message = 'Make Product Table easily with discount offer.
    COUPON CODE: ' . $coupon_Code . ' - up to 60% OFF A coupon code for you for Woo Product Table Pro) Plugin'; $offerNc = new Notice('wpt_'.$coupon_Code.'_offer'); - $offerNc->set_title( '50% Discount - Sale Offer' ) + $offerNc->set_title( '50% Discount - Cyber Security Month' ) ->set_diff_limit(3) ->set_type('offer') ->set_img( WPT_BASE_URL. 'assets/images/wpt-logo-sk.png') @@ -100,7 +100,7 @@ public static function display_notice() $offerNc->add_button([ 'text' => 'Full Pricing', 'type' => 'offer', - 'link' => $target, + 'link' => 'https://wooproducttable.com/pricing/', ]); // if( method_exists($offerNc, 'set_location') ){ From 34115853bd278c883d6ce07654f081d347f2dbbc Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Mon, 16 Oct 2023 10:32:08 +0600 Subject: [PATCH 41/83] ibrahim added as contributor --- readme.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index abef936a..78776866 100644 --- a/readme.txt +++ b/readme.txt @@ -1,5 +1,5 @@ === Product Table for WooCommerce by CodeAstrology (wooproducttable.com) === -Contributors: codersaiful,codeastrology,ultraaddons,unikforce,rafiul17,fazlebari,phpcoderhannan,fatimakhatungit +Contributors: codersaiful,codeastrology,mdibrahimk48,ultraaddons,unikforce,rafiul17,fazlebari,phpcoderhannan,fatimakhatungit 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 From 1ec1572fc94a7eed72278f93e5aecb8211116ab2 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Wed, 18 Oct 2023 11:11:05 +0600 Subject: [PATCH 42/83] Tracker disable --- admin/admin-loader.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/admin-loader.php b/admin/admin-loader.php index 690def37..7698cd48 100644 --- a/admin/admin-loader.php +++ b/admin/admin-loader.php @@ -37,8 +37,8 @@ public function __construct(){ public function admin_init(){ - $tracker = new Tracker(); - $tracker->run(); + // $tracker = new Tracker(); + // $tracker->run(); } } \ No newline at end of file From 56c43de653b67dc8ccb0c5bad9f51afba875598e Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Wed, 18 Oct 2023 11:40:31 +0600 Subject: [PATCH 43/83] offer fix --- assets/css/admin.css | 18 +++++++++++++++++- framework/handle.php | 21 +++++++++------------ 2 files changed, 26 insertions(+), 13 deletions(-) diff --git a/assets/css/admin.css b/assets/css/admin.css index e3a56393..bd579299 100644 --- a/assets/css/admin.css +++ b/assets/css/admin.css @@ -2397,4 +2397,20 @@ div.wpt_tab_content table th { } .wpt_column_setting_extra>div>label { display: inline !important; -} \ No newline at end of file +} + +.fieldwrap .anywhere-notice .ca-msg-text p { + display: none; +} + +.fieldwrap .anywhere-notice.ca-notice.notice-offer .ca-msg-text p.ca-links-collection { + display: block; +} + +.fieldwrap .anywhere-notice.ca-notice.notice-offer .ca-msg-text h1 { + color: red; +} + +.fieldwrap .anywhere-notice.ca-notice.notice-offer .ca-msg-text p.ca-links-collection a { + background: #4CAF50; +} diff --git a/framework/handle.php b/framework/handle.php index 0a1b0807..e0302fac 100644 --- a/framework/handle.php +++ b/framework/handle.php @@ -74,9 +74,9 @@ public static function display_notice() $coupon_Code = 'CYBERSECURITY50'; $target = 'https://codeastrology.com/coupons/?discount=' . $coupon_Code . '&campaign=' . $coupon_Code . '&ref=1&utm_source=Default_Offer_LINK'; - $my_message = 'Make Product Table easily with discount offer.
    COUPON CODE: ' . $coupon_Code . ' - up to 60% OFF A coupon code for you for Woo Product Table Pro) Plugin'; + $my_message = 'Make Product Table easily with discount offer. COUPON CODE: ' . $coupon_Code . ' - up to 65% OFF A coupon code for you for (Woo Product Table Pro) Plugin'; $offerNc = new Notice('wpt_'.$coupon_Code.'_offer'); - $offerNc->set_title( '50% Discount - Cyber Security Month' ) + $offerNc->set_title( 'upto 65% Discount - Cyber Security Month' ) ->set_diff_limit(3) ->set_type('offer') ->set_img( WPT_BASE_URL. 'assets/images/wpt-logo-sk.png') @@ -85,7 +85,7 @@ public static function display_notice() ->add_button([ 'text' => 'Claim Coupon', 'type' => 'success', - 'link' => 'https://codeastrology.com/coupons/?discount=' . $coupon_Code, + 'link' => 'https://wooproducttable.com/pricing/?discount=' . $coupon_Code, ]); $offerNc->add_button([ 'text' => 'Save Extra 35% on Bundle', @@ -93,19 +93,16 @@ public static function display_notice() 'link' => 'https://codeastrology.com/downloads/bundle-woo-product-table-min-max-step-control/?discount=' . $coupon_Code, ]); $offerNc->add_button([ - 'text' => 'Unlimited Access(Lifetime)', + 'text' => 'Unlimited Access(Lifetime) with Discount', 'type' => 'error', 'link' => 'https://codeastrology.com/checkout?edd_action=add_to_cart&download_id=6553&edd_options%5Bprice_id%5D=6&discount=' . $coupon_Code, ]); - $offerNc->add_button([ - 'text' => 'Full Pricing', - 'type' => 'offer', - 'link' => 'https://wooproducttable.com/pricing/', - ]); - // if( method_exists($offerNc, 'set_location') ){ - // $offerNc->set_location('wpt_offer_here'); //wpt_premium_image_bottom - // } + //location a dekhale notice bar a obbossoi dekhabe. + if( method_exists($offerNc, 'set_location') && $temp_numb == 3 ){ //$temp_numb == 5 + $offerNc->set_location('wpt_premium_image_bottom'); //wpt_premium_image_bottom + $offerNc->show(); + } if($temp_numb == 5) $offerNc->show(); From 36ac4f7dcc3efd63751268f3d5a983e97a052d01 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Wed, 18 Oct 2023 11:44:54 +0600 Subject: [PATCH 44/83] Bundle product has removed --- framework/handle.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/framework/handle.php b/framework/handle.php index e0302fac..a4c27c0c 100644 --- a/framework/handle.php +++ b/framework/handle.php @@ -87,11 +87,11 @@ public static function display_notice() 'type' => 'success', 'link' => 'https://wooproducttable.com/pricing/?discount=' . $coupon_Code, ]); - $offerNc->add_button([ - 'text' => 'Save Extra 35% on Bundle', - 'type' => 'offer', - 'link' => 'https://codeastrology.com/downloads/bundle-woo-product-table-min-max-step-control/?discount=' . $coupon_Code, - ]); + // $offerNc->add_button([ + // 'text' => 'Save Extra 35% on Bundle', + // 'type' => 'offer', + // 'link' => 'https://codeastrology.com/downloads/bundle-woo-product-table-min-max-step-control/?discount=' . $coupon_Code, + // ]); $offerNc->add_button([ 'text' => 'Unlimited Access(Lifetime) with Discount', 'type' => 'error', From 497ec3beee76a9d03f4b275350d831597926b208 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Wed, 18 Oct 2023 12:28:21 +0600 Subject: [PATCH 45/83] code and link updated --- framework/handle.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/framework/handle.php b/framework/handle.php index a4c27c0c..f575e478 100644 --- a/framework/handle.php +++ b/framework/handle.php @@ -50,8 +50,8 @@ public static function fail() */ public static function display_notice() { - //Today: 15.10.2023 - 1697365177 and added 20 days seccond - 1728000 - if(time() > (1697365177 + 1728000)) return; + //Today: 18.10.2023 - 1697365177 and added 20 days seccond - 1728000 + if(time() > (1697610263 + 1728000)) return; if( defined( 'WPT_PRO_DEV_VERSION' ) ) return; $temp_numb = rand(2,5); @@ -73,7 +73,7 @@ public static function display_notice() $coupon_Code = 'CYBERSECURITY50'; - $target = 'https://codeastrology.com/coupons/?discount=' . $coupon_Code . '&campaign=' . $coupon_Code . '&ref=1&utm_source=Default_Offer_LINK'; + $target = 'https://wooproducttable.com/pricing/?discount=' . $coupon_Code . '&campaign=' . $coupon_Code . '&ref=1&utm_source=Default_Offer_LINK'; $my_message = 'Make Product Table easily with discount offer. COUPON CODE: ' . $coupon_Code . ' - up to 65% OFF A coupon code for you for (Woo Product Table Pro) Plugin'; $offerNc = new Notice('wpt_'.$coupon_Code.'_offer'); $offerNc->set_title( 'upto 65% Discount - Cyber Security Month' ) @@ -87,17 +87,19 @@ public static function display_notice() 'type' => 'success', 'link' => 'https://wooproducttable.com/pricing/?discount=' . $coupon_Code, ]); - // $offerNc->add_button([ - // 'text' => 'Save Extra 35% on Bundle', - // 'type' => 'offer', - // 'link' => 'https://codeastrology.com/downloads/bundle-woo-product-table-min-max-step-control/?discount=' . $coupon_Code, - // ]); + $offerNc->add_button([ 'text' => 'Unlimited Access(Lifetime) with Discount', 'type' => 'error', 'link' => 'https://codeastrology.com/checkout?edd_action=add_to_cart&download_id=6553&edd_options%5Bprice_id%5D=6&discount=' . $coupon_Code, ]); + $offerNc->add_button([ + 'text' => 'Checkout Coupon', + 'type' => 'offer', + 'link' => 'https://codeastrology.com/coupons/?discount=' . $coupon_Code . '&campaign=' . $coupon_Code . '&ref=1&utm_source=Default_Offer_LINK', + ]); + //location a dekhale notice bar a obbossoi dekhabe. if( method_exists($offerNc, 'set_location') && $temp_numb == 3 ){ //$temp_numb == 5 $offerNc->set_location('wpt_premium_image_bottom'); //wpt_premium_image_bottom From 235071a57defc3072d6faa255429c48f0eb42230 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Wed, 18 Oct 2023 18:07:04 +0600 Subject: [PATCH 46/83] readme.txt updated with cyber security offer --- readme.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/readme.txt b/readme.txt index 78776866..9b87bb28 100644 --- a/readme.txt +++ b/readme.txt @@ -15,6 +15,8 @@ WooCommerce product table plugin helps you to display your products in a searcha (**Woo Product Table**) Product Table plugin helps you to display your WooCommerce products in a searchable table layout with filters. Add a table on any page or post via a shortcode. You can create tables as many as you want. Create a table for restaurant order systems, Online music sell, product Wholesale, Course Booking, or Selling books any many more. +**🚩🚩🚩🚩🚩[Cyber Security Month Offer - upto 65%](https://wooproducttable.com/pricing/)🚩🚩🚩🚩🚩🚩🚩** + **Have a looks in short for WooCommerce Product Table** https://www.youtube.com/watch?v=jZ9bx4VqB08 From 7c360609fb340b38dcbd7af4d14539e9958e1b68 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Wed, 18 Oct 2023 19:01:46 +0600 Subject: [PATCH 47/83] readme.txt update for Product table --- readme.txt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/readme.txt b/readme.txt index 9b87bb28..c9389000 100644 --- a/readme.txt +++ b/readme.txt @@ -113,6 +113,9 @@ Our most valuable feature is search & filter. Customers can filter products by a This is an awesome feature of our plugin. you can display your table on your archive pages. You can display a table on every archive page or you can choose some specific archive pages to display specific tables. All you have to do is, select and turn on the table for archive pages.  +**Variation Table for Variable Product**
    +Automatically or Manually show all variation as a table for Variable product. See: [Example 1](https://demo.wooproducttable.com/product/samsung-galaxy/), [Example 2](https://demo.wooproducttable.com/product-variation-table-with-product-details/), [Example 3](https://demo.wooproducttable.com/show-variation-name-in-a-single-column/) + **Quick Cart Update**
    Add a product to the cart, you don’t have to click any button anymore. You just need to update the quantity and that product will automatically add to the cart. The cart will auto-update by Increasing or decreasing quantity. @@ -137,6 +140,25 @@ Our [YouTube Playlist](https://www.youtube.com/channel/UCnrFzReNAohkHglbF91ZEYA/ **Important feature ( Pro and Free )** +* WPML/Loco Translate/Multi Languag +* Product Table to any page and where using shortcode. +* Advance Search and filter option - Search from whole site +* Multi-level Query to show product as table. such as: Category, taxonomy, tag, menu-order, price limit. Anything. +* No need code edit knowledge +* Table template feature +* Variation Table for Variable Product +* Show custom field in table +* Filter with custom field +* Product search by sku +* Product filter by sku +* WooCommerce Product Table +* Quick Order Table +* WooCommerce Shop page as Table +* WooCommerce Archive as Table +* WooCommerce Cateogry as Table +* WooCommerce Tag as Table +* WooCommerce Taxonomy as Table +* Any type customization possible by Existing [Filter and Action hook](https://wooproducttable.com/plugin-api/). * Add custom column * Design columns individually * Columns only for login user @@ -157,6 +179,8 @@ Our [YouTube Playlist](https://www.youtube.com/channel/UCnrFzReNAohkHglbF91ZEYA/ * Product Sorting by values * Showing Popup Notices * Redirect to Checkout Page +* WC Product Table Lite +* woo product table 💥💥💥 [Checkout Which Features Are Free And Which Are Not.](https://wooproducttable.com/pricing/) From 1b0d91902b992edb3ec8a32851d7be2c54650c3e Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Wed, 18 Oct 2023 19:03:17 +0600 Subject: [PATCH 48/83] readme.txt update --- readme.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index c9389000..108c48ba 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ 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.3 +Tested up to: 6.3.2 Stable tag: 3.4.4 Requires PHP: 5.4 License: GPLv2 or later From fb51a4ee96a889eb01db169aca8b51ffa21717b4 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Sat, 21 Oct 2023 10:24:44 +0600 Subject: [PATCH 49/83] $proString Added for pro --- admin/page-loader.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/admin/page-loader.php b/admin/page-loader.php index 01a7f72d..c87d78f8 100644 --- a/admin/page-loader.php +++ b/admin/page-loader.php @@ -47,13 +47,14 @@ public function configure_page_render() } public function admin_menu() { - add_submenu_page( $this->main_slug, esc_html__( 'Configuration', 'woo-product-table' ), 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' ), __( 'Tutorial', 'woo-product-table' ), WPT_CAPABILITY, 'wpt-live-support', [$this, 'html_tutorial_page'] ); + $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'] ); - add_submenu_page( $this->main_slug, esc_html__( 'Browse Plugins', 'woo-product-table' ), __( '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' ), __( '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' ), __( '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' ), 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' ); 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/' ); From bf78a4c402ae8eeb84e7061c406c414c50639755 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Wed, 25 Oct 2023 11:51:18 +0600 Subject: [PATCH 50/83] readme update and bug fix for javascript of variation trigger issue --- assets/js/custom.js | 7 ++++++- readme.txt | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/assets/js/custom.js b/assets/js/custom.js index 29c6d409..cf2a2d37 100644 --- a/assets/js/custom.js +++ b/assets/js/custom.js @@ -986,7 +986,12 @@ jQuery(function($) { targetAttributeObject['product_id'] = product_id; targetAttributeObject['temp_number'] = temp_number; targetAttributeObject['table_id'] = temp_number; - $(document.body).trigger('wpt_changed_variations',targetAttributeObject); + try{ + console.log(targetAttributeObject); + $(document.body).trigger('wpt_changed_variations',targetAttributeObject); + }catch(error){ + console.log("Variation ID not founded. To see error, Please console.log(error) here."); + } } else { //Return to Previous HTML Image diff --git a/readme.txt b/readme.txt index 108c48ba..727a59e9 100644 --- a/readme.txt +++ b/readme.txt @@ -319,6 +319,11 @@ You can easily show specific category products. While creating new table click o == Changelog == += 3.4.5 = +* Fixed: JavaScript confliction issue fixed. +* Bug fixed +* Code Optimized + = 3.4.4 = * Added: new column/item added name: Buy Link. * Compatibility: Compabile with HPOS. From dbb031f5b0dd0abc311678e8df2e58925801d60c Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Tue, 31 Oct 2023 09:50:31 +0600 Subject: [PATCH 51/83] offer limit change --- framework/handle.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/framework/handle.php b/framework/handle.php index f575e478..fbee8033 100644 --- a/framework/handle.php +++ b/framework/handle.php @@ -50,11 +50,12 @@ public static function fail() */ public static function display_notice() { - //Today: 18.10.2023 - 1697365177 and added 20 days seccond - 1728000 - if(time() > (1697610263 + 1728000)) return; + + //Today: 31.10.2023 - 1698724145 and added 20 days seccond - 1728000 (little change actually) + if(time() > (1698724145 + 2728000)) return; if( defined( 'WPT_PRO_DEV_VERSION' ) ) return; - $temp_numb = rand(2,5); + $temp_numb = rand(2,10); /** * small notice for pro plugin, From 1ae6ef0a64f3f23d229a4900aa26f6e59c2ec079 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Tue, 31 Oct 2023 12:22:57 +0600 Subject: [PATCH 52/83] buy_link add to cart qty issue fixed from custom.js line: 1835 --- assets/js/custom.js | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/js/custom.js b/assets/js/custom.js index cf2a2d37..52960b5b 100644 --- a/assets/js/custom.js +++ b/assets/js/custom.js @@ -1832,6 +1832,7 @@ jQuery(function($) { $( 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); + $( thisRow + ' .wpt_buy_link a.add_to_cart_button').attr('data-quantity', Qty_Val); var Item_URL = '?add-to-cart=' + product_id + '&quantity=' + Qty_Val; $( thisRow + ' .wpt_action a.add_to_cart_button').attr('href', Item_URL); var targetTotalSelector = $('#table_id_' + temp_number + ' .product_id_' + product_id + ' .wpt_total_item.total_general'); From 0d93fb71d5f61f26de65ffed33088fef5403304a Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Tue, 31 Oct 2023 12:35:22 +0600 Subject: [PATCH 53/83] Working for Admin section --- admin/action-hook.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/action-hook.php b/admin/action-hook.php index cef07d69..00a893f2 100644 --- a/admin/action-hook.php +++ b/admin/action-hook.php @@ -1646,7 +1646,7 @@ function wpto_admin_configuration_form_top_free($settings,$current_config_value)
    - +