Skip to content

Commit

Permalink
Merge pull request #98 from codersaiful/2.8.8.0
Browse files Browse the repository at this point in the history
2.8.8.0
  • Loading branch information
codersaiful authored May 23, 2021
2 parents 59ae96f + 73fead2 commit c4a12e3
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 15 deletions.
1 change: 1 addition & 0 deletions admin/menu_plugin_setting_link.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ function wpt_add_action_links($links) {
function wpt_admin_menu() {

add_submenu_page( 'edit.php?post_type=wpt_product_table', esc_html__( 'Configuration WPTpro', 'wpt_pro' ), esc_html__( 'Configure', 'wpt_pro' ), WPT_CAPABILITY, 'woo-product-table-config', 'wpt_configuration_page' );
add_submenu_page( 'edit.php?post_type=wpt_product_table', esc_html__( 'Woo Product Table Documentaion', 'wpt_pro' ), esc_html__( 'Documentation', 'wpt_pro' ), WPT_CAPABILITY, 'https://wooproducttable.com/documentation/' );
add_submenu_page( 'edit.php?post_type=wpt_product_table', esc_html__( 'Contribute to our Github Repository', 'wpt_pro' ), sprintf( esc_html__( 'Github %s Repo%s', 'wpt_pro' ), '<span style="color:#ffff21;">', '</span>'), WPT_CAPABILITY, 'https://github.com/codersaiful/woo-product-table' );
add_submenu_page( 'edit.php?post_type=wpt_product_table', esc_html__( 'FAQ & Support page - Contact With US', 'wpt_pro' ), sprintf( esc_html__( 'FAQ %s& Contact%s', 'wpt_pro' ), '<span style="color:#ff8921;">', '</span>'), WPT_CAPABILITY, 'wpt_fac_contact_page', 'wpt_fac_support_page' );
add_submenu_page( 'edit.php?post_type=wpt_product_table', esc_html__( 'GET PRO VERSION', 'wpt_pro' ), __( '<i>Get <strong>Pro</strong></i>', 'wpt_pro' ), WPT_CAPABILITY, 'https://codecanyon.net/item/woo-product-table-pro/20676867?ref=CodeAstrology&utm_source=WPT_Installed_Plugin' );
Expand Down
2 changes: 1 addition & 1 deletion admin/tabs/basics.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@
</th>
<td>
<label class="switch">
<input name="column_settings[table_head]" type="checkbox" id="wpt_table_head_enable" <?php echo isset( $column_settings['table_head'] ) ? 'checked="checked"' : ''; ?>>
<input name="basics[table_head]" type="checkbox" id="wpt_table_head_enable" <?php echo isset( $meta_basics['table_head'] ) ? 'checked="checked"' : ''; ?>>
<div class="slider round"><!--ADDED HTML -->
<span class="on">Hide</span><span class="off">Show</span><!--END-->
</div>
Expand Down
4 changes: 2 additions & 2 deletions admin/tabs/inc-column/column-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
if( $meta_enable_column_array && !empty( $meta_enable_column_array ) && is_array( $meta_enable_column_array ) ){
$enabled_class = $checked_attribute = '';
if( in_array( $keyword, array_keys( $meta_enable_column_array ) ) ){
$enabled_class = 'enabled';
$enabled_class = 'enabled first-time-enabled';
$checked_attribute = ' checked="checked"';
}
}else{
$enabled_class = 'enabled';
$enabled_class = 'enabled first-time-enabled';
$checked_attribute = ' checked="checked"';
if( !in_array( $keyword, $default_enable_array ) ){
$enabled_class = $checked_attribute = '';
Expand Down
4 changes: 2 additions & 2 deletions assets/css/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ ul#wpt_keyword_hide_mobile li>span.handle.checkbox_handle>input.enabled
padding: 0;
background: #26d4ff;
position: absolute;
top: 32%;
top: 24px;
left: 32%;
}
ul#wpt_column_sortable li>span.handle.checkbox_handle>input,
Expand Down Expand Up @@ -562,7 +562,7 @@ ul#wpt_column_sortable>li.wpt_sortable_peritem {
box-shadow: 0px 1px 16px 0 #bbbbbb9c;
}
ul#wpt_column_sortable li.wpt_sortable_peritem.enabled>span.handle, ul#wpt_keyword_hide_mobile li>span.handle {
background: #e8e8e840 no-repeat center center;
background: #e8e8e840 no-repeat center 20px;
}
.checkbox_parent {
display: inline-block;
Expand Down
5 changes: 4 additions & 1 deletion assets/js/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,10 @@
targetLiSelector.removeClass('enabled');
});
}
//
// targetLiSelector.fadeIn(function(){
// $(this).css('opacity','0.3');
// });
});

detect_responsive_stats();
Expand Down Expand Up @@ -617,7 +621,6 @@
},
success: function(data) {
$('#wpt-export-textarea').html(data);
$('#wpt-import-textarea').html(data);
},
error: function() {

Expand Down
4 changes: 4 additions & 0 deletions assets/js/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@
$( document ).trigger( 'cart_page_refreshed' );
$( document ).trigger( 'cart_totals_refreshed' );
$( document ).trigger( 'wc_fragments_refreshed' );
$('.wpt_row_product_id_' + product_id + ' .input-text').trigger('change');
},
success: function(response) {

Expand Down Expand Up @@ -795,6 +796,9 @@
//Set SKU live based on Variations
setValueToTargetTD_IfAvailable('sku', targetAttributeObject.sku);

// Set live stock status based onChange variation
setValueToTargetTD_IfAvailable('stock', targetAttributeObject.availability_html);

//Set Total Price display_price
var targetQty = $('#table_id_' + temp_number + ' #product_id_' + product_id + ' wpt_quantity .quantity input.input-text.qty.text').val();
if(!targetQty){
Expand Down
7 changes: 4 additions & 3 deletions includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ function wpt_product_title_column_add( $_device_name, $column_settings ){
$description_off = $description_off == 'off' ? 'checked="checked"' : '';
?>
<div class="description_off_wrapper">
<label for="description_off<?php echo $_device_name; ?>"><input id="description_off<?php echo $_device_name; ?>" title="Disable Deactivate Description from Title Column" name="column_settings[description_off]" id="description_off" class="description_off" type="checkbox" value="off" <?php echo $description_off; ?>> Disable Description</label>
<label for="description_off<?php echo $_device_name; ?>"><input id="description_off<?php echo $_device_name; ?>" title="Disable Deactivate Description from Title Column" name="column_settings<?php echo $_device_name; ?>[description_off]" id="description_off" class="description_off" type="checkbox" value="off" <?php echo $description_off; ?>> Disable Description</label>
</div>
<div class="title_variation">
<label for="link<?php echo $_device_name; ?>"><input type="radio" id="link<?php echo $_device_name; ?>" name="column_settings<?php echo $_device_name; ?>[title_variation]" value="link" <?php echo !$title_variation || $title_variation == 'link' ? 'checked' : ''; ?>> Link Enable</label>
Expand Down Expand Up @@ -1383,9 +1383,10 @@ function wpt_shop_archive_sorting_args( $args ){
*
* @date 3.2.2021
* @by Saiful
*
* Priority Added PHP_INT_MAX Version: 2.8.8.0 date 12.5.2021
*/
add_filter( 'astra_add_to_cart_quantity_btn_enabled', '__return_false' );

add_filter( 'astra_add_to_cart_quantity_btn_enabled', '__return_false', PHP_INT_MAX );


if( !function_exists( 'wpt_ajax_on_first_load' ) ){
Expand Down
2 changes: 1 addition & 1 deletion includes/shortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function wpt_shortcode_generator( $atts = false ) {
}

//Collumn Setting part
$table_head = !isset( $column_settings['table_head'] ) ? true : false; //Table head availabe or not
$table_head = !isset( $basics['table_head'] ) ? true : false; //Table head availabe or not

$table_column_keywords = $enabled_column_array;//array_keys( $enabled_column_array );
//$table_column_keywords = array_keys( $enabled_column_array );
Expand Down
12 changes: 11 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: codersaiful,codeastrology
Donate link: https://codecanyon.net/item/woo-product-table-pro/20676867?ref=CodeAstrology&utm_source=WPT_Installed_DonateLink
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.1
Tested up to: 5.7.2
Requires PHP: 5.6
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -156,6 +156,16 @@ You can easily show specific category products. While creating new table click o

== Changelog ==

= 2.8.8 =
* move icon and checkbox position at topside always
* Priority Added PHP_INT_MAX Version: 2.8.8.0 date 12.5.2021
* first-time-enabled class added for first time load element
* Variation's stock message showing issue fixed
* Documentation menu added in submenu
* import box issue fixed
* Description Hide on product column issue fixed
* Ajax Save change issue fixed

= 2.8.7 =
* Product Table Preview added
* Export/Import Features Added
Expand Down
15 changes: 11 additions & 4 deletions woo-product-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
* Author URI: https://codecanyon.net/user/codeastrology
* Tags: woocommerce product list,woocommerce product table, wc product table, product grid view, inventory, shop product table
*
* Version: 2.8.7
* Version: 2.8.8
* Requires at least: 4.0.0
* Tested up to: 5.7.1
* Tested up to: 5.7.2
* WC requires at least: 3.0.0
* WC tested up to: 5.2.2
* WC tested up to: 5.3.0
*
* Text Domain: wpt_pro
* Domain Path: /languages/
Expand All @@ -30,7 +30,7 @@
}

if( !defined( 'WPT_DEV_VERSION' ) ){
define( 'WPT_DEV_VERSION', '2.8.7.0' );
define( 'WPT_DEV_VERSION', '2.8.8.0' );
}

if( !defined( 'WPT_CAPABILITY' ) ){
Expand Down Expand Up @@ -562,6 +562,13 @@ public function __construct() {
}

public function ultraaddons_notice() {
$config = get_option( 'wpt_configure_options' );
$disable_plugin_noti = !isset( $config['disable_plugin_noti'] ) ? true : false;
$disable_plugin_noti = apply_filters( 'wpto_disable_recommend_noti', $disable_plugin_noti );
if ( $disable_plugin_noti || ! current_user_can( 'activate_plugins' ) ) {
return;
}

$plugin_url = 'https://wordpress.org/plugins/ultraaddons-elementor-lite/';
$plugin_file = 'ultraaddons-elementor-lite/init.php';
$plugin_slug = 'ultraaddons-elementor-lite';
Expand Down

0 comments on commit c4a12e3

Please sign in to comment.