Changeset 3318369
- Timestamp:
- 06/26/2025 04:23:36 PM (9 months ago)
- Location:
- product-variant-table-for-woocommerce
- Files:
-
- 51 added
- 8 edited
-
tags/1.7.3 (added)
-
tags/1.7.3/admin (added)
-
tags/1.7.3/admin/css (added)
-
tags/1.7.3/admin/css/pvtfw_backend.css (added)
-
tags/1.7.3/admin/js (added)
-
tags/1.7.3/admin/js/pvtfw_backend.js (added)
-
tags/1.7.3/inc (added)
-
tags/1.7.3/inc/admin (added)
-
tags/1.7.3/inc/admin/class_pvtfw_advance.php (added)
-
tags/1.7.3/inc/admin/class_pvtfw_form.php (added)
-
tags/1.7.3/inc/admin/class_pvtfw_settings.php (added)
-
tags/1.7.3/inc/admin/class_pvtfw_styling.php (added)
-
tags/1.7.3/inc/class_pvtfw_common.php (added)
-
tags/1.7.3/inc/compatibility.php (added)
-
tags/1.7.3/inc/frontend (added)
-
tags/1.7.3/inc/frontend/class_pvtfw_allocation.php (added)
-
tags/1.7.3/inc/frontend/class_pvtfw_available_btn.php (added)
-
tags/1.7.3/inc/frontend/class_pvtfw_cart.php (added)
-
tags/1.7.3/inc/frontend/class_pvtfw_print_table.php (added)
-
tags/1.7.3/inc/style.php (added)
-
tags/1.7.3/inc/table-parts (added)
-
tags/1.7.3/inc/table-parts/content-tbody.php (added)
-
tags/1.7.3/inc/table-parts/content-thead.php (added)
-
tags/1.7.3/inc/wpxtension (added)
-
tags/1.7.3/inc/wpxtension/wpx-menu.php (added)
-
tags/1.7.3/inc/wpxtension/wpx-setting-fields.php (added)
-
tags/1.7.3/inc/wpxtension/wpx-sidebar.php (added)
-
tags/1.7.3/inc/wpxtension/wpxtension-admin-rtl.css (added)
-
tags/1.7.3/inc/wpxtension/wpxtension-admin.css (added)
-
tags/1.7.3/inc/wpxtension/wpxtension-admin.min-rtl.css (added)
-
tags/1.7.3/inc/wpxtension/wpxtension-admin.min.css (added)
-
tags/1.7.3/languages (added)
-
tags/1.7.3/languages/product-variant-table-for-woocommerce.pot (added)
-
tags/1.7.3/product-variant-table-for-woocommerce.php (added)
-
tags/1.7.3/public (added)
-
tags/1.7.3/public/css (added)
-
tags/1.7.3/public/css/pvtfw_frontend.css (added)
-
tags/1.7.3/public/css/pvtfw_table_breakdown.css (added)
-
tags/1.7.3/public/font (added)
-
tags/1.7.3/public/font/font (added)
-
tags/1.7.3/public/font/font/fontello.eot (added)
-
tags/1.7.3/public/font/font/fontello.svg (added)
-
tags/1.7.3/public/font/font/fontello.ttf (added)
-
tags/1.7.3/public/font/font/fontello.woff (added)
-
tags/1.7.3/public/font/font/fontello.woff2 (added)
-
tags/1.7.3/public/font/fontello.css (added)
-
tags/1.7.3/public/js (added)
-
tags/1.7.3/public/js/pvtfw_frontend.js (added)
-
tags/1.7.3/public/js/pvtfw_subtotal_calc.js (added)
-
tags/1.7.3/readme.txt (added)
-
tags/1.7.3/uninstall.php (added)
-
trunk/inc/admin/class_pvtfw_settings.php (modified) (1 diff)
-
trunk/inc/frontend/class_pvtfw_cart.php (modified) (4 diffs)
-
trunk/inc/frontend/class_pvtfw_print_table.php (modified) (9 diffs)
-
trunk/languages/product-variant-table-for-woocommerce.pot (modified) (6 diffs)
-
trunk/product-variant-table-for-woocommerce.php (modified) (2 diffs)
-
trunk/public/css/pvtfw_table_breakdown.css (modified) (1 diff)
-
trunk/public/js/pvtfw_frontend.js (modified) (5 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
product-variant-table-for-woocommerce/trunk/inc/admin/class_pvtfw_settings.php
r3247960 r3318369 57 57 if ( ! current_user_can( 'manage_options' ) ) { 58 58 return; 59 }60 // Checking nonce of option page form submission61 if ( isset($_POST['action']) && !wp_verify_nonce( sanitize_key( wp_unslash( 'action', 'action' ) ) ) ){62 wp_die();63 59 } 64 60 -
product-variant-table-for-woocommerce/trunk/inc/frontend/class_pvtfw_cart.php
r3212688 r3318369 56 56 quantity: qty, 57 57 58 variation_id: variant_id, 59 60 pvt_security: '<?php echo esc_attr( wp_create_nonce( 'pvtfw-single-cart-nonce' ) ); ?>' 58 variation_id: variant_id 61 59 }; 62 60 … … 161 159 if ($passed_validation && WC()->cart->add_to_cart($product_id, $quantity, $variation_id) && 'publish' === $product_status) { 162 160 163 do_action('pvtfw_woocommerce_ajax_added_to_cart', $product_id); 164 165 if ('yes' === get_option('pvtfw_woocommerce_cart_redirect_after_add')) { 166 167 return wc_add_to_cart_message(array($product_id => $quantity), true); 168 } 169 170 wc_add_to_cart_message([ $variation_id => $quantity ], true); 171 WC_AJAX::get_refreshed_fragments(); 161 do_action('woocommerce_ajax_added_to_cart', $product_id); 162 163 if ('yes' === get_option('pvtfw_woocommerce_cart_redirect_after_add')) { 164 165 return wc_add_to_cart_message(array($product_id => $quantity), true); 166 } 167 168 wc_add_to_cart_message([ $variation_id => $quantity ], true); 169 170 WC_AJAX::get_refreshed_fragments(); 172 171 173 172 } … … 185 184 // echo wp_send_json($data); 186 185 wc_add_to_cart_message( $product_id, $quantity , $return = false ); 187 WC_AJAX::get_refreshed_fragments(); 188 189 } 186 WC_AJAX::get_refreshed_fragments(); 187 188 } 190 189 191 190 wp_die(); … … 202 201 $cartNotice = PVTFW_COMMON::pvtfw_get_options()->cartNotice; 203 202 204 $all_notices = WC()->session->get( 'wc_notices', array() ); 205 206 207 $notice_types = apply_filters( 'woocommerce_notice_types', array( 'error', 'success', 'notice' ) ); 208 209 if($cartNotice == 'on'): 210 ob_start(); 211 foreach ( $notice_types as $notice_type ) { 212 if ( wc_notice_count( $notice_type ) > 0 ) { 213 wc_get_template( "notices/{$notice_type}.php", array( 214 'notices' => array_filter( $all_notices[ $notice_type ] ), 215 ) ); 216 } 203 $all_notices = WC()->session->get( 'wc_notices', array() ); 204 205 206 $notice_types = apply_filters( 'woocommerce_notice_types', array( 'error', 'success', 'notice' ) ); 207 208 if($cartNotice == 'on'): 209 ob_start(); 210 foreach ( $notice_types as $notice_type ) { 211 if ( wc_notice_count( $notice_type ) > 0 ) { 212 wc_get_template( "notices/{$notice_type}.php", array( 213 'notices' => array_filter( $all_notices[ $notice_type ] ), 214 ) ); 217 215 } 218 $fragments['notices_html'] = ob_get_clean(); 219 220 endif; 221 222 wc_clear_notices(); 223 224 return $fragments; 216 } 217 $fragments['notices_html'] = ob_get_clean(); 218 219 endif; 220 221 wc_clear_notices(); 222 223 return $fragments; 225 224 } 226 225 -
product-variant-table-for-woocommerce/trunk/inc/frontend/class_pvtfw_print_table.php
r3238050 r3318369 70 70 <?php echo esc_html( apply_filters('pvtfw_variant_table_varaints_heading', __('Available Options', 'product-variant-table-for-woocommerce')) ); ?> 71 71 </h2> 72 <?php73 // Hook to display anything after the table heading74 do_action('pvtfw_variation_table_heading_after');75 ?>76 72 </div> 77 73 … … 79 75 80 76 // Hook to display anything before the table 81 do_action('pvtfw_variation_table_before' );77 do_action('pvtfw_variation_table_before', $product); 82 78 83 79 // Scrollable classes adding … … 100 96 * 101 97 */ 102 do_action('pvtfw_before_table_block' );98 do_action('pvtfw_before_table_block', $product); 103 99 104 100 ?> 105 101 <div class="pvtfw_variant_table_block <?php echo esc_attr( apply_filters('pvtfw_table_container_class', $classes, $scrollableTableX) ); ?>"> 102 106 103 <table class="variant"> 107 104 <thead> … … 143 140 * 144 141 */ 145 do_action('pvtfw_after_table_block' );142 do_action('pvtfw_after_table_block', $product); 146 143 147 144 ?> … … 151 148 <?php 152 149 // Hook to display anything after the table 153 do_action('pvtfw_variation_table_after' );150 do_action('pvtfw_variation_table_after', $product); 154 151 155 152 } … … 217 214 218 215 // Hook to display anything before the table 219 do_action('pvtfw_variation_table_before' );216 do_action('pvtfw_variation_table_before', $get_product); 220 217 221 218 // Scrollable classes adding … … 240 237 * 241 238 */ 242 do_action('pvtfw_before_table_block' );239 do_action('pvtfw_before_table_block', $get_product); 243 240 244 241 ?> … … 284 281 * 285 282 */ 286 do_action('pvtfw_after_table_block' );283 do_action('pvtfw_after_table_block', $get_product); 287 284 288 285 ?> … … 293 290 <?php 294 291 // Hook to display anything after the table 295 do_action('pvtfw_variation_table_after' );292 do_action('pvtfw_variation_table_after', $get_product); 296 293 297 294 -
product-variant-table-for-woocommerce/trunk/languages/product-variant-table-for-woocommerce.pot
r3247960 r3318369 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: PVT - Product Variation Table for WooCommerce 1.7. 2\n"5 "Project-Id-Version: PVT - Product Variation Table for WooCommerce 1.7.3\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 2-27T05:07:47+00:00\n"12 "POT-Creation-Date: 2025-06-26T12:34:30+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" … … 155 155 156 156 #: inc/admin/class_pvtfw_form.php:251 157 #: inc/admin/class_pvtfw_settings.php:11 9157 #: inc/admin/class_pvtfw_settings.php:115 158 158 msgid "Are you sure to reset?" 159 159 msgstr "" … … 189 189 msgstr "" 190 190 191 #: inc/admin/class_pvtfw_form.php:3 27192 #: inc/admin/class_pvtfw_form.php:3 55191 #: inc/admin/class_pvtfw_form.php:334 192 #: inc/admin/class_pvtfw_form.php:374 193 193 msgid "Security check" 194 194 msgstr "" … … 202 202 msgstr "" 203 203 204 #: inc/admin/class_pvtfw_settings.php:8 5204 #: inc/admin/class_pvtfw_settings.php:81 205 205 #: product-variant-table-for-woocommerce.php:416 206 206 msgid "Settings" 207 207 msgstr "" 208 208 209 #: inc/admin/class_pvtfw_settings.php:8 7209 #: inc/admin/class_pvtfw_settings.php:83 210 210 msgid "Layout" 211 211 msgstr "" 212 212 213 #: inc/admin/class_pvtfw_settings.php:11 8213 #: inc/admin/class_pvtfw_settings.php:114 214 214 msgid "Save Settings" 215 215 msgstr "" 216 216 217 #: inc/admin/class_pvtfw_settings.php:11 9217 #: inc/admin/class_pvtfw_settings.php:115 218 218 msgid "Reset All" 219 219 msgstr "" … … 317 317 318 318 #: inc/frontend/class_pvtfw_print_table.php:70 319 #: inc/frontend/class_pvtfw_print_table.php:20 8319 #: inc/frontend/class_pvtfw_print_table.php:205 320 320 msgid "Available Options" 321 321 msgstr "" -
product-variant-table-for-woocommerce/trunk/product-variant-table-for-woocommerce.php
r3247960 r3318369 8 8 Text Domain: product-variant-table-for-woocommerce 9 9 Domain Path: /languages 10 Version: 1.7. 210 Version: 1.7.3 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. 714 WC tested up to: 9.9 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. 2');35 define("PVTFW_VARIANT_TABLE_VERSION", '1.7.3'); 36 36 define("PVTFW_REQUIRED_PRO_VERSION", '1.7.0'); 37 37 define("PVTFW_DIR", plugin_dir_path(__FILE__) ); -
product-variant-table-for-woocommerce/trunk/public/css/pvtfw_table_breakdown.css
r3245229 r3318369 29 29 width: auto; 30 30 } 31 .pvtfw_variant_table_block table.variant thead tr:not(.fancy SearchRow) {31 .pvtfw_variant_table_block table.variant thead tr:not(.fancytablesearch) { 32 32 display: none; 33 33 } -
product-variant-table-for-woocommerce/trunk/public/js/pvtfw_frontend.js
r3238050 r3318369 21 21 }); 22 22 23 // If the pre_info.pre_installed returns falsey value(false, null, undefined, 0, NaN, or an empty string). 24 // For example: false 23 25 if( !pre_info.pre_installed ){ 24 26 … … 26 28 27 29 $('table.variant') 28 .on('click', 't h:not(.fancySearchRow th)', function () {30 .on('click', 'tr:not(.fancytablesearch, .fancytablecolumnsearch) th:not(.fancytablepagination)', function () { 29 31 var index = $(this).index(), 30 32 rows = [], … … 84 86 // Checking Decimal Separator, if found then remove the decimal separator 85 87 if( aValue.includes(pre_info.decimal_sep) || bValue.includes(pre_info.decimal_sep) ){ 86 aValue = aValue.replace(pre_info.decimal_sep,''); 87 bValue = bValue.replace(pre_info.decimal_sep,''); 88 // Forcefully, replacing the decimal separator by `.` to compare values later 89 // @added: 1.7.3 90 // @note: It will help to compare the numeric value when forcefully removed trailing zeros on prices 91 // @see: https://woocommerce.com/document/hide-trailing-zeros-on-prices/ 92 aValue = aValue.replace(pre_info.decimal_sep,'.'); 93 bValue = bValue.replace(pre_info.decimal_sep,'.'); 88 94 } 89 95 // Checking Thousand Separator, if found then remove the thousand separator … … 144 150 */ 145 151 146 $inputs. change(function () {152 $inputs.on( 'change', function () { 147 153 var $this = $(this); 148 154 var $minusBtn = $this.siblings(".qty-count--minus"); … … 176 182 }); 177 183 178 $countBtn. click(function () {184 $countBtn.on( 'click', function () { 179 185 var operator = this.dataset.action; 180 186 var $this = $(this); -
product-variant-table-for-woocommerce/trunk/readme.txt
r3247960 r3318369 3 3 Tags: woocommerce, variations, table, variations table, woocommerce variable 4 4 Requires at least: 4.7.0 5 Tested up to: 6. 75 Tested up to: 6.8 6 6 Requires PHP: 5.6.20 7 Stable tag: 1.7. 27 Stable tag: 1.7.3 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.2 [27-02-2025] Thursday = 182 * Security: Checked codebase. 183 * Compatibility: WooCommerce 9.7. 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. 185 184 186 185 187 [See changelog for all versions.](https://github.com/WPXtension/product-variation-table-for-woocommerce/blob/main/changelog-free.md)
Note: See TracChangeset
for help on using the changeset viewer.