diff --git a/admin/page-loader.php b/admin/page-loader.php index c87d78f8..afa42800 100644 --- a/admin/page-loader.php +++ b/admin/page-loader.php @@ -49,15 +49,15 @@ public function admin_menu() { $proString = $this->is_pro ? esc_html__( ' Pro', 'woo-product-table' ) : ''; add_submenu_page( $this->main_slug, esc_html__( 'Configuration ', 'woo-product-table' ) . $proString, esc_html__( 'Configure', 'woo-product-table' ), WPT_CAPABILITY, 'woo-product-table-config', [$this, 'configure_page_render'] ); - add_submenu_page( $this->main_slug, esc_html__( 'Tutorials', 'woo-product-table' ). $proString, __( 'Tutorial', 'woo-product-table' ), WPT_CAPABILITY, 'wpt-live-support', [$this, 'html_tutorial_page'] ); + add_submenu_page( $this->main_slug, esc_html__( 'Temp Pro Demo', 'woo-product-table' ), esc_html__( 'Temp Pro Demo', 'woo-product-table' ), 'read', 'https://codeastro.live/?site=wpt&utm=PluginDashboard' ); + add_submenu_page( $this->main_slug, esc_html__( 'Tutorials', 'woo-product-table' ). $proString, __( 'Tutorial', 'woo-product-table' ), 'read', 'wpt-live-support', [$this, 'html_tutorial_page'] ); - add_submenu_page( $this->main_slug, esc_html__( 'Browse Plugins', 'woo-product-table' ). $proString, __( 'Browse Plugins', 'woo-product-table' ), WPT_CAPABILITY, 'wpt-browse-plugins',[$this, 'browse_plugins_html'] ); - add_submenu_page( $this->main_slug, esc_html__( 'Addons', 'woo-product-table' ). $proString, __( 'Addons', 'woo-product-table' ), WPT_CAPABILITY, 'wpt-addons-list',[$this, 'addons_list_html'] ); - add_submenu_page( $this->main_slug, esc_html__( 'Issue Submit', 'woo-product-table' ). $proString, __( 'Issue Submit', 'woo-product-table' ), WPT_CAPABILITY, 'https://github.com/codersaiful/woo-product-table/issues/new' ); + add_submenu_page( $this->main_slug, esc_html__( 'Browse Plugins', 'woo-product-table' ). $proString, __( 'Browse Plugins', 'woo-product-table' ), 'read', 'wpt-browse-plugins',[$this, 'browse_plugins_html'] ); + add_submenu_page( $this->main_slug, esc_html__( 'Addons', 'woo-product-table' ). $proString, __( 'Addons', 'woo-product-table' ), 'read', 'wpt-addons-list',[$this, 'addons_list_html'] ); + add_submenu_page( $this->main_slug, esc_html__( 'Issue Submit', 'woo-product-table' ). $proString, __( 'Issue Submit', 'woo-product-table' ), 'read', 'https://github.com/codersaiful/woo-product-table/issues/new' ); if( ! $this->is_pro ){ - add_submenu_page( $this->main_slug, esc_html__( 'Try Pro Version', 'woo-product-table' ), esc_html__( 'Try Pro Version', 'woo-product-table' ), WPT_CAPABILITY, 'https://try.wooproducttable.com/wp-admin/?utm=PluginDashboard' ); - add_submenu_page( $this->main_slug, esc_html__( 'GET PRO VERSION', 'woo-product-table' ), __( 'Get Pro', 'woo-product-table' ), WPT_CAPABILITY, 'https://wooproducttable.com/pricing/' ); + add_submenu_page( $this->main_slug, esc_html__( 'GET PRO VERSION', 'woo-product-table' ), __( 'Get Pro', 'woo-product-table' ), 'read', 'https://wooproducttable.com/pricing/' ); } // var_dump($this->license); diff --git a/assets/css/new-admin.css b/assets/css/new-admin.css index 5dc84d8d..bc466a40 100644 --- a/assets/css/new-admin.css +++ b/assets/css/new-admin.css @@ -676,6 +676,12 @@ Device and Screen wise CSS end Here /* Bootstrap */ .col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.container,.container-fluid{margin-right:auto;margin-left:auto}.row{margin-right:-15px;margin-left:-15px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.container{width:750px}.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.container{width:970px}.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1200px){.container{width:1170px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}} /* recommendation area */ +/*compatible*/ +tr.col-lg-4, tr.col-md-4 { + float: unset; +} +/*compatible*/ + #wpt-recomendation-area .ca-reuire-plugin-notice.anwwhere-notice { border: 1px solid white; margin: 10px 0; diff --git a/assets/css/override-root.css b/assets/css/override-root.css index 63ffbbbf..38371854 100644 --- a/assets/css/override-root.css +++ b/assets/css/override-root.css @@ -409,6 +409,10 @@ div.wpt_notice_board>div:after { div.wpt_notice_board>div:hover:after { background: var(--wpt_primary_deepest) } +.wc-block-components-notice-banner__content { + color: var(--wpt_primary); +} + div.wpt_column_sort table#wpt_table.wpt_product_table tr>th.this_column_sorted { background-color: var(--wpt_sorted_head_bg); diff --git a/assets/css/universal.css b/assets/css/universal.css index 918adbe3..a31d83be 100644 --- a/assets/css/universal.css +++ b/assets/css/universal.css @@ -90,9 +90,15 @@ td.wpt_thumbnails_no_action img { top: 3px; left: 21%; } -td.wpt_thumbnails img.lazyloaded + .lazyloaded,td.wpt_thumbnails img.ls-is-cached.lazyloaded + img.ls-is-cached.lazyloaded, td.wpt_thumbnails img.ls-is-cached + .ls-is-cached { +div.wpt_thumbnails img.lazyloaded + .lazyloaded, +div.wpt_thumbnails img.ls-is-cached.lazyloaded + img.ls-is-cached.lazyloaded, +div.wpt_thumbnails img.ls-is-cached + .ls-is-cached, +td.wpt_thumbnails img.lazyloaded + .lazyloaded, +td.wpt_thumbnails img.ls-is-cached.lazyloaded + img.ls-is-cached.lazyloaded, +td.wpt_thumbnails img.ls-is-cached + .ls-is-cached { display: none; } + th.wpt_total, td.wpt_total, th.wpt_price, td.wpt_price{ text-align: center; @@ -347,8 +353,8 @@ div.wpt_column_sort table#wpt_table.wpt_product_table tr>th.this_column_sorted { div.wpt_column_sort table#wpt_table.wpt_product_table tr>th, div.wpt_column_sort table#wpt_table.wpt_product_table tr>th { position: relative; } -div.wpt_column_sort table#wpt_table.wpt_product_table tr>th::before, -div.wpt_column_sort table#wpt_table.wpt_product_table tr>th::after{ +div.wpt_column_sort table#wpt_table.wpt_product_table>thead>tr>th::before, +div.wpt_column_sort table#wpt_table.wpt_product_table>thead>tr>th::after{ font-family: "wptfontelo"; font-style: normal; @@ -376,7 +382,7 @@ div.wpt_column_sort table#wpt_table.wpt_product_table tr>th::after{ transform: translateY(-50%); } -div.wpt_column_sort table#wpt_table.wpt_product_table tr>th::after{ +div.wpt_column_sort table#wpt_table.wpt_product_table>thead>tr>th::after{ content: '\e842'; } div.wpt_column_sort table#wpt_table.wpt_product_table tr>th.wpt_quantity::before, @@ -385,12 +391,12 @@ div.wpt_column_sort table#wpt_table.wpt_product_table tr>th.wpt_quantity::after, div.wpt_column_sort table#wpt_table.wpt_product_table tr>th.wpt_check::after{ display: none; } -div.wpt_column_sort table#wpt_table.wpt_product_table tr>th.this_column_sorted[data-sort_type="ASC"]::before{ +div.wpt_column_sort table#wpt_table.wpt_product_table>thead>tr>th.this_column_sorted[data-sort_type="ASC"]::before{ content: '\e84d'; opacity: 0.8; margin-top: -6px; } -div.wpt_column_sort table#wpt_table.wpt_product_table tr>th.this_column_sorted[data-sort_type="DESC"]::before{ +div.wpt_column_sort table#wpt_table.wpt_product_table>thead>tr>th.this_column_sorted[data-sort_type="DESC"]::before{ content: '\e84c'; opacity: 0.8; margin-top: 6px; @@ -1639,7 +1645,13 @@ div.wpt_notice_board>div:after { line-height: 8px; padding: 7px; } - +div.wc-block-components-notice-banner:after, +div.wpt_notice_board>div.wc-block-components-notice-banner:after{ + position: inherit; + right: inherit; + top: auto; + display: none; +} .wpt_edit_table { display: flex; justify-content: flex-start; diff --git a/assets/js/custom.js b/assets/js/custom.js index 400fb40a..1e348fb0 100644 --- a/assets/js/custom.js +++ b/assets/js/custom.js @@ -8,7 +8,7 @@ jQuery(function($) { 'use strict'; $(document).ready(function() { - var notice_timeout = 3000; //In mili second + var notice_timeout = 2000; //In mili second if(WPT_DATA.notice_timeout){ notice_timeout = WPT_DATA.notice_timeout; } @@ -328,10 +328,10 @@ jQuery(function($) { var eachNoticeInnter = $(response); eachNoticeInnter.css('display','none'); if(response !== ''){ - noticeBoard.prepend(eachNoticeInnter); + noticeBoard.append(eachNoticeInnter); eachNoticeInnter.fadeIn(); setTimeout(function(){ - eachNoticeInnter.fadeOut('slow'); + eachNoticeInnter.fadeOut('medium'); eachNoticeInnter.remove(); },notice_timeout); //Detault 3000 } @@ -345,7 +345,7 @@ jQuery(function($) { } $('body').on('click','div.wpt_notice_board>div',function(){ - $(this).fadeOut('slow'); + $(this).fadeOut('medium'); }); /** @@ -1827,7 +1827,7 @@ jQuery(function($) { // $(document).on('keyup','.wpt_row input.input-text.qty.text', inputBoxChangeHandle); $(document).on('keyup','.wpt_row input.input-text.qty.text', oneSecondDelay(inputBoxChangeHandle,1500)); - $('body').on('change', '.wpt_row input.input-text.qty.text', inputBoxChangeHandle); + $(document.body).on('change', '.wpt_row input.input-text.qty.text', inputBoxChangeHandle); function inputBoxChangeHandle() { var temp_number = $(this).parents('tr.wpt_row').data('temp_number'); @@ -1840,7 +1840,7 @@ jQuery(function($) { Qty_Val = 0; } - $( thisRow + ' input.input-text.qty.text').val(Qty_Val); // input.input-text.qty.text + // $( thisRow + ' input.input-text.qty.text').val(Qty_Val); // input.input-text.qty.text $( thisRow ).attr('data-quantity', Qty_Val); $( thisRow + ' .wpt_action a.wpt_woo_add_cart_button').attr('data-quantity', Qty_Val); $( thisRow + ' .wpt_action a.add_to_cart_button').attr('data-quantity', Qty_Val); @@ -2517,6 +2517,7 @@ jQuery(function($) { //div.normal_table_wrapper table.normal_table $('div.advance_table_wrapper a.button.add_to_cart_all_selected').click(function() { + WPT_BlankNotice(); var temp_number = $(this).data('temp_number'); var allMessageBox = $('#table_id_' + temp_number + ' .wpt_custom_message'); @@ -2557,7 +2558,7 @@ jQuery(function($) { let eachProductData = 'product_id=' + product_id + '&' + form.serialize(); var obj = {}; - console.log(eachProductData); + eachProductData.replace(/([^=&]+)=([^&]*)/g, function(m, key, value) { obj[decodeURIComponent(key)] = decodeURIComponent(value); }); diff --git a/assets/js/wpt-control.js b/assets/js/wpt-control.js index 9fcfc8ec..c9fc4878 100644 --- a/assets/js/wpt-control.js +++ b/assets/js/wpt-control.js @@ -582,5 +582,16 @@ jQuery(function($) { } }); + + $(document.body).on('click','.caqv-open-modal-notfound',function(){ + // Show an alert + alert('Quick View by CodeAstrology plugin is required.\nPlease Install and Actvate it.\nPlugin will load on new tab.'); + + // Open another page in a new tab + var newPageUrl = 'https://wordpress.org/plugins/ca-quick-view/'; // Replace with the actual URL + window.open(newPageUrl, '_blank'); + }); + + }); }); diff --git a/framework/handle.php b/framework/handle.php index 3efbbe14..b8047044 100644 --- a/framework/handle.php +++ b/framework/handle.php @@ -50,69 +50,64 @@ public static function fail() */ public static function display_notice() { - + if( ! is_admin() ) return; // return; - //Today: 21.12.2023 - 1703142634 and added 9 days seccond - 777600 (little change actually) - if(time() > (1703142634 + 777600)) return; - if( defined( 'WPT_PRO_DEV_VERSION' ) ) return; - $temp_numb = rand(2,15); + //Today: 14.2.2024 - 1707890302 and added 20 days seccond - 1664000 (little change actually) + if( time() > ( 1707890302 + 1664000 ) ) return; - /** - * small notice for pro plugin, - * charect: - * 10 din por por - * - */ - - // $small_notc = new Notice('WP20-notice'); - // $small_notc->set_message(sprintf( __( "Are you enjoying %s? COUPON CODE: WP20 - up to 60%% OFF %s.", 'woo-product-table' ),"Woo Product Table (Product Table for Woocommerce)", "Click Here" )); - // $small_notc->set_diff_limit(10); - // if( method_exists($small_notc, 'set_location') ){ - // $small_notc->set_location('wpt_premium_image_top'); //wpt_premium_image_bottom - // } - // if($temp_numb == 3) $small_notc->show(); - - $coupon_Code = 'CHRISTMAS2023'; + if( defined( 'WPT_PRO_DEV_VERSION' ) ){ + self::display_notice_on_pro(); + return; + }; + + $temp_numb = rand(2,15); + + $coupon_Code = 'SPECIAL_OFFER_FEB_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 Black Friday offer. COUPON CODE: ' . $coupon_Code . ' - for (Woo Product Table Pro) Plugin'; + $my_message = 'Make Product Table easily with Discount by (Woo Product Table Pro) Plugin'; //COUPON CODE: ' . $coupon_Code . ' - for $offerNc = new Notice('wpt_'.$coupon_Code.'_offer'); - $offerNc->set_title( 'CHRISTMAS OFFER 50% DISCOUNT🍋 🍌' ) - ->set_diff_limit(3) + $offerNc->set_title( 'SPECIAL OFFER 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' => 'Claim Discount', + 'text' => 'Click Here to get Discount', 'type' => 'error', 'link' => 'https://wooproducttable.com/pricing/?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. - //somossa hocche - // 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(); } + private static function display_notice_on_pro() + { + + $temp_numb = rand(1, 35); + $coupon_Code = 'SPECIAL_OFFER_' . date('M_Y'); + $target = 'https://codeastrology.com/downloads/?discount=' . $coupon_Code . '&campaign=' . $coupon_Code . '&ref=1&utm_source=Default_Offer_LINK'; + $my_message = 'Speciall Discount on All CodeAstrology Products'; + $offerNc = new Notice('wpt_'.$coupon_Code.'_offer'); + $offerNc->set_title( 'SPECIAL OFFER 🍌' ) + ->set_diff_limit(10) + ->set_type('offer') + ->set_img( WPT_BASE_URL. 'assets/images/brand/social/web.png') + ->set_img_target( $target ) + ->set_message( $my_message ) + ->add_button([ + 'text' => 'Get WooCommerce Product with Discount', + 'type' => 'success', + 'link' => $target, + ]); + + if($temp_numb == 35) $offerNc->show(); + } + /** * Common Notice for Product table, where no need Pro version. * diff --git a/inc/handle/checkbox-box.php b/inc/handle/checkbox-box.php index 73d27b3c..8a609b11 100644 --- a/inc/handle/checkbox-box.php +++ b/inc/handle/checkbox-box.php @@ -19,7 +19,16 @@ public static function render( Shortcode $shortcode, string $position = 'header' // $text = ! empty( $text ) ? __( $text, 'woo-product-table' ) : __( 'Add to cart', 'woo-product-table' ); $selected_text = ! empty( $selected_text ) ? __( $selected_text, 'woo-product-table' ) : __( 'Add to Cart (Selected)','woo-product-table' ); $check_uncheck_text = ! empty( $check_uncheck_text ) ? __( $check_uncheck_text, 'woo-product-table' ) : __( 'Select All','woo-product-table' ); - + + /** + * Some site can be slow, then we will + * use filter hook 'wpt_multi_cart_faster' + * for adding fast in cart but without checkout all other + * + * Just doing it faster. + */ + $faster_carting = apply_filters( 'wpt_multi_cart_faster', '', $shortcode->table_id ); + $faster_carting = is_string( $faster_carting ) && ! empty( $faster_carting ) ? $faster_carting : ''; ?>
"; }elseif($thumb_variation == 'ca_quick_view') { - - $tag_start = "