Changeset 3344126
- Timestamp:
- 08/13/2025 05:00:19 PM (8 months ago)
- Location:
- product-variant-table-for-woocommerce
- Files:
-
- 51 added
- 5 edited
-
tags/1.7.4 (added)
-
tags/1.7.4/admin (added)
-
tags/1.7.4/admin/css (added)
-
tags/1.7.4/admin/css/pvtfw_backend.css (added)
-
tags/1.7.4/admin/js (added)
-
tags/1.7.4/admin/js/pvtfw_backend.js (added)
-
tags/1.7.4/inc (added)
-
tags/1.7.4/inc/admin (added)
-
tags/1.7.4/inc/admin/class_pvtfw_advance.php (added)
-
tags/1.7.4/inc/admin/class_pvtfw_form.php (added)
-
tags/1.7.4/inc/admin/class_pvtfw_settings.php (added)
-
tags/1.7.4/inc/admin/class_pvtfw_styling.php (added)
-
tags/1.7.4/inc/class_pvtfw_common.php (added)
-
tags/1.7.4/inc/compatibility.php (added)
-
tags/1.7.4/inc/frontend (added)
-
tags/1.7.4/inc/frontend/class_pvtfw_allocation.php (added)
-
tags/1.7.4/inc/frontend/class_pvtfw_available_btn.php (added)
-
tags/1.7.4/inc/frontend/class_pvtfw_cart.php (added)
-
tags/1.7.4/inc/frontend/class_pvtfw_print_table.php (added)
-
tags/1.7.4/inc/style.php (added)
-
tags/1.7.4/inc/table-parts (added)
-
tags/1.7.4/inc/table-parts/content-tbody.php (added)
-
tags/1.7.4/inc/table-parts/content-thead.php (added)
-
tags/1.7.4/inc/wpxtension (added)
-
tags/1.7.4/inc/wpxtension/wpx-menu.php (added)
-
tags/1.7.4/inc/wpxtension/wpx-setting-fields.php (added)
-
tags/1.7.4/inc/wpxtension/wpx-sidebar.php (added)
-
tags/1.7.4/inc/wpxtension/wpxtension-admin-rtl.css (added)
-
tags/1.7.4/inc/wpxtension/wpxtension-admin.css (added)
-
tags/1.7.4/inc/wpxtension/wpxtension-admin.min-rtl.css (added)
-
tags/1.7.4/inc/wpxtension/wpxtension-admin.min.css (added)
-
tags/1.7.4/languages (added)
-
tags/1.7.4/languages/product-variant-table-for-woocommerce.pot (added)
-
tags/1.7.4/product-variant-table-for-woocommerce.php (added)
-
tags/1.7.4/public (added)
-
tags/1.7.4/public/css (added)
-
tags/1.7.4/public/css/pvtfw_frontend.css (added)
-
tags/1.7.4/public/css/pvtfw_table_breakdown.css (added)
-
tags/1.7.4/public/font (added)
-
tags/1.7.4/public/font/font (added)
-
tags/1.7.4/public/font/font/fontello.eot (added)
-
tags/1.7.4/public/font/font/fontello.svg (added)
-
tags/1.7.4/public/font/font/fontello.ttf (added)
-
tags/1.7.4/public/font/font/fontello.woff (added)
-
tags/1.7.4/public/font/font/fontello.woff2 (added)
-
tags/1.7.4/public/font/fontello.css (added)
-
tags/1.7.4/public/js (added)
-
tags/1.7.4/public/js/pvtfw_frontend.js (added)
-
tags/1.7.4/public/js/pvtfw_subtotal_calc.js (added)
-
tags/1.7.4/readme.txt (added)
-
tags/1.7.4/uninstall.php (added)
-
trunk/inc/frontend/class_pvtfw_cart.php (modified) (2 diffs)
-
trunk/languages/product-variant-table-for-woocommerce.pot (modified) (2 diffs)
-
trunk/product-variant-table-for-woocommerce.php (modified) (4 diffs)
-
trunk/public/css/pvtfw_frontend.css (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
product-variant-table-for-woocommerce/trunk/inc/frontend/class_pvtfw_cart.php
r3318369 r3344126 30 30 ?> 31 31 <script id="pvtfw-add-to-cart-js" type="text/javascript"> 32 33 /** 34 * To avoid polluting the global scope or clashing with other plugins, using a namespace `ProductVariationTable` 35 * 36 * We will store the previous quantity values here. 37 * 38 */ 39 window.ProductVariationTable = window.ProductVariationTable || {}; 40 window.ProductVariationTable.previousQty = {}; 41 32 42 jQuery(document).ready(function($) { 43 44 // Pushing the initial quatity values to store. 45 $('table.variant tbody input.qty').each(function() { 46 const $input = $(this); 47 const productId = $input.attr('id'); 48 if (productId) { 49 window.ProductVariationTable.previousQty[productId] = $input.val(); 50 } 51 }); 52 33 53 $(document.body).on('click', '.pvtfw_variant_table_cart_btn', function(e) { 34 54 e.preventDefault(); … … 108 128 $('.woocommerce-notices-wrapper .woocommerce-message').remove(); 109 129 } 110 130 131 // Reset quantity field 132 if( variant_id && window.ProductVariationTable.previousQty[variant_id] ){ 133 $thisbutton.closest('tr').find('input.qty').val( window.ProductVariationTable.previousQty[variant_id] ).trigger('change'); // Triggering `change` event to calculate the subTotal column value 134 } 135 136 // Then initiate scroll behavior 111 137 <?php $scrollToTop = PVTFW_COMMON::pvtfw_get_options()->scrollToTop; if($scrollToTop == "on"): ?> 112 138 $("html, body").animate({ -
product-variant-table-for-woocommerce/trunk/languages/product-variant-table-for-woocommerce.pot
r3318369 r3344126 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: PVT - Product Variation Table for WooCommerce 1.7. 3\n"5 "Project-Id-Version: PVT - Product Variation Table for WooCommerce 1.7.4\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/product-variant-table-for-woocommerce\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2025-0 6-26T12:34:30+00:00\n"12 "POT-Creation-Date: 2025-08-13T05:33:21+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.11.0\n" -
product-variant-table-for-woocommerce/trunk/product-variant-table-for-woocommerce.php
r3318369 r3344126 8 8 Text Domain: product-variant-table-for-woocommerce 9 9 Domain Path: /languages 10 Version: 1.7. 310 Version: 1.7.4 11 11 Requires at least: 4.7.0 12 12 Requires PHP: 5.6.20 13 13 WC requires at least: 3.0.0 14 WC tested up to: 9.914 WC tested up to: 10.1.0 15 15 License: GPLv2 or later 16 16 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 33 33 */ 34 34 35 define("PVTFW_VARIANT_TABLE_VERSION", '1.7. 3');35 define("PVTFW_VARIANT_TABLE_VERSION", '1.7.4'); 36 36 define("PVTFW_REQUIRED_PRO_VERSION", '1.7.0'); 37 37 define("PVTFW_DIR", plugin_dir_path(__FILE__) ); … … 103 103 } 104 104 105 /**106 * ====================================================107 * Load Text Domain Folder108 * ====================================================109 **/110 function load_textdomain() {111 load_plugin_textdomain( "product-variant-table-for-woocommerce", false, basename( dirname( __FILE__ ) )."/languages" );112 }113 114 105 115 106 /** … … 154 145 */ 155 146 public function hooks() { 156 add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) );157 147 add_action( 'admin_init', array( $this, 'register_settings' ) ); 158 148 -
product-variant-table-for-woocommerce/trunk/public/css/pvtfw_frontend.css
r3245837 r3344126 320 320 padding: 0; 321 321 } 322 323 /* Table Header Style */ 324 .pvtfw-table-heading-continer{ 325 clear: both; 326 } -
product-variant-table-for-woocommerce/trunk/readme.txt
r3318369 r3344126 5 5 Tested up to: 6.8 6 6 Requires PHP: 5.6.20 7 Stable tag: 1.7. 37 Stable tag: 1.7.4 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 179 179 == Changelog == 180 180 181 = 1.7.3 [26-06-2025] Thursday = 182 * Update: Script for decimal values when used `hide-trailing-zeros-on-prices`. 183 * Update: Compatibility with `Fast Cart for WooCommerce` plugin's `Popup` feature. 184 * Compatibility: WooCommerce 9.9 & WordPress 6.8. 181 = 1.7.4 [13-08-2025] Wednesday = 182 * Update: Script (to return the first quantity value after successful carted). 183 * Remove: `load_plugin_textdomain()` as it has been discouraged since WordPress version 4.6. When a plugin is hosted on WordPress.org, it is not necessary to manually include this function call for translations under the plugin slug. WordPress will automatically load the translations when needed. 184 * Fix: Style (to display table header in correct place). 185 * Compatibility: WooCommerce 10.1.0. 185 186 186 187
Note: See TracChangeset
for help on using the changeset viewer.