Skip to content

Commit

Permalink
Merge pull request #328 from codersaiful/3.4.9.0
Browse files Browse the repository at this point in the history
3.4.9.0
  • Loading branch information
codersaiful authored Apr 30, 2024
2 parents 1778967 + d65888f commit b3818e8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion admin/post_metabox.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ function wpt_redirect_after_save($location, $post_id) {
// Check if it's the desired post type
if (get_post_type($post_id) == 'wpt_product_table') {
// Append the desired anchor to the redirect location
$location = add_query_arg('message', 'updated', $location) . '#' . $wpt_last_active_tab;
$location = add_query_arg('message', 'updated', $location);
$location = add_query_arg('wpt_active_tab', $wpt_last_active_tab, $location);
}
return $location;
Expand Down
2 changes: 1 addition & 1 deletion admin/post_metabox_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
using: setLastActiveTab(tabName); from js code
-->
<!-- add_filter('redirect_post_location', 'wpt_redirect_after_save', 10, 2); see from post_metabox.php file -->
<input type="hidden" name="wpt_last_active_tab" id="wpt-last-active-tab" value="">
<input type="hidden" name="wpt_last_active_tab" id="wpt-last-active-tab" value="<?php echo esc_attr( $wpt_active_tab ) ?>">
<?php
//Now start for Tab Content
$active_tab_content = 'tab-content-active';
Expand Down
4 changes: 2 additions & 2 deletions assets/js/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,8 @@ jQuery.fn.extend({
var selectLinkTab = $(selectLinkTabSelector);
var selectTabContent = $(selectTabContentSelector);
var tabName = window.location.hash.substr(1);
setLastActiveTab(tabName);
if (tabName) {
setLastActiveTab(tabName);
removingActiveClass();
$('body.wpt_admin_body #wpt_configuration_form #' + tabName).addClass('tab-content-active');
$('body.wpt_admin_body #wpt_configuration_form .nav-tab-wrapper a.wpt_nav_tab.wpt_nav_for_' + tabName).addClass('nav-tab-active');
Expand All @@ -402,7 +402,7 @@ jQuery.fn.extend({
setLastActiveTab(targetTabContent);
// Detect if pushState is available
if(history.pushState) {
history.pushState(null, null, $(this).attr('href'));
// history.pushState(null, null, $(this).attr('href'));
}

removingActiveClass();
Expand Down
7 changes: 4 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
=== Product Table for WooCommerce by CodeAstrology (wooproducttable.com) ===
Contributors: codersaiful,codeastrology,mdibrahimk48,ultraaddons,unikforce,rafiul17,fazlebari,phpcoderhannan,fatimakhatungit
Contributors: codersaiful,,mdibrahimk48,ultraaddons,unikforce,rafiul17,fazlebari
Donate link: https://donate.stripe.com/4gw2bB2Pzdjd8mYfYZ
Tags: wc product table, wooproducttable, woo product table,woocommerce product table, product table, wc table, quick order table, wholesale table, restaurants table,woo-product-table
Tags: wc product table, woo table, woo product table,woocommerce product table, product table
Requires at least: 4.0.0
Tested up to: 6.5.0
Stable tag: 3.4.8
Requires PHP: 5.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

WooCommerce product table plugin helps you to display your products in a searchable table layout with filters. Boost conversions & sales. Woo Product Table is best for Wholesale.
Helps you to display your products in a searchable table layout with filters. Woo Product Table is best for Wholesale.

== Description ==
(**Woo Product Table**) Product Table plugin helps you to display your WooCommerce products in a searchable table layout with filters. Add a table on any page or post via a shortcode. You can create tables as many as you want.
Expand Down Expand Up @@ -335,6 +335,7 @@ You can easily show specific category products. While creating new table click o

= 3.4.9 =
* Variation List showing on Shop Page for Variable product issue has been fixed
* Fixed: last-active-tab issue has been fixed.
* Bug fixed
* Code Optimized

Expand Down
8 changes: 4 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://wooproducttable.com/?utm_source=WPT+Plugin+Dashboard&utm_medium=Free+Version
* Tags: wooproducttable, woocommerce product list,woocommerce product table, wc product table, product grid view, inventory, shop product table
*
* Version: 3.4.8
* Version: 3.4.9
* Requires at least: 4.0.0
* Tested up to: 6.5.0
* Tested up to: 6.5.2
* WC requires at least: 5.0.0
* WC tested up to: 8.7.0
* WC tested up to: 8.7.2
*
*
* Text Domain: woo-product-table
Expand All @@ -33,7 +33,7 @@
}

if( ! defined( 'WPT_DEV_VERSION' ) ){
define( 'WPT_DEV_VERSION', '3.4.7.5' );
define( 'WPT_DEV_VERSION', '3.4.8.0' );
}

if( ! defined( 'WPT_CAPABILITY' ) ){
Expand Down

0 comments on commit b3818e8

Please sign in to comment.