Skip to content

Commit

Permalink
Merge pull request #319 from codersaiful/3.4.7.4
Browse files Browse the repository at this point in the history
3.4.7.4
  • Loading branch information
codersaiful authored Mar 6, 2024
2 parents 3372220 + b37252c commit fa985bf
Show file tree
Hide file tree
Showing 15 changed files with 132 additions and 80 deletions.
12 changes: 6 additions & 6 deletions admin/page-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ), __( '<i>Get <strong>Pro</strong></i>', 'woo-product-table' ), WPT_CAPABILITY, 'https://wooproducttable.com/pricing/' );
add_submenu_page( $this->main_slug, esc_html__( 'GET PRO VERSION', 'woo-product-table' ), __( 'Get <strong>Pro</strong>', 'woo-product-table' ), 'read', 'https://wooproducttable.com/pricing/' );
}
// var_dump($this->license);

Expand Down
6 changes: 6 additions & 0 deletions assets/css/new-admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions assets/css/override-root.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
26 changes: 19 additions & 7 deletions assets/css/universal.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand All @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
15 changes: 8 additions & 7 deletions assets/js/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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
}
Expand All @@ -345,7 +345,7 @@ jQuery(function($) {
}

$('body').on('click','div.wpt_notice_board>div',function(){
$(this).fadeOut('slow');
$(this).fadeOut('medium');
});

/**
Expand Down Expand Up @@ -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');
Expand All @@ -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);
Expand Down Expand Up @@ -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');
Expand Down Expand Up @@ -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);
});
Expand Down
11 changes: 11 additions & 0 deletions assets/js/wpt-control.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});


});
});
Loading

0 comments on commit fa985bf

Please sign in to comment.