Plugin Directory

Changeset 3344126


Ignore:
Timestamp:
08/13/2025 05:00:19 PM (8 months ago)
Author:
wpxteam
Message:

v1.7.4: * Update: Script (to return the first quantity value after successful carted).* 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. * Fix: Style (to display table header in correct place).* Compatibility: WooCommerce 10.1.0.

Location:
product-variant-table-for-woocommerce
Files:
51 added
5 edited

Legend:

Unmodified
Added
Removed
  • product-variant-table-for-woocommerce/trunk/inc/frontend/class_pvtfw_cart.php

    r3318369 r3344126  
    3030        ?>
    3131            <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
    3242            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
    3353                $(document.body).on('click', '.pvtfw_variant_table_cart_btn', function(e) {
    3454                    e.preventDefault();
     
    108128                                    $('.woocommerce-notices-wrapper .woocommerce-message').remove();
    109129                                }
    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
    111137                                <?php $scrollToTop = PVTFW_COMMON::pvtfw_get_options()->scrollToTop; if($scrollToTop == "on"): ?>
    112138                                        $("html, body").animate({
  • product-variant-table-for-woocommerce/trunk/languages/product-variant-table-for-woocommerce.pot

    r3318369 r3344126  
    33msgid ""
    44msgstr ""
    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"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/product-variant-table-for-woocommerce\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-06-26T12:34:30+00:00\n"
     12"POT-Creation-Date: 2025-08-13T05:33:21+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.11.0\n"
  • product-variant-table-for-woocommerce/trunk/product-variant-table-for-woocommerce.php

    r3318369 r3344126  
    88Text Domain: product-variant-table-for-woocommerce
    99Domain Path: /languages
    10 Version: 1.7.3
     10Version: 1.7.4
    1111Requires at least: 4.7.0
    1212Requires PHP: 5.6.20
    1313WC requires at least: 3.0.0
    14 WC tested up to: 9.9
     14WC tested up to: 10.1.0
    1515License: GPLv2 or later
    1616License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3333 */
    3434
    35 define("PVTFW_VARIANT_TABLE_VERSION", '1.7.3');
     35define("PVTFW_VARIANT_TABLE_VERSION", '1.7.4');
    3636define("PVTFW_REQUIRED_PRO_VERSION", '1.7.0');
    3737define("PVTFW_DIR", plugin_dir_path(__FILE__) );
     
    103103        }
    104104
    105         /**
    106         * ====================================================
    107         * Load Text Domain Folder
    108         * ====================================================
    109         **/
    110         function load_textdomain() {
    111             load_plugin_textdomain( "product-variant-table-for-woocommerce", false, basename( dirname( __FILE__ ) )."/languages" );
    112         }
    113 
    114105
    115106        /**
     
    154145         */
    155146        public function hooks() {
    156             add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) );
    157147            add_action( 'admin_init', array( $this, 'register_settings' ) );
    158148
  • product-variant-table-for-woocommerce/trunk/public/css/pvtfw_frontend.css

    r3245837 r3344126  
    320320    padding: 0;
    321321}
     322
     323/* Table Header Style  */
     324.pvtfw-table-heading-continer{
     325    clear: both;
     326}
  • product-variant-table-for-woocommerce/trunk/readme.txt

    r3318369 r3344126  
    55Tested up to: 6.8
    66Requires PHP: 5.6.20
    7 Stable tag: 1.7.3
     7Stable tag: 1.7.4
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    179179== Changelog ==
    180180
    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.
    185186
    186187
Note: See TracChangeset for help on using the changeset viewer.