From 1aff74cd9f101f5118b30bb1364739b4369ab84f Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Mon, 7 Jun 2021 12:27:59 +0600 Subject: [PATCH 01/21] just version update 2.9.2 --- woo-product-table.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/woo-product-table.php b/woo-product-table.php index 33524123..831738d4 100644 --- a/woo-product-table.php +++ b/woo-product-table.php @@ -7,7 +7,7 @@ * Author URI: https://profiles.wordpress.org/codersaiful/ * Tags: woocommerce product list,woocommerce product table, wc product table, product grid view, inventory, shop product table * - * Version: 2.9.1 + * Version: 2.9.2 * Requires at least: 4.0.0 * Tested up to: 5.7.2 * WC requires at least: 3.0.0 @@ -30,7 +30,7 @@ } if( !defined( 'WPT_DEV_VERSION' ) ){ - define( 'WPT_DEV_VERSION', '2.9.1.3' ); + define( 'WPT_DEV_VERSION', '2.9.2.0' ); } if( !defined( 'WPT_CAPABILITY' ) ){ From 06f65a9b5a65d8ae93b387e1ec8722311bb86137 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Mon, 7 Jun 2021 17:14:37 +0600 Subject: [PATCH 02/21] working on quote request plugin --- includes/items/quoterequest.php | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/includes/items/quoterequest.php b/includes/items/quoterequest.php index 4104dbf8..4999c20e 100644 --- a/includes/items/quoterequest.php +++ b/includes/items/quoterequest.php @@ -7,18 +7,17 @@ } $Add_to_Quote = $config_value['yith_add_to_quote_text'];//'Add to Quote'; $data_message = '{"text":"'. $Add_to_Quote .'","adding":"' . $config_value['yith_add_to_quote_adding'] . '","added":"' . $config_value['yith_add_to_quote_added'] . '"}'; +$c_product_id = $data['id']; + +//echo do_shortcode( '[yith_ywraq_button_quote product="' . $c_product_id . '"]' ); +$q_final_class = "{$quote_class} yith_request_temp_{$temp_number}_id_{$data['id']} wpt_yith_add_to_quote_request wpt_add-request-quote-button"; ?> -' - data-response_msg='' - data-msg='' - data-wp_nonce='' - data-quote_data='' - data-variation='' - data-variation_id='' - data-product_id='' - class='' - href='#' - data-quantity='' - data-selector=''> - - \ No newline at end of file + +
+
+ + + + +
+
\ No newline at end of file From cde40652d6484da5f5dadbf5b2c7428c150ce0d6 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Tue, 8 Jun 2021 13:14:35 +0600 Subject: [PATCH 03/21] custom.js Scrolltop to table start when paginate --- assets/js/custom.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/assets/js/custom.js b/assets/js/custom.js index 8e096977..97a64470 100644 --- a/assets/js/custom.js +++ b/assets/js/custom.js @@ -119,6 +119,11 @@ var current_link = window.location.href; window.history.pushState('data', null, current_link.replace(/(paged=\d)+/, "paged=" + (pageNumber-1))); + + var body = $('html, body'); + var thisTableTop = $('#table_id_' + temp_number).offset(); + body.animate({scrollTop:thisTableTop.top}, 500, 'swing'); + }, success: function(data) { targetTableBody.html(data); From e4864a6f48cf56a26f35b2e825ba0c889c2aed71 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Tue, 8 Jun 2021 13:26:47 +0600 Subject: [PATCH 04/21] custom.js , comment added for Scrolling to Table Top --- assets/js/custom.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/assets/js/custom.js b/assets/js/custom.js index 97a64470..542b11ad 100644 --- a/assets/js/custom.js +++ b/assets/js/custom.js @@ -120,6 +120,11 @@ window.history.pushState('data', null, current_link.replace(/(paged=\d)+/, "paged=" + (pageNumber-1))); + /** + * Scrolling to Table Top + * + * @type window.$|$ + */ var body = $('html, body'); var thisTableTop = $('#table_id_' + temp_number).offset(); body.animate({scrollTop:thisTableTop.top}, 500, 'swing'); From a86b56ca76fc10949867551fd16426b0b935fb7e Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Wed, 9 Jun 2021 17:45:08 +0600 Subject: [PATCH 05/21] by html --- includes/items/message.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/includes/items/message.php b/includes/items/message.php index 2106c81e..14999e17 100644 --- a/includes/items/message.php +++ b/includes/items/message.php @@ -1,4 +1,5 @@ -"; - - +'> From 154115f464e2fea2c44658bd9fa72333202163c4 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Wed, 16 Jun 2021 16:00:43 +0600 Subject: [PATCH 06/21] #post_metabox.php Content columns any type content support issue fixed --- admin/post_metabox.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/admin/post_metabox.php b/admin/post_metabox.php index dd7e32fd..5ebbcd02 100644 --- a/admin/post_metabox.php +++ b/admin/post_metabox.php @@ -297,12 +297,14 @@ function wpt_shortcode_configuration_metabox_save_meta( $post_id, $post ) { // s 'flags' => FILTER_REQUIRE_ARRAY, ), 'column_settings' => array( - 'filter' => FILTER_SANITIZE_STRING, + 'filter' => FILTER_CALLBACK, 'flags' => FILTER_REQUIRE_ARRAY, + 'options' => 'wp_kses_post' ), 'column_settings_tablet' => array( - 'filter' => FILTER_SANITIZE_STRING, + 'filter' => FILTER_CALLBACK, 'flags' => FILTER_REQUIRE_ARRAY, + 'options' => 'wp_kses_post' ), 'column_settings_mobile' => array( 'filter' => FILTER_SANITIZE_STRING, From 50c4bed7d43de8fa0e7284676f219162bb19d4f3 Mon Sep 17 00:00:00 2001 From: codeastrology-dev Date: Wed, 16 Jun 2021 16:39:13 +0600 Subject: [PATCH 07/21] working on quote request --- assets/js/custom.js | 1 + includes/items/quoterequest.php | 27 ++++++++++++++------------- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/assets/js/custom.js b/assets/js/custom.js index 542b11ad..07298cd4 100644 --- a/assets/js/custom.js +++ b/assets/js/custom.js @@ -1803,6 +1803,7 @@ add_to_cart_info += '&yith-add-to-cart=' + product_id; var yith_ajax_url;// = ywraq_frontend.ajaxurl; yith_ajax_url = ywraq_frontend.ajaxurl.toString().replace( '%%endpoint%%', 'yith_ywraq_action' ); + console.log('customJS', add_to_cart_info); $.ajax({ type : 'POST', url : yith_ajax_url, diff --git a/includes/items/quoterequest.php b/includes/items/quoterequest.php index 4999c20e..4104dbf8 100644 --- a/includes/items/quoterequest.php +++ b/includes/items/quoterequest.php @@ -7,17 +7,18 @@ } $Add_to_Quote = $config_value['yith_add_to_quote_text'];//'Add to Quote'; $data_message = '{"text":"'. $Add_to_Quote .'","adding":"' . $config_value['yith_add_to_quote_adding'] . '","added":"' . $config_value['yith_add_to_quote_added'] . '"}'; -$c_product_id = $data['id']; - -//echo do_shortcode( '[yith_ywraq_button_quote product="' . $c_product_id . '"]' ); -$q_final_class = "{$quote_class} yith_request_temp_{$temp_number}_id_{$data['id']} wpt_yith_add_to_quote_request wpt_add-request-quote-button"; ?> - -
-
- - - - -
-
\ No newline at end of file +' + data-response_msg='' + data-msg='' + data-wp_nonce='' + data-quote_data='' + data-variation='' + data-variation_id='' + data-product_id='' + class='' + href='#' + data-quantity='' + data-selector=''> + + \ No newline at end of file From 6dcd03d26893b3ec816874406e787ff3a404b245 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Wed, 16 Jun 2021 16:51:50 +0600 Subject: [PATCH 08/21] Searchbox keyword and placeholder text issue fixed shortcode.php and admin/action-hook.php --- admin/action-hook.php | 4 ++-- includes/shortcode.php | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/admin/action-hook.php b/admin/action-hook.php index a4675147..ca013df4 100644 --- a/admin/action-hook.php +++ b/admin/action-hook.php @@ -358,7 +358,7 @@ function wpt_configure_label_part($settings, $current_config_value,$field_name){ - + @@ -426,7 +426,7 @@ function wpt_configure_label_part($settings, $current_config_value,$field_name){ - + diff --git a/includes/shortcode.php b/includes/shortcode.php index 82b43cd2..53c5b049 100644 --- a/includes/shortcode.php +++ b/includes/shortcode.php @@ -1303,10 +1303,11 @@ function wpt_search_box($temp_number, $search_box_texonomiy_keyword = array( 'pr $order_by = isset( $_GET['orderby'] ) ? sanitize_text_field( $_GET['orderby'] ) : $order_by; $order = isset( $_GET['order'] ) ? sanitize_text_field( $_GET['order'] ) : $order; - $single_keyword = $config_value['search_box_searchkeyword'];//__( 'Search keyword', 'wpt_pro' ); + $single_keyword = $config_value['search_keyword_text'];//__( 'Search keyword', 'wpt_pro' ); + $search_box_placeholder = $config_value['search_box_searchkeyword'];//__( 'Search keyword', 'wpt_pro' ); $html .= "
"; $html .= ''; - $html .= ''; + $html .= ''; $html .= "
";// End of .search_single_column $order_by_validation = apply_filters( 'wpto_searchbox_order_show', false,$temp_number, $config_value, $search_box_texonomiy_keyword ); From f8063112c2e6d5ab6a57a7186e6d227b65fe7383 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Wed, 16 Jun 2021 18:22:27 +0600 Subject: [PATCH 09/21] quote-request issue has been solved --- assets/js/custom.js | 20 ++++++++------------ includes/items/quoterequest.php | 7 ++++++- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/assets/js/custom.js b/assets/js/custom.js index 07298cd4..859c3319 100644 --- a/assets/js/custom.js +++ b/assets/js/custom.js @@ -1783,9 +1783,8 @@ if( typeof split_params[1] !== 'undefined' && type === 'variation' ){ quote_data = '&' + split_params[1]; } - add_to_cart_info = 'action=yith_ywraq_action&ywraq_action=add_item'; + add_to_cart_info = 'action=yith_ywraq_action&ywraq_action=add_item&quantity=' + quantity + '&product_id='+ product_id +'&_wpnonce='+ywraq_frontend.yith_ywraq_action_nonce; add_to_cart_info += quote_data; - add_to_cart_info += '&quantity=' + quantity; /** * When Table will show "Only Variation" as row * Then Product ID will get from Parent ID @@ -1798,15 +1797,13 @@ product_id = parent_id; add_to_cart_info += '&variation_id=' + variation_id; } - add_to_cart_info += '&product_id=' + product_id; - add_to_cart_info += '&wp_nonce=' + wp_nonce; - add_to_cart_info += '&yith-add-to-cart=' + product_id; + var yith_ajax_url;// = ywraq_frontend.ajaxurl; yith_ajax_url = ywraq_frontend.ajaxurl.toString().replace( '%%endpoint%%', 'yith_ywraq_action' ); - console.log('customJS', add_to_cart_info); + $.ajax({ type : 'POST', - url : yith_ajax_url, + url : ywraq_frontend.ajaxurl,//yith_ajax_url, dataType: 'json', data : add_to_cart_info, beforeSend: function(){ @@ -1817,11 +1814,10 @@ success: function (response) { if( response && ( response.result === 'true' || response.result === 'exists' ) ){ $('.' + selector).html(msg.added); - if(response.result === 'exists'){ - - $('.' + selector).attr('data-response_msg',response.message); - //alert(response.message); - } + //if(response.result === 'exists'){ + //$('.' + selector).attr('data-response_msg',response.message); + //} + $('.' + selector).attr('data-response_msg',response.message); var html; //$('.wpt_quoterequest img').remove(); //$('.' + selector + '+.yith_ywraq_add_item_browse_message').remove(); diff --git a/includes/items/quoterequest.php b/includes/items/quoterequest.php index 4104dbf8..c9ac548e 100644 --- a/includes/items/quoterequest.php +++ b/includes/items/quoterequest.php @@ -5,8 +5,13 @@ if( $product->get_type() == 'variable' ){ $quote_class = 'variations_button disabled'; } + +$c_product_id = $data['id']; $Add_to_Quote = $config_value['yith_add_to_quote_text'];//'Add to Quote'; $data_message = '{"text":"'. $Add_to_Quote .'","adding":"' . $config_value['yith_add_to_quote_adding'] . '","added":"' . $config_value['yith_add_to_quote_added'] . '"}'; + +$q_final_class = "{$quote_class} yith_request_temp_{$temp_number}_id_{$data['id']} wpt_yith_add_to_quote_request wpt_add-request-quote-button"; + ?> ' data-response_msg='' @@ -21,4 +26,4 @@ class='' data-selector=''> - \ No newline at end of file + From 220a86005aa385e90e919c6ce476e6c121b78ffb Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Wed, 16 Jun 2021 18:25:34 +0600 Subject: [PATCH 10/21] qty update in shop page --- assets/js/custom.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/assets/js/custom.js b/assets/js/custom.js index 859c3319..a202dd52 100644 --- a/assets/js/custom.js +++ b/assets/js/custom.js @@ -1592,9 +1592,11 @@ var Qty_Val = $(this).val(); var product_id = $(this).parents('tr').data('product_id'); - //.product_id_' + product_id + ' This a Table Trow Class - $('#table_id_' + temp_number + ' tr.product_id_' + product_id + ' input.input-text.qty.text').val(Qty_Val); - $('#table_id_' + temp_number + ' tr.product_id_' + product_id).attr('data-quantity',Qty_Val); + var thisRow = '#table_id_' + temp_number + ' tr.product_id_' + product_id; + + $( thisRow + ' input.input-text.qty.text').val(Qty_Val); + $( thisRow ).attr('data-quantity', Qty_Val); + $( thisRow + ' a.add_to_cart_button').attr('data-quantity', Qty_Val); var targetTotalSelector = $('#table_id_' + temp_number + ' .product_id_' + product_id + ' .wpt_total_item.total_general'); @@ -1632,7 +1634,6 @@ break; } - $('#table_id_' + temp_number + ' .product_id_' + product_id + ' .wpt_action a.wpt_woo_add_cart_button').attr('data-quantity', Qty_Val); $('.yith_request_temp_' + temp_number + '_id_' + product_id).attr('data-quantity', Qty_Val); $('#table_id_' + temp_number + ' .product_id_' + product_id + ' .wpt_total_item.total_general strong').html(newPrice); //$(target_row_id + ' a.add_to_cart_button').attr('data-quantity', Qty_Val); //wpt_total_item total_general From b3b2e16bbc0b2d307f6ea5a8410bebff1b8bcc30 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Thu, 17 Jun 2021 12:22:52 +0600 Subject: [PATCH 11/21] custom.js input.text issue solved on shop page --- assets/js/custom.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/js/custom.js b/assets/js/custom.js index a202dd52..a4997dd9 100644 --- a/assets/js/custom.js +++ b/assets/js/custom.js @@ -1596,7 +1596,9 @@ $( thisRow + ' input.input-text.qty.text').val(Qty_Val); $( thisRow ).attr('data-quantity', Qty_Val); - $( thisRow + ' a.add_to_cart_button').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); + var targetTotalSelector = $('#table_id_' + temp_number + ' .product_id_' + product_id + ' .wpt_total_item.total_general'); From b6221cad959798e4e5efe0a055716a110c9833ce Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Thu, 17 Jun 2021 12:36:30 +0600 Subject: [PATCH 12/21] add to cart return to 0/1 issue from shop page has been fixed --- assets/js/custom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/custom.js b/assets/js/custom.js index a4997dd9..61dc1321 100644 --- a/assets/js/custom.js +++ b/assets/js/custom.js @@ -461,7 +461,7 @@ * for Ajax add to cart * for Variation product */ - $('body').on('click', 'a.ajax_active.wpt_variation_product.single_add_to_cart_button.button.enabled, a.ajax_active.add_to_cart_button.wpt_woo_add_cart_button', function(e) { + $('body').on('click', 'a.ajax_active.wpt_variation_product.single_add_to_cart_button.button.enabled, a.add_to_cart_button.ajax_add_to_cart, a.ajax_active.add_to_cart_button.wpt_woo_add_cart_button', function(e) { e.preventDefault(); var thisButton = $(this); //Adding disable and Loading class From d3b62293f68d83326f2e5b97004bd10e6ac929a3 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Thu, 17 Jun 2021 16:46:32 +0600 Subject: [PATCH 13/21] just version update to 2.9.2.2 and WC tested upto updated --- woo-product-table.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/woo-product-table.php b/woo-product-table.php index 831738d4..c001f1fe 100644 --- a/woo-product-table.php +++ b/woo-product-table.php @@ -11,7 +11,7 @@ * Requires at least: 4.0.0 * Tested up to: 5.7.2 * WC requires at least: 3.0.0 - * WC tested up to: 5.3.0 + * WC tested up to: 5.4.1 * * Text Domain: wpt_pro * Domain Path: /languages/ @@ -30,7 +30,7 @@ } if( !defined( 'WPT_DEV_VERSION' ) ){ - define( 'WPT_DEV_VERSION', '2.9.2.0' ); + define( 'WPT_DEV_VERSION', '2.9.2.2' ); } if( !defined( 'WPT_CAPABILITY' ) ){ From 12c44891c8e46ebae4f8d1649934189b990bb14a Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Thu, 17 Jun 2021 18:30:14 +0600 Subject: [PATCH 14/21] Stable tag updated --- readme.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index dc6f4843..459da2a6 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: https://codecanyon.net/item/woo-product-table-pro/20676867?ref=Code Tags: wc product table,woocommerce product table, product table, wc table, quick order table, wholesale table, restaurants table Requires at least: 4.0.0 Tested up to: 5.7.2 -Stable tag: 2.9.1 +Stable tag: 2.9.2 Requires PHP: 5.6 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html From 6a3f8853c71e6946b2c5390a70016638de4b10ff Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Thu, 17 Jun 2021 18:35:48 +0600 Subject: [PATCH 15/21] version updated 2.9.3.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 459da2a6..2d818de4 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: https://codecanyon.net/item/woo-product-table-pro/20676867?ref=Code Tags: wc product table,woocommerce product table, product table, wc table, quick order table, wholesale table, restaurants table Requires at least: 4.0.0 Tested up to: 5.7.2 -Stable tag: 2.9.2 +Stable tag: 2.9.3 Requires PHP: 5.6 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 c001f1fe..2bd22920 100644 --- a/woo-product-table.php +++ b/woo-product-table.php @@ -7,7 +7,7 @@ * Author URI: https://profiles.wordpress.org/codersaiful/ * Tags: woocommerce product list,woocommerce product table, wc product table, product grid view, inventory, shop product table * - * Version: 2.9.2 + * Version: 2.9.3 * Requires at least: 4.0.0 * Tested up to: 5.7.2 * WC requires at least: 3.0.0 @@ -30,7 +30,7 @@ } if( !defined( 'WPT_DEV_VERSION' ) ){ - define( 'WPT_DEV_VERSION', '2.9.2.2' ); + define( 'WPT_DEV_VERSION', '2.9.3.0' ); } if( !defined( 'WPT_CAPABILITY' ) ){ From 0259a7ff6b9d00ba52aa04198c5d2f05d3bf0aaa Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Mon, 21 Jun 2021 13:19:22 +0600 Subject: [PATCH 16/21] comment added on scrollbar hook --- includes/functions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/functions.php b/includes/functions.php index a5dfca58..130a9486 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -1241,6 +1241,10 @@ function wpt_freeze_column_maintain( $table_ID, $args, $column_settings, $enable if( !function_exists( 'wpt_add_div_at_top' ) ){ /** + * Top Scrollbar + * To hide, top scrollbar, we can use this action hook + * + * * Add a new div at the top of the table, To add a Wrapper wrapper at the Top * * @param Int $table_ID From 8ca7bc2afe6f95a7cd0dce1d0f6e5260552b1cfa Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Mon, 21 Jun 2021 16:48:18 +0600 Subject: [PATCH 17/21] search issue has been fixed --- includes/helper-functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/helper-functions.php b/includes/helper-functions.php index fd36c46b..054c56e4 100644 --- a/includes/helper-functions.php +++ b/includes/helper-functions.php @@ -55,7 +55,7 @@ function wpt_ajax_paginate_links_load(){ $table_ID = $args['table_ID']; $search_from = get_post_meta( $table_ID, 'search_n_filter', true ); - $search_from = isset( $search_from['search_from'] ) && is_array( $search_from['search_from'] ) && count( $search_from['search_from'] ) > 0 ? sanitize_text_field( $search_from['search_from'] ) : false; + $search_from = isset( $search_from['search_from'] ) && is_array( $search_from['search_from'] ) && count( $search_from['search_from'] ) > 0 ? $search_from['search_from'] : false; $search_key = isset( $directkey['s'] ) && !empty( $directkey['s'] ) ? sanitize_text_field( $directkey['s'] ) : ""; @@ -208,7 +208,7 @@ function wpt_ajax_table_row_load(){ $table_ID = $args['table_ID']; $search_from = get_post_meta( $table_ID, 'search_n_filter', true ); - $search_from = isset($search_from['search_from']) && is_array( $search_from['search_from'] ) && count( $search_from['search_from'] ) > 0 ? sanitize_text_field( $search_from['search_from'] ) : false; + $search_from = isset($search_from['search_from']) && is_array( $search_from['search_from'] ) && count( $search_from['search_from'] ) > 0 ? $search_from['search_from'] : false; $search_key = isset( $directkey['s'] ) && !empty( $directkey['s'] ) ? sanitize_text_field( $directkey['s'] ) : ""; From e6675f7920449d9614cdf3d766bbcdfa3b0921d3 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Mon, 21 Jun 2021 16:50:45 +0600 Subject: [PATCH 18/21] generate_url_by_search_query spelling fix in custom.js --- assets/js/custom.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/js/custom.js b/assets/js/custom.js index 61dc1321..e1578420 100644 --- a/assets/js/custom.js +++ b/assets/js/custom.js @@ -151,7 +151,7 @@ if($('#table_id_' + temp_number + ' table.wpt_product_table').attr('data-queried') !== 'true'){ - generat_url_by_search_query(temp_number); + generate_url_by_search_query(temp_number); $('#table_id_' + temp_number + ' table.wpt_product_table').attr('data-queried','true'); } @@ -1402,7 +1402,7 @@ /** * Generate here where query */ - generat_url_by_search_query(temp_number, extra_link_tax_cf); + generate_url_by_search_query(temp_number, extra_link_tax_cf); $('#wpt_query_reset_button_' + temp_number).fadeIn('medium'); /** * Trigger on this event, when search will be completed @@ -1470,7 +1470,7 @@ * @param {type} table_id * @returns {undefined} */ - function generat_url_by_search_query( table_id = 0, extra = '' ){ + function generate_url_by_search_query( table_id = 0, extra = '' ){ var key,value; var link = window.location.origin + window.location.pathname + "?table_ID=" + table_id + "&"; $('.query_box_direct_value').each(function(){ From 71178790e8ab18f2372e33c3cc9df22186c7b75e Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Mon, 21 Jun 2021 17:26:49 +0600 Subject: [PATCH 19/21] query by link on off feature added --- admin/action-hook.php | 9 +++++++++ assets/js/custom.js | 6 ++++++ 2 files changed, 15 insertions(+) diff --git a/admin/action-hook.php b/admin/action-hook.php index ca013df4..194120e7 100644 --- a/admin/action-hook.php +++ b/admin/action-hook.php @@ -318,6 +318,15 @@ function wpt_configure_basic_part( $settings,$current_config_value,$field_name ) + + + + + + diff --git a/assets/js/custom.js b/assets/js/custom.js index e1578420..264e7244 100644 --- a/assets/js/custom.js +++ b/assets/js/custom.js @@ -1471,6 +1471,12 @@ * @returns {undefined} */ function generate_url_by_search_query( table_id = 0, extra = '' ){ + config_json = getConfig_json( table_id ); //Added vat v2.9.3.0 + + if(config_json.query_by_url !== '1'){ + return; + } + var key,value; var link = window.location.origin + window.location.pathname + "?table_ID=" + table_id + "&"; $('.query_box_direct_value').each(function(){ From 9b31e630d8896eb0d0d662faa043d4abeb0fbdc3 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Mon, 21 Jun 2021 17:56:21 +0600 Subject: [PATCH 20/21] Mainly for shortmessage field --- assets/js/custom.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/assets/js/custom.js b/assets/js/custom.js index 264e7244..24e973cc 100644 --- a/assets/js/custom.js +++ b/assets/js/custom.js @@ -1592,7 +1592,17 @@ updateCheckBoxCount(temp_number); } - + /** + * Mainly for shortmessage field + */ + $('body').on('change', '.wpt_row input.message', function() { + var temp_number = $(this).parents('tr.wpt_row').data('temp_number'); + var msg = $(this).val(); + var product_id = $(this).parents('tr').data('product_id'); + + var thisRow = '#table_id_' + temp_number + ' tr.product_id_' + product_id; + $( thisRow + ' input.message').val(msg); + }); $('body').on('change', '.wpt_row input.input-text.qty.text', function() { var temp_number = $(this).parents('tr.wpt_row').data('temp_number'); var Qty_Val = $(this).val(); From 41da15e6f1f01a3ee5405737ba484ea532ba9b0f Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Mon, 21 Jun 2021 18:05:53 +0600 Subject: [PATCH 21/21] change log added --- readme.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/readme.txt b/readme.txt index 2d818de4..bb954b6a 100644 --- a/readme.txt +++ b/readme.txt @@ -157,6 +157,16 @@ You can easily show specific category products. While creating new table click o == Changelog == += 2.9.3 = + * Fixed: Shop page quantity issue + * Fixed: After add to cart quantity issue + * Fixed: Quote button issue + * Fixed: YITH Quote button issue + * Fixed: Short Message not sending issue + * Fixed: Advance Search on latest verion + * Added: Query by URL - on off from Configuraton page and tab + * Bug Fix + = 2.9.1 = * escapping issue fixed