Plugin Directory

Changeset 2901636


Ignore:
Timestamp:
04/20/2023 07:16:49 AM (3 years ago)
Author:
thanhtd
Message:

Update

Location:
bulky-bulk-edit-products-for-woo/trunk
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • bulky-bulk-edit-products-for-woo/trunk/CHANGELOG.txt

    r2900989 r2901636  
     1/**1.1.1 - 2023.04.20**/
     2- Fix: Load product to editor
     3
    14/**1.1.0 - 2023.04.19**/
    25- Fix: Validate input data
  • bulky-bulk-edit-products-for-woo/trunk/admin/ajax.php

    r2749386 r2901636  
    429429
    430430    public function auto_save_revision() {
    431         $data    = ! empty( $_POST['data'] ) ? WCBEdit_Data()->sanitize( wp_unslash( $_POST['data'] ) ) : '';
    432         $page    = ! empty( $_POST['page'] ) ? absint( $_POST['page'] ) : 1;
    433         $history = History::instance();
    434         $history->set( $data );
    435         $count_page = $history->count_history_pages();
    436         ob_start();
    437         $history->get_history_page( $page );
    438         $update_pages = ob_get_clean();
    439         wp_send_json_success( [ 'pages' => $count_page, 'updatePage' => $update_pages ] );
     431        wp_send_json_success( [ 'pages' => 1, 'updatePage' => '' ] );
    440432    }
    441433
  • bulky-bulk-edit-products-for-woo/trunk/bulky-bulk-edit-products-for-woo.php

    r2900989 r2901636  
    44 * Plugin URI: https://villatheme.com/extensions/bulky-woocommerce-bulk-edit-products/
    55 * Description: Bulky - Bulk Edit Products for WooCommerce helps easily work with products in bulk. The plugin offers sufficient simple and advanced tools to help filter various available attributes of simple and variable products such as  ID, Title, Content, Excerpt, Slugs, SKU, Post date, range of regular price and sale price, Sale date, range of stock quantity, Product type, Categories.... Users can quickly search for wanted products fields and work with the product fields in bulk. The plugin promises to help users to save time and optimize manipulation when working with products in bulk.
    6  * Version: 1.1.0
     6 * Version: 1.1.1
    77 * Author: VillaTheme
    88 * Author URI: https://villatheme.com
     
    3737        public $plugin_name = 'Bulky - Bulk Edit Products for WooCommerce';
    3838
    39         public $version = '1.1.0';
     39        public $version = '1.1.1';
    4040
    4141        public $conditional = '';
  • bulky-bulk-edit-products-for-woo/trunk/includes/enqueue.php

    r2823303 r2901636  
    108108
    109109                    wp_localize_script( WCBE_CONST_F['assets_slug'] . 'editor', 'wbeParams', [
    110                         'ajaxUrl'       => admin_url( 'admin-ajax.php' ),
    111                         'nonce'         => wp_create_nonce( 'vi_wbe_nonce' ),
    112                         'columns'       => wp_json_encode( array_values( $columns ) ),
    113                         'idMapping'     => $id_mapping,
    114                         'idMappingFlip' => array_flip( $id_mapping ),
    115                         'attributes'    => $attr_data,
    116                         'metaFields'    => get_option( 'vi_wbe_product_meta_fields' ),
    117                         'settings'      => WCBEdit_Data()->get_settings(),
    118                         'historyPages'  => History::instance()->count_history_pages(),
    119                         'adminUrl'      => admin_url(),
    120                         'frontendUrl'   => site_url(),
    121                         'editType'      => 'products'
     110                        'ajaxUrl'        => admin_url( 'admin-ajax.php' ),
     111                        'nonce'          => wp_create_nonce( 'vi_wbe_nonce' ),
     112                        'columns'        => wp_json_encode( array_values( $columns ) ),
     113                        'idMapping'      => $id_mapping,
     114                        'idMappingFlip'  => array_flip( $id_mapping ),
     115                        'attributes'     => $attr_data,
     116                        'metaFields'     => get_option( 'vi_wbe_product_meta_fields' ),
     117                        'settings'       => WCBEdit_Data()->get_settings(),
     118                        'historyPages'   => History::instance()->count_history_pages(),
     119                        'adminUrl'       => admin_url(),
     120                        'frontendUrl'    => site_url(),
     121                        'editType'       => 'products',
     122                        'cellDependType' => $this->set_cell_depend()
    122123                    ] );
    123124
     
    166167        }
    167168    }
     169
     170    public function set_cell_depend() {
     171        $depend = [
     172            'simple'    => [
     173                'default_attributes',
     174                'grouped_products',
     175                'product_url',
     176                'button_text',
     177            ],
     178            'variable'  => [
     179                'regular_price',
     180                'sale_price',
     181                'download_file',
     182                'download_limit',
     183                'download_expiry',
     184                'stock_status',
     185                'downloadable',
     186                'sale_date_from',
     187                'sale_date_to',
     188                'virtual',
     189                'grouped_products',
     190                'product_url',
     191                'button_text',
     192            ],
     193            'grouped'   => [
     194                'regular_price',
     195                'sale_price',
     196                'product_url',
     197                'button_text',
     198                'default_attributes',
     199                'cross_sells',
     200            ],
     201            'external'  => [
     202                'grouped_products',
     203                'default_attributes',
     204                'cross_sells',
     205                'allow_backorder',
     206                'sold_individually',
     207                'virtual',
     208                'download_file',
     209                'download_limit',
     210                'download_expiry',
     211                'stock_status',
     212                'downloadable',
     213            ],
     214            'variation' => [
     215                'post_excerpt',
     216                'post_title',
     217                'post_date',
     218                'slug',
     219                'featured',
     220                'product_cat',
     221                'product_type',
     222                'catalog_visibility',
     223                'allow_reviews',
     224                'sold_individually',
     225                'author',
     226                'tax_status',
     227                'tags',
     228                'upsells',
     229                'cross_sells',
     230                'post_name',
     231                'purchase_note',
     232                'gallery',
     233                'password',
     234                'default_attributes',
     235                'grouped_products',
     236                'product_url',
     237                'button_text',
     238            ],
     239        ];
     240
     241
     242        return apply_filters( 'vi_wbe_set_cell_depend', $depend );
     243    }
     244
    168245}
  • bulky-bulk-edit-products-for-woo/trunk/readme.txt

    r2900989 r2901636  
    261261== Changelog ==
    262262
     263/**1.1.1 - 2023.04.20**/
     264- Fix: Load product to editor
     265
    263266/** 1.1.0 - 2023.04.19**/
    264267- Fix: Validate input data
Note: See TracChangeset for help on using the changeset viewer.