Skip to content

Commit

Permalink
Merge pull request #352 from codersaiful/3.5.7.0
Browse files Browse the repository at this point in the history
3.5.7.0
  • Loading branch information
codersaiful authored Dec 15, 2024
2 parents 9c9cd20 + b43bcab commit f64c83f
Show file tree
Hide file tree
Showing 16 changed files with 699 additions and 287 deletions.
15 changes: 14 additions & 1 deletion admin/admin-enqueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@
* @update 1.0.3
*/
function wpt_admin_enqueue(){
global $current_screen;
$s_id = isset( $current_screen->id ) ? $current_screen->id : '';

if( strpos( $s_id, 'wpt') === false ){
wpt_admin_notice_css_file_load();
return;
}

/**
* Customized fontello file
* @since 3.1.8.2
Expand All @@ -31,7 +38,7 @@ function wpt_admin_enqueue(){

wp_enqueue_style( 'wpt-admin', WPT_Product_Table::getPath( 'BASE_URL' ) . 'assets/css/admin.css', array('select2'), WPT_DEV_VERSION, 'all' );


wpt_admin_notice_css_file_load();

//jQuery file including. jQuery is a already registerd to WordPress
wp_enqueue_script( 'jquery' );
Expand Down Expand Up @@ -62,6 +69,12 @@ function wpt_admin_enqueue(){
add_action( 'admin_enqueue_scripts', 'wpt_admin_enqueue', 99 );


function wpt_admin_notice_css_file_load(){
//Actually Admin css file need, when there is no wpt on screen
wp_enqueue_style( 'wpt-admin-notice', WPT_Product_Table::getPath( 'BASE_URL' ) . 'assets/css/notice.css', array(), WPT_DEV_VERSION, 'all' );

}

if( !function_exists( 'wpt_admin_js_fast_load' ) ){
/**
* For first load, It's specially loaded
Expand Down
6 changes: 3 additions & 3 deletions admin/page/premium-link-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div class="row" style="align-items: inherit;flex-wrap: wrap;margin:0;">
<div class="wpt-pic-col col-lg-8">
<div class="col-lg-2">
<a href="https://codeastrology.com/coupons/?discount=CHRISTMAS2023&campaign=CHRISTMAS2023&ref=1&utm_source=Default_Offer_LINK" target="_blank">
<a href="https://codeastrology.com/coupons/?discount=BLACKFRIDAY2024&campaign=BLACKFRIDAY2024&ref=1&utm_source=Default_Offer_LINK" target="_blank">
<i class="premium_adv"></i>
</a>
</div>
Expand All @@ -15,12 +15,12 @@
<p>Checkout our Offer.</p>
</div>
<div class="col-lg-6">
<a href="https://codeastrology.com/coupons/?discount=CHRISTMAS2023&campaign=CHRISTMAS2023&ref=1&utm_source=Default_Offer_LINK" class="wpt-btn white round" style="color:black;background-color:white;" target="_blank">Get Offer and Bundle</a>
<a href="https://codeastrology.com/coupons/?discount=BLACKFRIDAY2024&campaign=BLACKFRIDAY2024&ref=1&utm_source=Default_Offer_LINK" class="wpt-btn white round" style="color:black;background-color:white;" target="_blank">Get Offer and Bundle</a>
</div>
</div>
<div class="wpt-sup-col col-lg-4">
<div class="half-containers money-back">
<a href="https://codeastrology.com/coupons/?discount=CHRISTMAS2023&campaign=CHRISTMAS2023&ref=1&utm_source=Default_Offer_LINK" target="_blank">
<a href="https://codeastrology.com/coupons/?discount=BLACKFRIDAY2024&campaign=BLACKFRIDAY2024&ref=1&utm_source=Default_Offer_LINK" target="_blank">
<span>Money Back Guarantee</span>
</a>
<p style="text-align: center;padding:15px;">100% No-Risk 30-Days Money Back Guarantee</p>
Expand Down
123 changes: 76 additions & 47 deletions admin/page/product-bulk-edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,63 +13,92 @@

<h1 class="wp-heading "></h1>
<div class="fieldwrap">


<?php
if( ! class_exists( 'PSSGP_Init' ) ){
if (! class_exists('PSSGP_Init')) {
?>
<a href="https://codeastrology.com/downloads/product-sync-master-sheet-premium/" target="_blank" style="margin-bottom: -30px;display:block;color: #d00;">Get <i>Sync Master Sheet Premium</i></a>
<?php
<a href="https://codeastrology.com/downloads/product-sync-master-sheet-premium/" target="_blank" style="margin-bottom: -30px;display:block;color: #d00;">Get <i>Sync Master Sheet Premium</i></a>
<?php
}
if( class_exists( '\PSSG_Sync_Sheet\App\Handle\Quick_Table' ) ){
if (class_exists('\PSSG_Sync_Sheet\App\Handle\Quick_Table')) {

$quckTable = new \PSSG_Sync_Sheet\App\Handle\Quick_Table();
$quckTable->display_table_full();
}else{
} else {



?>

<div class="wpt-section-panel supported-terms wpt-recomendation-area" id="wpt-recomendation-area">
<table class="wpt-my-table universal-setting">
<thead>
<tr>
<th class="wpt-inside">
<div class="wpt-table-header-inside">
<h3><?php echo esc_html__('Quick and Bulk Edit', 'wpt'); ?> <small class="wpt-small-title">Need to intall and activate following</small></h3>
</div>

</th>
<th>
<div class="wpt-table-header-right-side"></div>
</th>
</tr>
</thead>

<tbody>
<tr>
<td>
<div class="wqpmb-form-control">
<div class="form-label col-lg-12">
<?php

do_action( 'wpt_sync_plugin_recommendation' ); ?>
</div>

</div>
</td>
<td>
<div class="wqpmb-form-info">

<p>Highly Recommeded this plugin. Which will help you to bulk edit of your all product.</p>
</div>
</td>
</tr>
</tbody>
</table>

</div> <!--/.wpt-recomendation-area -->
<div class="wpt-section-panel supported-terms wpt-recomendation-area" id="wpt-recomendation-area">
<table class="wpt-my-table universal-setting">
<thead>
<tr>
<th class="wpt-inside">
<div class="wpt-table-header-inside">
<h3><?php echo esc_html__('Quick and Bulk Edit', 'wpt'); ?> <small class="wpt-small-title">Need to intall and activate following</small></h3>
</div>

</th>
<th>
<div class="wpt-table-header-right-side"></div>
</th>
</tr>
</thead>

<tbody>
<tr>
<td>
<div class="wqpmb-form-control">
<div class="form-label col-lg-12">

<p>
<h3>Features of <strong>Sync Master Sheet</strong> Plugin:</h3>
✅ <strong>Google Sheets Integration</strong> Live syncronize with Google Sheets<br>
🔥 <strong>Stock Synchronize for Multiple </strong> at a time, User able to syncronize multiple website from a Google Sheet<br>
✅ <strong>Two-Way Product Synchronize</strong> Site to Google sheet and Google Sheet to site syncronize.<br>
✅ <strong>Edit Product Details</strong> directly from Google Sheets, including Name/Title, Price, Regular Price, SKU, and Custom Fields<br>
✅ <strong>Add Unlimited New Products</strong> from Google Sheets<br>
✅ <strong>Bulk Edit Products</strong> using Google Sheets<br>
✅ <strong>Manage WooCommerce Custom Fields</strong> (Meta Data) with seamless sync<br>
✅ <strong>Integration with Secure Custom Fields</strong> Columns (previously known as ACF Plugin)<br>
✅ <strong>Update Product Status</strong> easily via Google Sheets<br>
✅ <strong>Quick Edit Options</strong> available directly in the plugin settings (including Table Title)<br>
✅ <strong>Show/Hide Columns</strong> in Google Sheets for a customized view<br>
✅ <strong>Export Unlimited Products</strong> to Google Sheets<br>
✅ <strong>Full Support for Variable Products</strong> in Google Sheets<br>
✅ <strong>Filter by Category</strong> (multiple filters supported) in Google Sheets<br>
✅ <strong>Column Sorting</strong> for better data management in Google Sheets<br>
✅ <strong>Display Product URLs</strong> in Google Sheets<br>
✅ <strong>View Product Edit Links</strong> directly from Google Sheets<br>

<strong><em><span style="text-decoration: underline;">Upcoming Features:</span></em></strong><br>
🌟 Synchronize and Edit <strong>Product Image</strong><br>
🌟 Synchronize and Edit Long and <strong>Short Descriptions</strong><br>
🌟 Synchronize and Edit <strong>Product Attributes</strong><br>
🌟 Synchronize and Edit <strong>Product Categories</strong><br>
🌟 Synchronize and Edit <strong>Product Tags</strong><br><br>
<strong>----------------------------------------------------</strong><br>
Easily manage and synchronize your WooCommerce product stock with the power of Google Sheets using our plugin – Product Stock Sync with Google Sheets for WooCommerce. This intuitive solution empowers you to streamline your inventory management effortlessly.
</p>
<?php

do_action('wpt_sync_plugin_recommendation'); ?>
</div>

</div>
</td>
<td>
<div class="wqpmb-form-info">

<p>Highly Recommeded this plugin. Which will help you to bulk edit of your all product.</p>
</div>
</td>
</tr>
</tbody>
</table>

</div> <!--/.wpt-recomendation-area -->
<?php
}
?>
Expand Down
3 changes: 3 additions & 0 deletions admin/tabs/search_n_filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@
$newArrs = [];
if( is_array( $taxonomy_keywords ) && is_array( $allTerms ) ){
foreach( $taxonomy_keywords as $ky ){
if( ! isset( $allTerms[$ky] ) ) continue;
$newArrs[$ky] = $allTerms[$ky];
}
$newArrs = array_merge($newArrs, $allTerms);
Expand Down Expand Up @@ -169,6 +170,7 @@
$newArrs = [];
if( is_array( $selected ) && is_array( $tax_object ) ){
foreach( $selected as $ky ){
if( ! isset( $tax_object[$ky] ) ) continue;
$newArrs[$ky] = $tax_object[$ky];
}

Expand Down Expand Up @@ -248,6 +250,7 @@
$newArrs = [];
if( is_array( $mini_filter_keywords ) && is_array( $allTerms ) ){
foreach( $mini_filter_keywords as $ky ){
if( ! isset( $allTerms[$ky] ) ) continue;
$newArrs[$ky] = $allTerms[$ky];
}
$newArrs = array_merge($newArrs, $allTerms);
Expand Down
145 changes: 1 addition & 144 deletions assets/css/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -1837,82 +1837,7 @@ p.lang-area-title {margin: 0;}



.notice.ca-notice.notice-offer {
background: #ffffff;
border: 0 none;
/* padding-bottom: 5px; */
}
.anywhere-notice.ca-notice.notice-offer {
padding: 3px 10px;
border: 0 none;
}

.notice.ca-notice.notice-offer .ca-msg-text p {
font-size: 16px;
padding: 0;
margin: 0;
}
.anywhere-notice.ca-notice.notice-offer .ca-msg-text p{font-size: 20px;}
.notice.ca-notice.notice-offer .ca-msg-text h1 {
color: #e91e63;
padding: 0;
margin: 0;
font-size: 15px;
}
.notice.ca-notice.notice-offer .ca-msg-text p.ca-links-collection {
clear: both;
margin: 5px 0 10px 0;
}
.notice.ca-notice.notice-offer a.ca-logo-link img,
.notice.ca-notice.notice-offer a.ca-logo-link img, .anywhere-notice.ca-notice.notice-offer .ca-logo img {
border-radius: 50%;
height: 75px;
width: 75px;
border: 3px solid #ffffff;
}
.anywhere-notice.ca-notice .ca-notice-dismiss{display: none !important;}
.notice.ca-notice.notice-offer .ca-msg-text p.ca-links-collection a {
padding: 5px 15px;
margin: 0;
clear: both;
}
.anywhere-notice {}

.anywhere-notice h1 {
font-size: 16px;
padding: 0;
margin: 0;
}

.anywhere-notice .ca-msg-text {
padding: 0;
margin: 0;
}

.anywhere-notice .ca-msg-text p {
padding: 0;
margin: 0;
font-size: 14px !important;
color: #007694;
float: left;
display: inherit;
width: fit-content;
/* background: gainsboro; */
}

.anywhere-notice p.ca-links-collection {
/* background: red; */
width: fit-content;
float: right;
position: absolute;
right: 15px;
top: 40%;
}

.anywhere-notice p.ca-links-collection a.ca-button {
padding: 5px 12px;
background: #ff9800;
}
p.wpt-shorcode-render-box {
font-size: 16px;
margin: 0;
Expand Down Expand Up @@ -2053,19 +1978,6 @@ span.wpt-expand {
cursor: pointer;
font-size: 15px;
}
li#menu-posts-wpt_product_table ul.wp-submenu.wp-submenu-wrap li>a>i {
color: white;
display: block;
background: #4caf50;
padding: 7px;
font-size: 120%;
transition: all .3s;
}
li#menu-posts-wpt_product_table ul.wp-submenu.wp-submenu-wrap:hover li>a>i {
color: #ff2626;
background: #000000;
padding-left: 18px;
}

label.switch.switch-big {
width: 200px !important;
Expand Down Expand Up @@ -2218,14 +2130,7 @@ div.wpt-content p.wpt-issue-submit a:hover {
background: rgb(204, 204, 204);
color: #4caf50;
}
.wpt-plugin-recommend-area .anywhere-notice.ca-notice.notice-success[data-notice_id="black-friday-22"] {
background: black;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
flex: 1 100%;
}


/********Configure Tab Area Start*********/

Expand Down Expand Up @@ -2479,51 +2384,3 @@ div.wpt_tab_content table th {
.wpt_column_setting_extra>div>label {
display: inline !important;
}

.fieldwrap .anywhere-notice .ca-msg-text p {
display: none;
}

.fieldwrap .anywhere-notice.ca-notice.notice-offer .ca-msg-text p.ca-links-collection {
display: block;
}

.fieldwrap .anywhere-notice.ca-notice.notice-offer .ca-msg-text h1 {
color: red;
}

.fieldwrap .anywhere-notice.ca-notice.notice-offer .ca-msg-text p.ca-links-collection a {
background: #4CAF50;
}



/* black Friday offer */
.notice.ca-notice.notice-offer[data-notice_id="wpt_CHRISTMAS2023_offer"] {
background: #ffffff8f;
color: #6e6e6e;
box-shadow: 1px -1px 30px #0000000a;
}
.notice.ca-notice.notice-offer[data-notice_id="wpt_CHRISTMAS2023_offer"] a.ca-logo-link img,
.notice.ca-notice.notice-offer[data-notice_id="wpt_CHRISTMAS2023_offer"] a.ca-logo-link img,
.notice.ca-notice.notice-offer[data-notice_id="wpt_CHRISTMAS2023_offer"] img,
.notice.ca-notice.notice-offer[data-notice_id="wpt_CHRISTMAS2023_offer"] a {
border: 0 none !important;
}
.notice.ca-notice.notice-offer[data-notice_id="wpt_CHRISTMAS2023_offer"] .ca-msg-text h1 {
color: #ff0000;
font-size: 19px;
}
.notice.ca-notice.notice-offer[data-notice_id="wpt_CHRISTMAS2023_offer"] .ca-msg-text p>b:last-child {
color: red;
}
.notice.ca-notice.notice-offer[data-notice_id="wpt_CHRISTMAS2023_offer"] .ca-msg-text p>b>i {
color: #4CAF50;
}
.notice.ca-notice.notice-offer[data-notice_id="wpt_CHRISTMAS2023_offer"] .ca-msg-text p {
padding-bottom: 5px;
}

.fieldwrap .anywhere-notice.ca-notice.notice-offer .ca-msg-text p.ca-links-collection {
display: none;
}
Loading

0 comments on commit f64c83f

Please sign in to comment.