Skip to content

Commit

Permalink
Merge pull request #45 from codersaiful/2.7.6.3
Browse files Browse the repository at this point in the history
2.7.6.3
  • Loading branch information
codersaiful authored Oct 15, 2020
2 parents 2a78832 + f9bad9c commit 4e004a8
Show file tree
Hide file tree
Showing 7 changed files with 89 additions and 6 deletions.
4 changes: 3 additions & 1 deletion assets/css/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,9 @@ div#wpt_configuration_form .ultraaddons-panel {
padding-bottom: 10px;
*/
}
div#wpt_configuration_form select.wpt_select2,#wpt_product_ids,span.select2.select2-container{width: 100% !important;}
div#wpt_configuration_form select.wpt_select2,
#wpt_product_ids,
#wpt_configuration_form span.select2.select2-container{width: 100% !important;}

span.wpt_column_arrow {
position: absolute;
Expand Down
21 changes: 19 additions & 2 deletions assets/js/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -1583,6 +1583,21 @@
$('#table_id_' + temp_number + ' .instance_search_input').val('');
}

/**
* Quote Button Revert on Change Variation
*/
$(window).on('wpt_changed_variations',function(e,Attrs){
if( Attrs.status ){
var product_id = Attrs.product_id;
var quoteElm = $('tr.product_id_'+product_id + ' td.wpt_quoterequest a.wpt_yith_add_to_quote_request');
var response_msg = quoteElm.data('msg');
quoteElm.html(response_msg.text);

quoteElm.closest('div.quoterequest').find('.yith_ywraq_add_item_response_message').remove();
quoteElm.closest('div.quoterequest').find('.yith_browse_link').remove();

}
});
/**
* For Add to Quote Plugin
* YITH add to Quote Request plugin
Expand All @@ -1599,7 +1614,9 @@
}
var msg = $(this).data('msg');
var response_msg = $(this).attr('data-response_msg');
if(response_msg !== ''){
var type = $(this).closest('tr.wpt_row').data('type')

if(type !== 'variable' && response_msg !== ''){
alert(response_msg);
$('.' + selector).html(msg.added);
return false;
Expand Down Expand Up @@ -1647,7 +1664,7 @@
//$('.' + selector + '+.yith_ywraq_add_item_browse_message').remove();
//$('.' + selector + '+.yith_ywraq_add_item_response_message').remove();
html = '<div class="yith_ywraq_add_item_response_message">' + response.message + '</div>';
html += '<a href="'+response.rqa_url+'" target="_blank">' + yith_browse_list + '</a>';
html += '<a class="yith_browse_link" href="'+response.rqa_url+'" target="_blank">' + yith_browse_list + '</a>';

$('.' + selector).parent().append( html ).show(); //response.label_browse
}else{
Expand Down
4 changes: 4 additions & 0 deletions includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,10 @@ function wpt_table_edit_link( $table_ID ) {
* @return type
*/
function wpt_args_manipulation_frontend( $args ){

if( is_page() || is_single() ){
return $args;
}
//MainTain for Archives Page
global $wpdb;
$query_vars = isset( $GLOBALS['wp_query']->query_vars ) ? $GLOBALS['wp_query']->query_vars : false;
Expand Down
33 changes: 33 additions & 0 deletions modules/build/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
( function( blocks, element ) {
var el = element.createElement;

var blockStyle = {
backgroundColor: '#900',
color: '#fff',
padding: '20px',
};
console.log(blocks);
blocks.registerBlockType( 'gutenberg-examples/example-01-basic', {
title: 'Example: Basic',
icon: 'universal-access-alt',
category: 'design',
example: {},
edit: function() {
return el(
'div',
{ style: blockStyle },
'Hello World, step 1 (from the editor).'
);
},
save: function() {
return el(
'div',
{ style: blockStyle },
'Hello World, step 1 (from the frontend).'
);
},
} );
}(
window.wp.blocks,
window.wp.element
) );
20 changes: 20 additions & 0 deletions modules/gutenberg.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

function gutenberg_examples_01_register_block() {

// automatically load dependencies and version
$asset_file = array('dependencies' => array('wp-blocks', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'a35cc1c098b69994c9c6d6dc1416bb90');

wp_register_script(
'gutenberg-examples-01-esnext',
plugins_url( 'build/index.js', __FILE__ ),
$asset_file['dependencies'],
$asset_file['version']
);

register_block_type( 'gutenberg-examples/example-01-basic', array(
'editor_script' => 'gutenberg-examples-01-esnext',
) );

}
add_action( 'init', 'gutenberg_examples_01_register_block' );
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ You can easily show specific category products. While creating new table click o
= 2.7.6 =
* Fixed: Product Weight calculation issue fixed.
* Added: Elementor Widget Features Added.
* Fixed: Table on Product Page (Not showing product issue) has solved

= 2.7.5 =
* Fixed: Chrome Scrollbar Issue fixed.
Expand Down
12 changes: 9 additions & 3 deletions woo-product-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -477,9 +477,15 @@ public function __construct() {
}
//Coll elementor Module, If installed Elementor
if ( did_action( 'elementor/loaded' ) ) {
include_once $this->path('BASE_DIR','modules/elementor.php'); //MObile or Table Defice Detector
}

include_once $this->path('BASE_DIR','modules/elementor.php'); //MObile or Table Defice Detector //gutenberg
}
/**
* Supporting Gutenberg
*
* @since 2.7.6
*/
//include_once $this->path('BASE_DIR','modules/gutenberg.php'); //gutenberg

if( !class_exists( 'Mobile_Detect' ) ){
include_once $this->path('BASE_DIR','modules/Mobile_Detect.php'); //MObile or Table Defice Detector
}
Expand Down

0 comments on commit 4e004a8

Please sign in to comment.