From be4d923ee84d85d17b2148181415a94f9eae7d79 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Mon, 18 Mar 2024 15:56:17 +0600 Subject: [PATCH 01/18] tested version updated --- readme.txt | 8 ++++++-- woo-product-table.php | 6 +++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/readme.txt b/readme.txt index e4fa2373..b1377aa2 100644 --- a/readme.txt +++ b/readme.txt @@ -3,8 +3,8 @@ Contributors: codersaiful,codeastrology,mdibrahimk48,ultraaddons,unikforce,rafiu Donate link: https://donate.stripe.com/4gw2bB2Pzdjd8mYfYZ Tags: wc product table, wooproducttable, woo product table,woocommerce product table, product table, wc table, quick order table, wholesale table, restaurants table,woo-product-table Requires at least: 4.0.0 -Tested up to: 6.4.3 -Stable tag: 3.4.7 +Tested up to: 6.5.0 +Stable tag: 3.4.8 Requires PHP: 5.4 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -333,6 +333,10 @@ You can easily show specific category products. While creating new table click o == Changelog == += 3.4.8 = +* Bug fixed +* Code Optimized + = 3.4.7 = * Fixed: added to cart block notice text color issue fixed. * Fixed: pagination issue for some specific theme has been fixed. diff --git a/woo-product-table.php b/woo-product-table.php index 410a5b12..a91ea61b 100644 --- a/woo-product-table.php +++ b/woo-product-table.php @@ -7,11 +7,11 @@ * Author URI: https://wooproducttable.com/?utm_source=WPT+Plugin+Dashboard&utm_medium=Free+Version * Tags: wooproducttable, woocommerce product list,woocommerce product table, wc product table, product grid view, inventory, shop product table * - * Version: 3.4.7 + * Version: 3.4.8 * Requires at least: 4.0.0 - * Tested up to: 6.4.3 + * Tested up to: 6.5.0 * WC requires at least: 5.0.0 - * WC tested up to: 8.5.2 + * WC tested up to: 8.6.1 * * * Text Domain: woo-product-table From d9a2bf7aa0bc8d49324d949be7faa2370fa25089 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Mon, 18 Mar 2024 16:30:33 +0600 Subject: [PATCH 02/18] working on flash sale message --- framework/handle.php | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/framework/handle.php b/framework/handle.php index b8047044..367ea976 100644 --- a/framework/handle.php +++ b/framework/handle.php @@ -50,35 +50,41 @@ public static function fail() */ public static function display_notice() { + /** + * eTa muloto seisob kustomer er jonno + * jara oofer message dekhe khub birokto hoyeche, eTa tader jonno. + * + * add_filter('wpt_offer_show', '__return_false'); + * taholei offer showing off hoye jabe. + */ + $return_true = apply_filters( 'wpt_offer_show', true ); + if( !$return_true ) return; + if( defined( 'WPT_PRO_DEV_VERSION' ) ) return; if( ! is_admin() ) return; - // return; - //Today: 14.2.2024 - 1707890302 and added 20 days seccond - 1664000 (little change actually) - if( time() > ( 1707890302 + 1664000 ) ) return; + $temp_numb = rand(2,5); - if( defined( 'WPT_PRO_DEV_VERSION' ) ){ - self::display_notice_on_pro(); - return; - }; - - $temp_numb = rand(2,15); - - $coupon_Code = 'SPECIAL_OFFER_FEB_2024'; + $coupon_Code = 'FLASH_SALE_2024'; $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 by (Woo Product Table Pro) Plugin'; //COUPON CODE: ' . $coupon_Code . ' - for + $my_message = 'Product Table Primium version on Sale (Woo Product Table Pro) Plugin. Take it First!'; $offerNc = new Notice('wpt_'.$coupon_Code.'_offer'); - $offerNc->set_title( 'SPECIAL OFFER UPTO 70% 🍌' ) + $offerNc->set_title( 'FLASH SALE UPTO 70%' ) ->set_diff_limit(5) ->set_type('offer') ->set_img( WPT_BASE_URL. 'assets/images/round-logo.png') ->set_img_target( $target ) ->set_message( $my_message ) ->add_button([ - 'text' => 'Click Here to get Discount', - 'type' => 'error', + 'text' => 'Claim Discount', + 'type' => 'offer', 'link' => 'https://wooproducttable.com/pricing/?discount=' . $coupon_Code, ]); + $offerNc->add_button([ + 'text' => 'Stock Sync', + 'link' => 'https://codeastrology.com/downloads/category/premium/' + ]); + if($temp_numb == 5) $offerNc->show(); From 185b0484d28e2ceb6aca1dcb37ea3a8b62bfac04 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Wed, 27 Mar 2024 15:11:20 +0600 Subject: [PATCH 03/18] done --- framework/recommeded.php | 43 ++++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/framework/recommeded.php b/framework/recommeded.php index d4829518..c31be735 100644 --- a/framework/recommeded.php +++ b/framework/recommeded.php @@ -10,28 +10,6 @@ class Recommeded { public static function check() { - // $blackf22ID = 'black-friday-22-y'; - // $blackf22 = new Notice($blackf22ID); - // $blackf22->set_message(""); - // $blackf22->set_img( 'https://codeastrology.com/wp-content/uploads/2022/11/black-friday-notice.png'); - // $blackf22->set_img_target('https://codeastrology.com/coupons/?coupons=BLACKFRIDAY22'); - // $blackf22->set_diff_limit(55); - // $blackf22->add_button([ - // 'text' => 'Claim Discount', - // 'type' => '', - // 'link' => '_blank', - // ]); - // if( method_exists($blackf22, 'set_location') ){ - // $blackf22->set_location('wpt_plugin_recommend_here'); //wpt_premium_image_bottom - // } - // $blackf22->set_type('offer'); - // $blackf22->set_title('Woo Product Table.'); - // $blacf_count = get_option($blackf22ID, 0); - // if($blacf_count < 2 ){ - // $blacf_count++; - // update_option($blackf22ID, $blacf_count); - // $blackf22->show(); - // } $this_plugin = __( 'It\'s', 'woo-product-table' ); @@ -52,6 +30,27 @@ public static function check() + $pssg_req_slug = 'product-sync-master-sheet/product-sync-master-sheet.php'; + $pssg_tar_slug = WPT_PLUGIN_BASE_FILE; + $req_pssg = new Require_Control($pssg_req_slug,$pssg_tar_slug); + $req_pssg->set_args( ['Name' => 'Product Stock Sync with Google Sheet for WooCommerce'] ) + ->set_download_link('https://wordpress.org/plugins/product-sync-master-sheet/') + ->set_this_download_link('https://wordpress.org/plugins/woo-product-table/'); + $pssg_message = __('Help you to connect your WooCommerce website with Google Sheet as well as Manage your Stock easy from one menu with Advance Filter','woo-product-table'); + $req_pssg->set_message($pssg_message); + $req_pssg->get_full_this_plugin_name($this_plugin); + // var_dump(method_exists($req_pssg, 'set_location'),$req_pssg); + // ->set_required(); + if( method_exists($req_pssg, 'set_location') ){ + $req_pssg->set_location('wpto_column_setting_form_quantity'); //wpt_premium_image_bottom + // $req_pssg->set_location('wpto_column_setting_form_inside_quantity'); //wpt_premium_image_bottom + $req_pssg->run(); + + $req_pssg->get_full_this_plugin_name($this_plugin2); + $req_pssg->set_location('wpt_plugin_recommend_here'); + $req_pssg->run(); + } + $mmp_req_slug = 'woo-min-max-quantity-step-control-single/wcmmq.php'; $mmp_tar_slug = WPT_PLUGIN_BASE_FILE; $req_mmp = new Require_Control($mmp_req_slug,$mmp_tar_slug); From 1f5c07c577b43f76685b700ad4df8bf9c7153a3e Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Wed, 3 Apr 2024 20:32:16 +0600 Subject: [PATCH 04/18] wc tested version 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 a91ea61b..ffc4fa37 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.5.0 * WC requires at least: 5.0.0 - * WC tested up to: 8.6.1 + * WC tested up to: 8.7.0 * * * Text Domain: woo-product-table From ced7280b2bb6d16cdf3d2e81a70be69c05e21e28 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Wed, 3 Apr 2024 21:20:35 +0600 Subject: [PATCH 05/18] changelog updated with variation issue --- readme.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/readme.txt b/readme.txt index b1377aa2..457e3c62 100644 --- a/readme.txt +++ b/readme.txt @@ -333,6 +333,11 @@ You can easily show specific category products. While creating new table click o == Changelog == += 3.4.9 = +* Variation List showing on Shop Page for Variable product issue has been fixed +* Bug fixed +* Code Optimized + = 3.4.8 = * Bug fixed * Code Optimized From dfc18562613115f809eece8c6b84cc23c5bef8aa Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Mon, 22 Apr 2024 10:17:23 +0600 Subject: [PATCH 06/18] popup notice issue fixed --- admin/action-hook.php | 2 +- assets/js/custom.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/action-hook.php b/admin/action-hook.php index 00a893f2..9d321905 100644 --- a/admin/action-hook.php +++ b/admin/action-hook.php @@ -501,7 +501,7 @@ function wpt_configure_basic_part( $settings,$current_config_value,$field_name ) diff --git a/assets/js/custom.js b/assets/js/custom.js index 1e348fb0..5b715e3e 100644 --- a/assets/js/custom.js +++ b/assets/js/custom.js @@ -324,7 +324,7 @@ jQuery(function($) { action: 'wpt_print_notice' }, success: function(response){ - if( config_json.popup_notice !== '1' ) return; + if( config_json.popup_notice !== '1' || config_json.popup_notice == 'no' ) return; var eachNoticeInnter = $(response); eachNoticeInnter.css('display','none'); if(response !== ''){ @@ -2476,7 +2476,7 @@ jQuery(function($) { thisTable.removeClass('loading'); var notice = $('.woocommerce-message,.woocommerce-error', data); //.woocommerce-error - if(config_json.popup_notice === '1'){ + if(config_json.popup_notice === '1' || config_json.popup_notice == 'no'){ Advance_NoticeBoard(notice);//Gettince Notice } From a1b898df1c5f9c23e1eef5bf5c9a92217ceee2cc Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Mon, 22 Apr 2024 17:44:09 +0600 Subject: [PATCH 07/18] Doc link added for column --- admin/handle/column-doc-link.php | 80 ++++++++++++++++++++++++++++++++ admin/handle/feature-loader.php | 3 ++ 2 files changed, 83 insertions(+) create mode 100644 admin/handle/column-doc-link.php diff --git a/admin/handle/column-doc-link.php b/admin/handle/column-doc-link.php new file mode 100644 index 00000000..57c1007b --- /dev/null +++ b/admin/handle/column-doc-link.php @@ -0,0 +1,80 @@ + + * + * @since 3.4.8.0 + * + * @package WOO_PRODUCT_TABLE + */ +class Column_Doc_Link extends Base +{ + public $links = []; + + /** + * Initializes the links array and adds an action to display the document links in the column basic form. + * + * @return void + */ + public function run() + { + $this->links = [ + 'my_extrem_audio' => [ + [ + 'title' => 'Tutoiral - How can create?', + 'url' => 'https://wooproducttable.com/docs/doc/tutorials/how-to-create-a-audio-table-using-woo-product-table/', + ], + [ + 'title' => 'Demo Table', + 'url' => 'https://demo.wooproducttable.com/demo-list/audio-table/', + ] + ], + //Example for Custom Link + // 'my_sample_column_keyword' => [ + // [ + // 'title' => 'Tutoiral Doc', + // 'url' => 'https://wooproducttable.com/sample-doc/', + // ] + // ], + ]; + add_action( 'wpto_column_basic_form', [$this, 'add_doc_link'], 10, 3 ); + // add_action( 'wpto_column_setting_form', [$this, 'add_doc_link'], 10, 3 ); + + } + + public function add_doc_link( $keyword, $_device_name, $column_settings ) + { + // var_dump($keyword); + if( ! isset($this->links[$keyword]) || ! is_array( $this->links[$keyword] ) ) return; + + $this->links[$keyword] = apply_filters( 'wpt_pro_column_doc_link', $this->links[$keyword], $keyword, $_device_name, $column_settings ); + + if( empty( $this->links[$keyword] ) ) return; + + $docs = $this->links[$keyword]; + if( ! isset( $docs[0]['title'] ) ) return; + foreach( $docs as $doc ) { + $title = $doc['title'] ?? 'Doc'; + $url = $doc['url'] ?? '#'; + ?> + 🌐 | + + + run(); + + $doc_link = new Column_Doc_Link(); + $doc_link->run(); } } \ No newline at end of file From f52361d717a341165dc6257aaef3331bea79b611 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Mon, 22 Apr 2024 17:45:43 +0600 Subject: [PATCH 08/18] doc link added for audio column --- admin/handle/feature-loader.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/admin/handle/feature-loader.php b/admin/handle/feature-loader.php index f3df458f..cc8f17f5 100644 --- a/admin/handle/feature-loader.php +++ b/admin/handle/feature-loader.php @@ -28,6 +28,13 @@ public function run() $action = new Action_Feature(); $action->run(); + /** + * I have added new Column Doc Link + * now added for column: my_extream_adio + * in next time, we will add more one by one + * + * @author Saiful Islam + */ $doc_link = new Column_Doc_Link(); $doc_link->run(); } From 99d011132514bfdbbccbc0c631a8b0ad4ccde5f1 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Mon, 22 Apr 2024 18:01:43 +0600 Subject: [PATCH 09/18] finally doc link adding feature for column --- admin/handle/column-doc-link.php | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/admin/handle/column-doc-link.php b/admin/handle/column-doc-link.php index 57c1007b..5003c464 100644 --- a/admin/handle/column-doc-link.php +++ b/admin/handle/column-doc-link.php @@ -31,7 +31,7 @@ class Column_Doc_Link extends Base public function run() { $this->links = [ - 'my_extrem_audio' => [ + 'audio' => [ [ 'title' => 'Tutoiral - How can create?', 'url' => 'https://wooproducttable.com/docs/doc/tutorials/how-to-create-a-audio-table-using-woo-product-table/', @@ -41,13 +41,27 @@ public function run() 'url' => 'https://demo.wooproducttable.com/demo-list/audio-table/', ] ], + + // ekhane column type or column keyword diye dite hobe + //Example for Custom Link - // 'my_sample_column_keyword' => [ + // 'type_or_column_keyword' => [ // [ // 'title' => 'Tutoiral Doc', // 'url' => 'https://wooproducttable.com/sample-doc/', // ] // ], + + // 'product_title' => [ + // [ + // 'title' => 'Tutoiral - How can create?', + // 'url' => 'https://wooproducttable.com/docs/doc/tutorials/how-to-create-a-audio-table-using-woo-product-table/', + // ], + // [ + // 'title' => 'Demo Table', + // 'url' => 'https://demo.wooproducttable.com/demo-list/audio-table/', + // ] + // ], ]; add_action( 'wpto_column_basic_form', [$this, 'add_doc_link'], 10, 3 ); // add_action( 'wpto_column_setting_form', [$this, 'add_doc_link'], 10, 3 ); @@ -56,20 +70,22 @@ public function run() public function add_doc_link( $keyword, $_device_name, $column_settings ) { - // var_dump($keyword); - if( ! isset($this->links[$keyword]) || ! is_array( $this->links[$keyword] ) ) return; + if( empty( $column_settings['type'] )) return; + $target_keyword = $column_settings['type'] == 'default' ? $keyword : $column_settings['type']; - $this->links[$keyword] = apply_filters( 'wpt_pro_column_doc_link', $this->links[$keyword], $keyword, $_device_name, $column_settings ); + if( ! isset($this->links[$target_keyword]) || ! is_array( $this->links[$target_keyword] ) ) return; - if( empty( $this->links[$keyword] ) ) return; + $this->links[$target_keyword] = apply_filters( 'wpt_pro_column_doc_link', $this->links[$target_keyword], $target_keyword, $_device_name, $column_settings ); - $docs = $this->links[$keyword]; + if( empty( $this->links[$target_keyword] ) ) return; + + $docs = $this->links[$target_keyword]; if( ! isset( $docs[0]['title'] ) ) return; foreach( $docs as $doc ) { $title = $doc['title'] ?? 'Doc'; $url = $doc['url'] ?? '#'; ?> - 🌐 | + 🌐 | Date: Mon, 22 Apr 2024 18:31:35 +0600 Subject: [PATCH 10/18] new doc link add for Content Column --- admin/handle/column-doc-link.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/admin/handle/column-doc-link.php b/admin/handle/column-doc-link.php index 5003c464..b676d896 100644 --- a/admin/handle/column-doc-link.php +++ b/admin/handle/column-doc-link.php @@ -41,6 +41,13 @@ public function run() 'url' => 'https://demo.wooproducttable.com/demo-list/audio-table/', ] ], + + 'all_content' => [ + [ + 'title' => 'Tutoiral - How to use?', + 'url' => 'https://wooproducttable.com/docs/doc/advance-uses/add-multiple-content-column/', + ], + ], // ekhane column type or column keyword diye dite hobe From db906a79bc052ebe53488445cc70071e15e7c309 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Mon, 22 Apr 2024 18:40:57 +0600 Subject: [PATCH 11/18] doc link adding little updated --- admin/handle/column-doc-link.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/handle/column-doc-link.php b/admin/handle/column-doc-link.php index b676d896..955de1b6 100644 --- a/admin/handle/column-doc-link.php +++ b/admin/handle/column-doc-link.php @@ -92,7 +92,7 @@ public function add_doc_link( $keyword, $_device_name, $column_settings ) $title = $doc['title'] ?? 'Doc'; $url = $doc['url'] ?? '#'; ?> - 🌐 | + 🌐 Date: Tue, 23 Apr 2024 15:02:50 +0600 Subject: [PATCH 12/18] added new features --- admin/handle/column-doc-link.php | 15 +++++++++++++-- assets/css/admin.css | 17 +++++++++++++++++ 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/admin/handle/column-doc-link.php b/admin/handle/column-doc-link.php index 955de1b6..5018f05e 100644 --- a/admin/handle/column-doc-link.php +++ b/admin/handle/column-doc-link.php @@ -62,6 +62,7 @@ public function run() // 'product_title' => [ // [ // 'title' => 'Tutoiral - How can create?', + // 'message' => 'This is test message', //It will display at the begining of the link // 'url' => 'https://wooproducttable.com/docs/doc/tutorials/how-to-create-a-audio-table-using-woo-product-table/', // ], // [ @@ -88,16 +89,26 @@ public function add_doc_link( $keyword, $_device_name, $column_settings ) $docs = $this->links[$target_keyword]; if( ! isset( $docs[0]['title'] ) ) return; + ?> + span { + color: #bfbfbf; +} +.wpt-doc-column-link a{ + text-decoration: none; + color: #42b9cc; + font-style: oblique; + font-size: 13px; +} + +.wpt-doc-column-link { + display: flex; + gap: 10px; +} .add-new-column-doc>a{ color: #23282d; text-decoration: underline; From 4eeaf2b2221ccc9506f1e52b7a78e917ec82d2bb Mon Sep 17 00:00:00 2001 From: Abdullah Al Arif <140299847+arif-xs@users.noreply.github.com> Date: Tue, 23 Apr 2024 15:04:37 +0600 Subject: [PATCH 13/18] variation name links are updated --- admin/handle/column-doc-link.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/admin/handle/column-doc-link.php b/admin/handle/column-doc-link.php index 955de1b6..661943a1 100644 --- a/admin/handle/column-doc-link.php +++ b/admin/handle/column-doc-link.php @@ -33,7 +33,7 @@ public function run() $this->links = [ 'audio' => [ [ - 'title' => 'Tutoiral - How can create?', + 'title' => 'Tutorial - How can create?', 'url' => 'https://wooproducttable.com/docs/doc/tutorials/how-to-create-a-audio-table-using-woo-product-table/', ], [ @@ -44,10 +44,22 @@ public function run() 'all_content' => [ [ - 'title' => 'Tutoiral - How to use?', + 'title' => 'Tutorial - How to use?', 'url' => 'https://wooproducttable.com/docs/doc/advance-uses/add-multiple-content-column/', ], ], + + + 'variation_name' => [ + [ + 'title' => 'Tutorial - How to create variation?', + 'url' => 'https://wooproducttable.com/docs/doc/table-options/show-variation-name-in-a-single-column/', + ], + [ + 'title' => 'Explore Demo', + 'url' => 'https://demo.wooproducttable.com/', + ], + ], // ekhane column type or column keyword diye dite hobe From ad7ce1f4cde961811e4749c387284b8b599c2759 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Tue, 23 Apr 2024 15:07:11 +0600 Subject: [PATCH 14/18] css update --- assets/css/admin.css | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/assets/css/admin.css b/assets/css/admin.css index b9600d64..488a207b 100644 --- a/assets/css/admin.css +++ b/assets/css/admin.css @@ -2436,10 +2436,15 @@ a.wpt-doc-lick{ } .wpt-doc-column-link a{ text-decoration: none; - color: #42b9cc; + color: #9E9E9E; font-style: oblique; font-size: 13px; } +/* make more deep: .wpt-doc-column-link a */ + +.wpt-doc-column-link a:hover { + color: #525252; +} .wpt-doc-column-link { display: flex; From 2ef541a6a137fe688a160a067a567686c2a3fb5d Mon Sep 17 00:00:00 2001 From: Abdullah Al Arif <140299847+arif-xs@users.noreply.github.com> Date: Tue, 23 Apr 2024 15:10:36 +0600 Subject: [PATCH 15/18] Update column-doc-link.php --- admin/handle/column-doc-link.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/handle/column-doc-link.php b/admin/handle/column-doc-link.php index 3915cf4d..0d13719f 100644 --- a/admin/handle/column-doc-link.php +++ b/admin/handle/column-doc-link.php @@ -52,7 +52,7 @@ public function run() 'variation_name' => [ [ - 'title' => 'Tutorial - How to create variation?', + 'title' => 'Tutorial - How to use variation?', 'url' => 'https://wooproducttable.com/docs/doc/table-options/show-variation-name-in-a-single-column/', ], [ From 9493147fc9e98777d569ff34a0b12a24dd0dc026 Mon Sep 17 00:00:00 2001 From: Abdullah Al Arif <140299847+arif-xs@users.noreply.github.com> Date: Wed, 24 Apr 2024 23:35:44 +0600 Subject: [PATCH 16/18] audio and category link added --- admin/handle/column-doc-link.php | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/admin/handle/column-doc-link.php b/admin/handle/column-doc-link.php index 0d13719f..f83508e5 100644 --- a/admin/handle/column-doc-link.php +++ b/admin/handle/column-doc-link.php @@ -49,7 +49,6 @@ public function run() ], ], - 'variation_name' => [ [ 'title' => 'Tutorial - How to use variation?', @@ -60,6 +59,27 @@ public function run() 'url' => 'https://demo.wooproducttable.com/', ], ], + 'audio_player' => [ + [ + 'title' => 'Tutorial - How to create audio player table?', + 'url' => 'https://wooproducttable.com/docs/doc/tutorials/create-an-audio-player-table/', + ], + [ + 'title' => 'Explore demo', + 'url' => 'https://demo.wooproducttable.com/demo-list/online-music-sale/', + ], + ], + + 'category' => [ + [ + 'title' => 'Helper doc', + 'url' => 'https://wooproducttable.com/docs/doc/table-options/show-products-by-categories-tag/', + ], + [ + 'title' => 'Tutorial - Sort products by category', + 'url' => 'https://wooproducttable.com/docs/doc/search-and-filter/how-to-sort-products-using-tags-or-custom-taxonomy/', + ], + ], // ekhane column type or column keyword diye dite hobe From f0f4e268f4293b1c01f39f683189719e811e3019 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Sun, 28 Apr 2024 14:30:40 +0600 Subject: [PATCH 17/18] doc link finalize --- admin/handle/column-doc-link.php | 49 ++++++++++++++++++++++++++------ assets/css/admin.css | 2 +- 2 files changed, 41 insertions(+), 10 deletions(-) diff --git a/admin/handle/column-doc-link.php b/admin/handle/column-doc-link.php index f83508e5..2881cb1c 100644 --- a/admin/handle/column-doc-link.php +++ b/admin/handle/column-doc-link.php @@ -49,14 +49,26 @@ public function run() ], ], - 'variation_name' => [ + 'single_variation' => [ [ - 'title' => 'Tutorial - How to use variation?', + 'title' => 'Tutorial - How to use Single Variation?', 'url' => 'https://wooproducttable.com/docs/doc/table-options/show-variation-name-in-a-single-column/', + 'position' => 'inside', //Position inside and front available //front//inside ], [ - 'title' => 'Explore Demo', - 'url' => 'https://demo.wooproducttable.com/', + 'title' => 'Demo', + 'url' => 'https://demo.wooproducttable.com/show-variation-name-in-a-single-column', + 'position' => 'inside', + ], + ], + 'variation_name' => [ + [ + 'title' => 'Tutorial - How to use Variation Names column?', + 'url' => 'https://wooproducttable.com/docs/doc/table-options/woocommerce-products-variables-show-as-individual-row/', + ], + [ + 'title' => 'Demo', + 'url' => 'https://demo.wooproducttable.com/product-variant-in-separate-row/', ], ], 'audio_player' => [ @@ -65,7 +77,7 @@ public function run() 'url' => 'https://wooproducttable.com/docs/doc/tutorials/create-an-audio-player-table/', ], [ - 'title' => 'Explore demo', + 'title' => 'Demo', 'url' => 'https://demo.wooproducttable.com/demo-list/online-music-sale/', ], ], @@ -74,10 +86,12 @@ public function run() [ 'title' => 'Helper doc', 'url' => 'https://wooproducttable.com/docs/doc/table-options/show-products-by-categories-tag/', + 'position' => 'inside', ], [ 'title' => 'Tutorial - Sort products by category', 'url' => 'https://wooproducttable.com/docs/doc/search-and-filter/how-to-sort-products-using-tags-or-custom-taxonomy/', + 'position' => 'inside', ], ], @@ -104,7 +118,7 @@ public function run() // ], ]; add_action( 'wpto_column_basic_form', [$this, 'add_doc_link'], 10, 3 ); - // add_action( 'wpto_column_setting_form', [$this, 'add_doc_link'], 10, 3 ); + add_action( 'wpto_column_setting_form', [$this, 'add_inside_doc_link'], 10, 3 ); } @@ -113,18 +127,35 @@ public function add_doc_link( $keyword, $_device_name, $column_settings ) if( empty( $column_settings['type'] )) return; $target_keyword = $column_settings['type'] == 'default' ? $keyword : $column_settings['type']; - if( ! isset($this->links[$target_keyword]) || ! is_array( $this->links[$target_keyword] ) ) return; - $this->links[$target_keyword] = apply_filters( 'wpt_pro_column_doc_link', $this->links[$target_keyword], $target_keyword, $_device_name, $column_settings ); + $this->manage_doc_link( $target_keyword, 'front' ); + } + + public function add_inside_doc_link( $keyword, $_device_name, $column_settings ) + { + $settings = $column_settings[$keyword] ?? []; + + if( empty( $settings['type'] )) return; + $target_keyword = $settings['type'] == 'default' ? $keyword : $settings['type']; + + + $this->manage_doc_link( $target_keyword, 'inside' ); + } + public function manage_doc_link( $target_keyword, $position = 'front' ) + { + + if( ! isset($this->links[$target_keyword]) || ! is_array( $this->links[$target_keyword] ) ) return; if( empty( $this->links[$target_keyword] ) ) return; $docs = $this->links[$target_keyword]; if( ! isset( $docs[0]['title'] ) ) return; ?> -