Plugin Directory

Changeset 3245229


Ignore:
Timestamp:
02/23/2025 03:44:15 PM (13 months ago)
Author:
wpxteam
Message:

v1.7.0: * Update: Settings framework. * Update:$options array. * Update: Availability text condition and optimize the code at compatiblilty.php. * Update: Scripts and added necessary trigger. * Check: WPCS.

Location:
product-variant-table-for-woocommerce
Files:
52 added
11 edited

Legend:

Unmodified
Added
Removed
  • product-variant-table-for-woocommerce/trunk/admin/js/pvtfw_backend.js

    r3238050 r3245229  
    2323        $('div.form-section#'+target).show();
    2424
     25        // Adding the target as a class for the submit <p> tag
     26        $('p.submit').attr('data-taget', target);
     27
    2528
    2629        $('div.form-section input[name=pvtfw_variant_table_tab]').val(target);
     30
     31        // Checking if the nav a has a class "lock"
     32        if( $(this).hasClass('lock') ){
     33          // If has a lock class, hide the submit <p> block using the target
     34          $('p.submit[data-taget="'+target+'"]').hide();
     35        }
     36        else{
     37          $('p.submit[data-taget ="'+target+'"]').show();
     38        }
    2739
    2840    });
     
    118130      }
    119131
     132      // Color Picker
     133      $('.color-field').wpColorPicker();
     134
    120135
    121136})(jQuery);
  • product-variant-table-for-woocommerce/trunk/inc/admin/class_pvtfw_advance.php

    r3238050 r3245229  
    288288        function new_setting_tab($tab, $curTab){
    289289
    290             $tab .= "<a href='#advanced' data-target='advanced' class='nav-tab ".($curTab==='advanced' ? 'nav-tab-active' : null)."'>".PVTFW_COMMON::badge('Pro', 'return').__('Advanced', 'product-variant-table-for-woocommerce')."</a>";
     290            $lock_class = !PVTFW_TABLE::is_pvtfw_pro_Active() ? esc_attr( 'lock' ) : '';
     291
     292            $tab .= "<a href='#advanced' data-target='advanced' class='nav-tab ".($curTab==='advanced' ? 'nav-tab-active ' : null).$lock_class."'>".PVTFW_COMMON::badge('Pro', 'return').__('Advanced', 'product-variant-table-for-woocommerce')."</a>";
    291293           
    292294            return $tab;
  • product-variant-table-for-woocommerce/trunk/inc/compatibility.php

    r3242771 r3245229  
    395395 * @since 1.5.5
    396396 * @updated 1.6.4.1
     397 * @updated 1.7.0
    397398 * =============================================================================
    398399 */
     
    401402    function pvt_cart_button_condition( $args, $stock_info ){
    402403
    403             $single_variation = wc_get_product( $args['variant_id'] );
    404 
    405             if( $args['stock_status'] === 'instock' || $args['stock_status'] === 'onbackorder' ){
    406                 echo wp_kses_post(
    407                     sprintf('<button data-product-id="%s" data-url="%s" data-product="%s" data-variant="%s" class="%s">
     404        if( $args['stock_status'] === 'instock' || $args['stock_status'] === 'onbackorder' ){
     405            echo wp_kses_post(
     406                sprintf('<button data-product-id="%s" data-url="%s" data-product="%s" data-variant="%s" class="%s">
     407                    <span class="pvtfw-btn-text">%s</span>
     408                    <div class="spinner-wrap"><span class="pvt-icon-spinner"></span></div>
     409                    </button>%s',
     410                    $args['product_id'],
     411                    $args['cart_url'],
     412                    $args['product_url'],
     413                    $args['variant_id'],
     414                    /**
     415                     *
     416                     * Hook: pvtfw_add_to_cart_btn_classes
     417                     * Hook: pvtfw_cart_btn_text
     418                     *
     419                     * @since version 1.4.16
     420                     *
     421                     **/
     422                    apply_filters( 'pvtfw_add_to_cart_btn_classes',
     423                        wp_is_block_theme() ? 'wp-block-button__link wp-element-button wc-block-components-product-button__button pvtfw_variant_table_cart_btn' : 'pvtfw_variant_table_cart_btn button alt'
     424                    ),
     425                    apply_filters( 'pvtfw_cart_btn_text',
     426                       
     427                        /*
     428                         * @note: If it is coming from plugin settings it will not translate. Because, dynamic text
     429                         * is not translatable.
     430                         *
     431                         * @recommendation: Contact through our support forum
     432                         *
     433                         * @link: https://localise.biz/wordpress/plugin/intro#content
     434                         */
     435                        $args['text']
     436
     437                    ),
     438                    $args['stock_status'] === 'onbackorder' ?
     439                    apply_filters('pvtfw_cart_btn_after_backorder_text',
     440                        $args['availability_html']
     441                    ) : ''
     442                )
     443            );
     444        }
     445        if( $args['stock_status'] === 'outofstock' ){
     446            echo wp_kses_post(
     447                sprintf('<button class="%s" disabled>
    408448                        <span class="pvtfw-btn-text">%s</span>
    409449                        <div class="spinner-wrap"><span class="pvt-icon-spinner"></span></div>
    410                         </button>%s',
    411                         $args['product_id'],
    412                         $args['cart_url'],
    413                         $args['product_url'],
    414                         $args['variant_id'],
     450                        </button>',
    415451                        /**
    416452                         *
    417453                         * Hook: pvtfw_add_to_cart_btn_classes
    418                          * Hook: pvtfw_cart_btn_text
     454                         * Hook: pvtfw_stock_btn_text
    419455                         *
    420456                         * @since version 1.4.16
     457                         *
     458                         * @version 1.4.18 { hook renamed to `pvtfw_stock_btn_text` from `pvtfw_cart_btn_text` }
    421459                         *
    422460                         **/
     
    424462                            wp_is_block_theme() ? 'wp-block-button__link wp-element-button wc-block-components-product-button__button pvtfw_variant_table_cart_btn' : 'pvtfw_variant_table_cart_btn button alt'
    425463                        ),
    426                         apply_filters( 'pvtfw_cart_btn_text',
    427                            
    428                             /*
    429                              * @note: If it is coming from plugin settings it will not translate. Because, dynamic text
    430                              * is not translatable.
    431                              *
    432                              * @recommendation: Contact through our support forum
    433                              *
    434                              * @link: https://localise.biz/wordpress/plugin/intro#content
    435                              */
    436                             $args['text']
    437 
    438                         ),
    439                         $args['stock_status'] === 'onbackorder' ?
    440                         apply_filters('pvtfw_cart_btn_after_backorder_text',
    441                             wc_get_stock_html( $single_variation )
    442                         ) : ''
    443                     )
    444                 );
    445             }
    446             if( $args['stock_status'] === 'outofstock' ){
    447                 echo wp_kses_post(
    448                     sprintf('<button class="%s" disabled>
    449                             <span class="pvtfw-btn-text">%s</span>
    450                             <div class="spinner-wrap"><span class="pvt-icon-spinner"></span></div>
    451                             </button>',
    452                             /**
    453                              *
    454                              * Hook: pvtfw_add_to_cart_btn_classes
    455                              * Hook: pvtfw_stock_btn_text
    456                              *
    457                              * @since version 1.4.16
    458                              *
    459                              * @version 1.4.18 { hook renamed to `pvtfw_stock_btn_text` from `pvtfw_cart_btn_text` }
    460                              *
    461                              **/
    462                             apply_filters( 'pvtfw_add_to_cart_btn_classes',
    463                                 wp_is_block_theme() ? 'wp-block-button__link wp-element-button wc-block-components-product-button__button pvtfw_variant_table_cart_btn' : 'pvtfw_variant_table_cart_btn button alt'
    464                             ),
    465                             apply_filters( 'pvtfw_stock_btn_text', $stock_info )
    466                     )
    467                 );
    468             }
    469 
    470 
    471     }
    472 }
    473 
    474 
    475 
     464                        apply_filters( 'pvtfw_stock_btn_text', $stock_info )
     465                )
     466            );
     467        }
     468
     469
     470    }
     471}
     472
     473
     474
  • product-variant-table-for-woocommerce/trunk/inc/table-parts/content-tbody.php

    r3218412 r3245229  
    124124                     **/
    125125                    $options['action'][] = array(
    126                         'product_id'    => $product_id,
    127                         'cart_url'      => $cart_url,
    128                         'product_url'   => $product_url,
    129                         'variant_id'    => $variant_id,
    130                         'stock_status'  => $single_variation->get_stock_status(),
    131                         'text'          => $text
     126                        'product_id'        => $product_id,
     127                        'cart_url'          => $cart_url,
     128                        'product_url'       => $product_url,
     129                        'variant_id'        => $variant_id,
     130                        'stock_status'      => $single_variation->get_stock_status(),
     131                        'text'              => $text,
     132                        'availability_html' => wc_get_stock_html( $single_variation ),
    132133                    );
    133134                endif;
  • product-variant-table-for-woocommerce/trunk/languages/product-variant-table-for-woocommerce.pot

    r3242771 r3245229  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: PVT - Product Variation Table for WooCommerce 1.6.4.1\n"
     5"Project-Id-Version: PVT - Product Variation Table for WooCommerce 1.7.0\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/product-variant-table-for-woocommerce\n"
    7 "Last-Translator: WPXtension <wpxtension@gmail.com>\n"
    8 "Language-Team: LANGUAGE <LL@li.org>\n"
     7"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     8"Language-Team: WPXtension <wpxtension@gmail.com>\n"
    99"MIME-Version: 1.0\n"
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-02-18T16:38:30+00:00\n"
     12"POT-Creation-Date: 2025-02-23T08:26:03+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.10.0\n"
     
    1616
    1717#. Plugin Name of the plugin
    18 #: C:\Users\USER\Local Sites\pvt\app\public\wp-content\plugins\product-variant-table-for-woocommerce\product-variant-table-for-woocommerce.php
     18#: product-variant-table-for-woocommerce.php
    1919msgid "PVT - Product Variation Table for WooCommerce"
    2020msgstr ""
    2121
    2222#. Plugin URI of the plugin
    23 #: C:\Users\USER\Local Sites\pvt\app\public\wp-content\plugins\product-variant-table-for-woocommerce\product-variant-table-for-woocommerce.php
     23#: product-variant-table-for-woocommerce.php
    2424msgid "https://wpxtension.com/product/product-variation-table-for-woocommerce/"
    2525msgstr ""
    2626
    2727#. Description of the plugin
    28 #: C:\Users\USER\Local Sites\pvt\app\public\wp-content\plugins\product-variant-table-for-woocommerce\product-variant-table-for-woocommerce.php
     28#: product-variant-table-for-woocommerce.php
    2929msgid "Display WooCommerce product variations in a nicely formatted and customizable table on the single product page."
    3030msgstr ""
    3131
    3232#. Author of the plugin
    33 #: C:\Users\USER\Local Sites\pvt\app\public\wp-content\plugins\product-variant-table-for-woocommerce\product-variant-table-for-woocommerce.php
     33#: product-variant-table-for-woocommerce.php
    3434msgid "WPXtension"
    3535msgstr ""
    3636
    3737#. Author URI of the plugin
    38 #: C:\Users\USER\Local Sites\pvt\app\public\wp-content\plugins\product-variant-table-for-woocommerce\product-variant-table-for-woocommerce.php
     38#: product-variant-table-for-woocommerce.php
    3939msgid "https://wpxtension.com/"
    4040msgstr ""
     
    4343#: inc/admin/class_pvtfw_advance.php:132
    4444#: inc/admin/class_pvtfw_advance.php:242
     45#: inc/admin/class_pvtfw_styling.php:37
     46#: inc/admin/class_pvtfw_styling.php:70
     47#: inc/admin/class_pvtfw_styling.php:115
     48#: inc/admin/class_pvtfw_styling.php:160
    4549msgid "Unlock all features >>>"
    4650msgstr ""
     
    5458msgstr ""
    5559
    56 #: inc/admin/class_pvtfw_advance.php:290
     60#: inc/admin/class_pvtfw_advance.php:292
    5761msgid "Advanced"
    5862msgstr ""
     
    199203
    200204#: inc/admin/class_pvtfw_settings.php:81
    201 #: product-variant-table-for-woocommerce.php:387
     205#: product-variant-table-for-woocommerce.php:416
    202206msgid "Settings"
    203207msgstr ""
     
    215219msgstr ""
    216220
     221#: inc/admin/class_pvtfw_styling.php:205
     222msgid "Styling"
     223msgstr ""
     224
    217225#: inc/class_pvtfw_common.php:36
    218 #: inc/table-parts/content-tbody.php:165
     226#: inc/table-parts/content-tbody.php:166
    219227msgid "Thumbnail"
    220228msgstr ""
    221229
    222230#: inc/class_pvtfw_common.php:37
    223 #: inc/table-parts/content-tbody.php:173
     231#: inc/table-parts/content-tbody.php:174
    224232msgid "SKU"
    225233msgstr ""
    226234
    227235#: inc/class_pvtfw_common.php:38
    228 #: inc/table-parts/content-tbody.php:189
     236#: inc/table-parts/content-tbody.php:190
    229237msgid "Description"
    230238msgstr ""
    231239
    232240#: inc/class_pvtfw_common.php:39
    233 #: inc/table-parts/content-tbody.php:197
    234 #: inc/table-parts/content-tbody.php:297
     241#: inc/table-parts/content-tbody.php:198
     242#: inc/table-parts/content-tbody.php:298
    235243#: inc/table-parts/content-thead.php:93
    236244msgid "Attributes"
     
    238246
    239247#: inc/class_pvtfw_common.php:40
    240 #: inc/table-parts/content-tbody.php:205
     248#: inc/table-parts/content-tbody.php:206
    241249msgid "Dimensions"
    242250msgstr ""
    243251
    244252#: inc/class_pvtfw_common.php:41
    245 #: inc/table-parts/content-tbody.php:213
     253#: inc/table-parts/content-tbody.php:214
    246254msgid "Weight"
    247255msgstr ""
    248256
    249257#: inc/class_pvtfw_common.php:42
    250 #: inc/table-parts/content-tbody.php:221
     258#: inc/table-parts/content-tbody.php:222
    251259msgid "Stock"
    252260msgstr ""
    253261
    254262#: inc/class_pvtfw_common.php:43
    255 #: inc/table-parts/content-tbody.php:181
     263#: inc/table-parts/content-tbody.php:182
    256264msgid "Price"
    257265msgstr ""
     
    261269#: inc/compatibility.php:203
    262270#: inc/compatibility.php:271
    263 #: inc/table-parts/content-tbody.php:229
    264 #: inc/table-parts/content-tbody.php:325
     271#: inc/table-parts/content-tbody.php:230
     272#: inc/table-parts/content-tbody.php:326
    265273msgid "Quantity"
    266274msgstr ""
    267275
    268276#: inc/class_pvtfw_common.php:45
    269 #: inc/table-parts/content-tbody.php:237
    270 #: inc/table-parts/content-tbody.php:362
     277#: inc/table-parts/content-tbody.php:238
     278#: inc/table-parts/content-tbody.php:363
    271279#: inc/table-parts/content-thead.php:90
    272280msgid "Action"
     
    331339msgstr ""
    332340
    333 #: product-variant-table-for-woocommerce.php:393
     341#: product-variant-table-for-woocommerce.php:422
    334342msgid "Go Premium"
    335343msgstr ""
    336344
    337 #: product-variant-table-for-woocommerce.php:412
     345#: product-variant-table-for-woocommerce.php:441
    338346msgid "Help & Support"
    339347msgstr ""
    340348
    341 #: product-variant-table-for-woocommerce.php:413
     349#: product-variant-table-for-woocommerce.php:442
    342350msgid "Documentation"
    343351msgstr ""
    344352
    345353#. translators: %1$s: Main wrapper start, %2$s: Main wrapper end, %3$s: Bold wrapper start, %4$s: Bold wrapper end, %5$s: Pro Plugin Version
    346 #: product-variant-table-for-woocommerce.php:467
     354#: product-variant-table-for-woocommerce.php:496
    347355msgid "%1$sYou are running an older version of %3$s\"PVT - Product Variation Table for WooCommerce - Pro\"%4$s. Please upgrade to %3$s %5$s %4$s or higher.%2$s"
    348356msgstr ""
    349357
    350358#. translators: %s: Pro Plugin Version
    351 #: product-variant-table-for-woocommerce.php:483
     359#: product-variant-table-for-woocommerce.php:512
    352360msgid "You are running an older version of \"PVT - Product Variation Table for WooCommerce - Pro\". Please upgrade to %s or higher."
    353361msgstr ""
  • product-variant-table-for-woocommerce/trunk/product-variant-table-for-woocommerce.php

    r3242771 r3245229  
    88Text Domain: product-variant-table-for-woocommerce
    99Domain Path: /languages
    10 Version: 1.6.4.1
     10Version: 1.7.0
    1111Requires at least: 4.7.0
    1212Requires PHP: 5.6.20
     
    3333 */
    3434
    35 define("PVTFW_VARIANT_TABLE_VERSION", '1.6.4.1');
    36 define("PVTFW_REQUIRED_PRO_VERSION", '1.6.0');
     35define("PVTFW_VARIANT_TABLE_VERSION", '1.7.0');
     36define("PVTFW_REQUIRED_PRO_VERSION", '1.7.0');
    3737define("PVTFW_DIR", plugin_dir_path(__FILE__) );
    3838define("PVTFW_FILE", plugin_basename(__FILE__));
     
    130130            require_once PVTFW_DIR.'inc/admin/class_pvtfw_settings.php';
    131131            require_once PVTFW_DIR.'inc/admin/class_pvtfw_advance.php';
     132            require_once PVTFW_DIR.'inc/admin/class_pvtfw_styling.php';
    132133
    133134            require_once PVTFW_DIR.'inc/frontend/class_pvtfw_print_table.php';
     
    253254         */
    254255        public function register_settings(){
    255             register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_place' );
    256             register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_columns');
    257             register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_show_available_options_btn');
    258             register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_available_options_btn_text');
    259             register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_show_available_options_text');
    260             register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_cart_btn_text');
    261             register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_show_table_header');
    262             register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_qty_layout');
    263             register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_sub_total');
    264             register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_scroll_to_top');
    265             register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_cart_notice');
    266             register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_full_table');
    267             register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_scrollable_x');
    268             register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_min_width');
    269             register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_tab');
    270         }
     256            register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_place', 'sanitize_text_field' );
     257            register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_columns', array( $this, 'sanitize_array' ) );  // phpcs:disable PluginCheck.CodeAnalysis.SettingSanitization.register_settingDynamic
     258            //--> Sanitized the option inside the `sanitize_array` method
     259            register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_show_available_options_btn', 'sanitize_text_field');
     260            register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_available_options_btn_text', 'sanitize_text_field');
     261            register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_show_available_options_text', 'sanitize_text_field');
     262            register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_cart_btn_text', 'sanitize_text_field');
     263            register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_show_table_header', 'sanitize_text_field');
     264            register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_qty_layout', 'sanitize_text_field');
     265            register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_sub_total', 'sanitize_text_field');
     266            register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_scroll_to_top', 'sanitize_text_field');
     267            register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_cart_notice', 'sanitize_text_field');
     268            register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_full_table', 'sanitize_text_field');
     269            register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_scrollable_x', 'sanitize_text_field');
     270            register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_min_width', 'sanitize_text_field');
     271            register_setting('pvtfw_variant_table_settings', 'pvtfw_variant_table_tab', 'sanitize_text_field');
     272        }
     273
     274        /**
     275         *====================================================
     276         * Sanitize the array
     277         *
     278         * @param      array  $options           The address input.
     279         *
     280         * @return     array  $santized_options  The sanitized input.
     281         *====================================================
     282         */
     283        public function sanitize_array( $options ) : array{
     284
     285            // Initialize the new array that will hold the sanitize values
     286            $santized_options = array();
     287
     288            // Loop through the options and sanitize each of the values
     289            foreach ( $options as $key => $value ) {
     290                $santized_options[ $key ] = ( isset( $options[ $key ] ) ) ?
     291                sanitize_text_field( $value ) :
     292                '';
     293            }
     294
     295            return $santized_options;
     296        }
    271297         
    272298
     
    298324                $scrollableTableX = PVTFW_COMMON::pvtfw_get_options()->scrollableTableX;
    299325
     326                wp_enqueue_style('wp-color-picker');
     327
    300328                wp_enqueue_script('jquery-ui-sortable');
    301                 wp_enqueue_script('pvtfw-admin-scripts', plugins_url('admin/js/pvtfw_backend.js', __FILE__), array('jquery'), PVTFW_VARIANT_TABLE_VERSION, true);
     329               
     330                wp_enqueue_script('pvtfw-admin-scripts', plugins_url('admin/js/pvtfw_backend.js', __FILE__), array('jquery', 'wp-color-picker'), PVTFW_VARIANT_TABLE_VERSION, true);
    302331                wp_localize_script( 'pvtfw-admin-scripts', 'table_object',
    303332                    array(
  • product-variant-table-for-woocommerce/trunk/public/css/pvtfw_frontend.css

    r3005788 r3245229  
    1919}
    2020
    21 
    22 .pvtfw_variant_table_block table.variant th {
     21.pvtfw_variant_table_block table.variant{
     22    table-layout: fixed;
     23}
     24
     25.pvtfw_variant_table_block table.variant,
     26.pvtfw_variant_table_block table.variant thead th,
     27.pvtfw_variant_table_block table.variant tbody td,
     28.pvtfw_variant_table_block table.variant tfoot td {
     29    border: var( --pvtfw-table-border-color, #eee ) solid var( --pvtfw-table-border-width, 1px );
     30    border-collapse: collapse;
     31}
     32
     33
     34.pvtfw_variant_table_block table.variant thead th {
    2335    cursor: pointer;
    2436    white-space: nowrap;
    2537    display: table-cell;
    26     border: #eee solid 1px;
    27     padding: 10px;
     38    padding: var( --pvtfw-table-header-padding, 10px );
    2839    vertical-align: middle;
    2940    font-weight: normal;
     41    text-align: var( --pvtfw-table-header-alignment, left );
     42}
     43
     44.pvtfw_variant_table_block table.variant:not( .has-background ) thead th{
     45    background-color: var( --pvtfw-table-header-bg-color, #f8f8f8 );
     46    color: var( --pvtfw-table-header-text-color, #6d6d6d );
    3047}
    3148
     
    100117}
    101118
    102 .pvtfw_variant_table_block table.variant td {
     119.pvtfw_variant_table_block table.variant tbody td {
    103120    display: table-cell;
    104     border: #eee solid 1px;
    105     padding: 10px;
     121    padding: var( --pvtfw-table-body-padding, 10px );
    106122    vertical-align: middle;
     123    text-align: var( --pvtfw-table-body-alignment, left );
     124    background-color: transparent !important;
     125    color: var( --pvtfw-table-body-text-color, #6d6d6d );
     126}
     127
     128.pvtfw_variant_table_block table.variant tbody tr:nth-child(even) {
     129  background-color: var( --pvtfw-table-body-bg-color-even, #ffffff );
    107130}
    108131
    109132.pvtfw_variant_table_block table.variant tbody tr:nth-child(odd) {
    110   background-color: #f8f8f8;
    111 }
    112 
    113 .pvtfw_variant_table_block table.variant th.dsc .arrow {
     133  background-color: var( --pvtfw-table-body-bg-color-odd, #fbfbfb );
     134}
     135
     136.pvtfw_variant_table_block table.variant thead th.dsc .arrow {
    114137    border-left: 4px solid transparent;
    115138    border-right: 4px solid transparent;
    116     border-bottom: 4px solid #666666;
    117 }
    118 
    119 .pvtfw_variant_table_block table.variant th.asc .arrow {
     139    border-bottom: 4px solid var( --pvtfw-table-header-arrow-color, #666666 );
     140}
     141
     142.pvtfw_variant_table_block table.variant thead th.asc .arrow {
    120143    border-left: 4px solid transparent;
    121144    border-right: 4px solid transparent;
    122     border-top: 4px solid #666666;
     145    border-top: 4px solid var( --pvtfw-table-header-arrow-color, #666666 );
    123146}
    124147
     
    161184.pvtfw_variant_table_block table.variant td .added_to_cart {
    162185    display: none;
    163 }
    164 
    165 /* Pagination Style  */
    166 .pvtfw_variant_table_block table.variant a.btn.active {
    167     background-color: var(--wp--preset--color--cyan-bluish-gray);
    168     color: var(--wp--preset--color--white);
    169     display: inline-block;
    170     width: 25px;
    171     text-align: center;
    172186}
    173187
  • product-variant-table-for-woocommerce/trunk/public/css/pvtfw_table_breakdown.css

    r2886289 r3245229  
    22
    33@media screen and (max-width: 767px) {
    4     .pvtfw_variant_table_block table.variant td:before {
     4    .pvtfw_variant_table_block table.variant tbody td:before {
    55        content: attr(data-title);
    66        text-transform: uppercase;
     
    1616        display: table-cell;
    1717    }
    18     .pvtfw_variant_table_block table.variant td {
     18    .pvtfw_variant_table_block table.variant tbody td {
    1919        max-width: none;
    2020        display: table;
  • product-variant-table-for-woocommerce/trunk/readme.txt

    r3242771 r3245229  
    55Tested up to: 6.7
    66Requires PHP: 5.6.20
    7 Stable tag: 1.6.4.1
     7Stable tag: 1.7.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7474🎨 Support for the Min/Max Step control plugin empowers you to apply those rules inside the variation table too.
    7575🎨 Have a long list of variations! Apply vertical scrolling for a better user experience.
     76🎨 Display Ajax Variation Table Popup using `Display Rule`
     77🎨 Customize the Variation Table design (Header, Table Body, and Footer) as you want.
    7678
    7779
     
    177179== Changelog ==
    178180
    179 = 1.6.4.1 [18-02-2025] Tuesday =
    180 * Update: Availability condition.
    181 
     181= 1.7.0 [22-02-2025] Sunday =
     182* Update: Settings framework.
     183* Update:`$options` array.
     184* Update: Availability text condition and optimize the code at compatiblilty.php.
     185* Update: Scripts and added necessary trigger.
     186* Check: WPCS.
    182187
    183188[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.