Import Products from any XML or CSV to WooCommerce - Version 1.4.9

Version Description

  • bug fix: product_shipping_class taxonomy not updated
Download this release

Release Info

Developer soflyy
Plugin Icon 128x128 Import Products from any XML or CSV to WooCommerce
Version 1.4.9
Comparing to
See all releases

Code changes from version 1.4.8 to 1.4.9

libraries/XmlImportWooCommerceService.php CHANGED
@@ -272,7 +272,7 @@ final class XmlImportWooCommerceService {
272
  }
273
  // Sync custom fields for variation created from parent row.
274
  $firstVariationID = get_post_meta($product->get_id(), self::FIRST_VARIATION, TRUE);
275
- if ($firstVariationID) {
276
  $parentMeta = get_post_meta($product->get_id(), '');
277
  if ("manual" !== $this->getImport()->options['duplicate_matching']) {
278
  foreach ($this->getImport()->options['custom_name'] as $customFieldName) {
@@ -281,17 +281,20 @@ final class XmlImportWooCommerceService {
281
  }
282
  }
283
  }
284
- // Sync all ACF fields.
285
- foreach ($parentMeta as $parentMetaKey => $parentMetaValue) {
286
- if (strpos($parentMetaValue[0], 'field_') === 0) {
287
- update_post_meta($firstVariationID, $parentMetaKey, $parentMetaValue[0]);
288
- $acfFieldKey = preg_replace("%^_(.*)%", "$1", $parentMetaKey);
289
- foreach ($parentMeta as $key => $value) {
290
- if (strpos($key, $acfFieldKey) === 0) {
291
- update_post_meta($firstVariationID, $key, $value[0]);
292
- }
293
- }
294
- }
 
 
 
295
  }
296
  delete_post_meta($firstVariationID, '_variation_updated');
297
  }
272
  }
273
  // Sync custom fields for variation created from parent row.
274
  $firstVariationID = get_post_meta($product->get_id(), self::FIRST_VARIATION, TRUE);
275
+ if ($firstVariationID && in_array($this->getImport()->options['matching_parent'], array('first_is_parent_id', 'first_is_variation')) ) {
276
  $parentMeta = get_post_meta($product->get_id(), '');
277
  if ("manual" !== $this->getImport()->options['duplicate_matching']) {
278
  foreach ($this->getImport()->options['custom_name'] as $customFieldName) {
281
  }
282
  }
283
  }
284
+ $sync_parent_acf_with_first_variation = apply_filters('wp_all_import_sync_parent_acf_with_first_variation', true);
285
+ if ($sync_parent_acf_with_first_variation) {
286
+ // Sync all ACF fields.
287
+ foreach ($parentMeta as $parentMetaKey => $parentMetaValue) {
288
+ if (strpos($parentMetaValue[0], 'field_') === 0) {
289
+ update_post_meta($firstVariationID, $parentMetaKey, $parentMetaValue[0]);
290
+ $acfFieldKey = preg_replace("%^_(.*)%", "$1", $parentMetaKey);
291
+ foreach ($parentMeta as $key => $value) {
292
+ if (strpos($key, $acfFieldKey) === 0) {
293
+ update_post_meta($firstVariationID, $key, $value[0]);
294
+ }
295
+ }
296
+ }
297
+ }
298
  }
299
  delete_post_meta($firstVariationID, '_variation_updated');
300
  }
libraries/importer/products/ImportProduct.php CHANGED
@@ -306,8 +306,7 @@ abstract class ImportProduct extends ImportProductBase {
306
  $attributes = $this->getAttributesData();
307
  if (!empty($attributes['attribute_names'])) {
308
  $attributes = \WC_Meta_Box_Product_Data::prepare_attributes($attributes);
309
- }
310
- else {
311
  $attributes = array();
312
  }
313
  return $attributes;
@@ -326,7 +325,6 @@ abstract class ImportProduct extends ImportProductBase {
326
  'attribute_variation' => array(),
327
  'attribute_position' => array()
328
  );
329
- $is_any_attribute = apply_filters('wp_all_import_variation_any_attribute', false, $this->getImport()->id);
330
  $max_attribute_length = apply_filters('wp_all_import_max_woo_attribute_term_length', 199);
331
  $parsedAttributes = array();
332
  $attributesToImport = $this->getParsedDataOption('serialized_attributes');
@@ -402,16 +400,13 @@ abstract class ImportProduct extends ImportProductBase {
402
  }
403
  }
404
  }
405
- if ($is_any_attribute && count($values) > 1 && $this->getProduct() instanceof \WC_Product_Variation) {
406
- $values = '';
407
- }
408
- $parsedAttributes[strtolower(urlencode($attributeName))] = array(
409
- 'name' => $attributeName,
410
- 'value' => $values,
411
- 'is_visible' => intval($attribute['is_visible']),
412
- 'in_variation' => intval($attribute['in_variation']),
413
- 'position' => $attribute_position
414
- );
415
  }
416
  }
417
  }
@@ -503,7 +498,6 @@ abstract class ImportProduct extends ImportProductBase {
503
  $shipping_class = (int) $term['term_id'];
504
  }
505
  }
506
-
507
  if (empty($term) || is_wp_error($term)) {
508
  $shipping_class = '';
509
  }
@@ -548,8 +542,7 @@ abstract class ImportProduct extends ImportProductBase {
548
  @unlink($file);
549
  }
550
  $newSKU = substr(md5($unique_keys[$this->getIndex()]), 0, 12);
551
- }
552
- catch(\Exception $e){
553
  $this->log('<b>ERROR:</b> ' . $e->getMessage());
554
  }
555
  }
@@ -580,7 +573,7 @@ abstract class ImportProduct extends ImportProductBase {
580
  // Group products by Parent.
581
  if (in_array($this->productType, array( 'simple', 'external', 'variable', 'variable-subscription' ))) {
582
  // Group all product to one parent ( no XPath provided ).
583
- if ($this->getImport()->options['is_multiple_grouping_product'] != 'yes') {
584
  // Trying to find parent product according to matching options.
585
  if ($this->getImport()->options['grouping_indicator'] == 'xpath' && !is_numeric($this->getValue('product_grouping_parent'))) {
586
  $post = pmxi_findDuplicates(array(
@@ -591,17 +584,14 @@ abstract class ImportProduct extends ImportProductBase {
591
  ));
592
  if (!empty($post)) {
593
  $this->setValue('product_grouping_parent', $post[0]);
594
- }
595
- else {
596
  $this->setValue('product_grouping_parent', 0);
597
  }
598
- }
599
- elseif ($this->getImport()->options['grouping_indicator'] != 'xpath') {
600
  $post = pmxi_findDuplicates($this->getArticle(), $this->getValue('custom_grouping_indicator_name'), $this->getValue('custom_grouping_indicator_value'), 'custom field');
601
  if (!empty($post)) {
602
  $this->setValue('product_grouping_parent', array_shift($post));
603
- }
604
- else {
605
  $this->setValue('product_grouping_parent', 0);
606
  }
607
  }
@@ -619,6 +609,23 @@ abstract class ImportProduct extends ImportProductBase {
619
  }
620
  }
621
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
622
  }
623
 
624
  /*
@@ -693,7 +700,7 @@ abstract class ImportProduct extends ImportProductBase {
693
  }
694
  break;
695
  case 'shipping_class_id':
696
- if ($this->getImportService()->isUpdateTaxonomy('product_shipping_class', $this->isNewProduct())) {
697
  $this->productProperties[$property] = $value;
698
  }
699
  break;
306
  $attributes = $this->getAttributesData();
307
  if (!empty($attributes['attribute_names'])) {
308
  $attributes = \WC_Meta_Box_Product_Data::prepare_attributes($attributes);
309
+ } else {
 
310
  $attributes = array();
311
  }
312
  return $attributes;
325
  'attribute_variation' => array(),
326
  'attribute_position' => array()
327
  );
 
328
  $max_attribute_length = apply_filters('wp_all_import_max_woo_attribute_term_length', 199);
329
  $parsedAttributes = array();
330
  $attributesToImport = $this->getParsedDataOption('serialized_attributes');
400
  }
401
  }
402
  }
403
+ $parsedAttributes[strtolower(urlencode($attributeName))] = array(
404
+ 'name' => $attributeName,
405
+ 'value' => $values,
406
+ 'is_visible' => intval($attribute['is_visible']),
407
+ 'in_variation' => intval($attribute['in_variation']),
408
+ 'position' => $attribute_position
409
+ );
 
 
 
410
  }
411
  }
412
  }
498
  $shipping_class = (int) $term['term_id'];
499
  }
500
  }
 
501
  if (empty($term) || is_wp_error($term)) {
502
  $shipping_class = '';
503
  }
542
  @unlink($file);
543
  }
544
  $newSKU = substr(md5($unique_keys[$this->getIndex()]), 0, 12);
545
+ } catch(\Exception $e){
 
546
  $this->log('<b>ERROR:</b> ' . $e->getMessage());
547
  }
548
  }
573
  // Group products by Parent.
574
  if (in_array($this->productType, array( 'simple', 'external', 'variable', 'variable-subscription' ))) {
575
  // Group all product to one parent ( no XPath provided ).
576
+ if ($this->getImport()->options['is_multiple_grouping_product'] == 'no') {
577
  // Trying to find parent product according to matching options.
578
  if ($this->getImport()->options['grouping_indicator'] == 'xpath' && !is_numeric($this->getValue('product_grouping_parent'))) {
579
  $post = pmxi_findDuplicates(array(
584
  ));
585
  if (!empty($post)) {
586
  $this->setValue('product_grouping_parent', $post[0]);
587
+ } else {
 
588
  $this->setValue('product_grouping_parent', 0);
589
  }
590
+ } elseif ($this->getImport()->options['grouping_indicator'] != 'xpath') {
 
591
  $post = pmxi_findDuplicates($this->getArticle(), $this->getValue('custom_grouping_indicator_name'), $this->getValue('custom_grouping_indicator_value'), 'custom field');
592
  if (!empty($post)) {
593
  $this->setValue('product_grouping_parent', array_shift($post));
594
+ } else {
 
595
  $this->setValue('product_grouping_parent', 0);
596
  }
597
  }
609
  }
610
  }
611
  }
612
+ if (in_array($this->productType, array( 'grouped' ))) {
613
+ $children = $this->getValue('grouped_product_children');
614
+ if (!is_array($children)) {
615
+ $children = explode(",", $children);
616
+ $children = array_map('trim', $children);
617
+ }
618
+ $grouped = [];
619
+ if (!empty($children)) {
620
+ foreach ($children as $child) {
621
+ $product_id = wc_get_product_id_by_sku($child);
622
+ if (!empty($product_id)) {
623
+ $grouped[] = $product_id;
624
+ }
625
+ }
626
+ }
627
+ $this->setProperty('children', $grouped);
628
+ }
629
  }
630
 
631
  /*
700
  }
701
  break;
702
  case 'shipping_class_id':
703
+ if ($this->isNewProduct() || $this->getImportService()->isUpdateTaxonomy('product_shipping_class', $this->isNewProduct()) && $this->getImport()->options['update_categories_logic'] !== "add_new") {
704
  $this->productProperties[$property] = $value;
705
  }
706
  break;
libraries/parser/ProductsParser.php CHANGED
@@ -120,7 +120,8 @@ class ProductsParser extends ProductsParserBase {
120
  return array(
121
  'product_allow_backorders' => 'single_product_allow_backorders',
122
  'product_sold_individually' => 'single_product_sold_individually',
123
- 'default_attributes_type' => 'default_attributes_xpath'
 
124
  );
125
  }
126
  }
120
  return array(
121
  'product_allow_backorders' => 'single_product_allow_backorders',
122
  'product_sold_individually' => 'single_product_sold_individually',
123
+ 'default_attributes_type' => 'default_attributes_xpath',
124
+ 'grouped_product_children' => 'grouped_product_children_xpath'
125
  );
126
  }
127
  }
models/import/record.php CHANGED
@@ -135,22 +135,25 @@ class PMWI_Import_Record extends PMWI_Model_Record {
135
  */
136
  public function action_wpai_additional_variation_images($pid, $xml, $update) {
137
  $product = wc_get_product($pid);
138
- $variationID = get_post_meta($product->get_id(), XmlImportWooCommerceService::FIRST_VARIATION, TRUE);
139
- if ($product->is_type('variation') || !empty($variationID)) {
140
- if (empty($variationID)) {
141
- $variationID = $pid;
142
- }
143
- if ($gallery = get_post_meta($product->get_id(), '_product_image_gallery', TRUE)) {
144
- $key = null;
145
- if ( class_exists( 'Woo_Variation_Gallery' ) ) {
146
- $key = 'woo_variation_gallery_images';
147
- $gallery = explode( ',', trim( $gallery, ',' ) );
148
- } elseif ( class_exists( 'WC_Additional_Variation_Images' ) ) {
149
- $key = '_wc_additional_variation_images';
150
- }
151
 
152
- if ( ! empty( $key ) ) {
153
- update_post_meta($variationID, $key, $gallery);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
154
  }
155
  }
156
  }
135
  */
136
  public function action_wpai_additional_variation_images($pid, $xml, $update) {
137
  $product = wc_get_product($pid);
 
 
 
 
 
 
 
 
 
 
 
 
 
138
 
139
+ if ( $product ) {
140
+ $variationID = get_post_meta($product->get_id(), XmlImportWooCommerceService::FIRST_VARIATION, TRUE);
141
+ if ($product->is_type('variation') || !empty($variationID)) {
142
+ if (empty($variationID)) {
143
+ $variationID = $pid;
144
+ }
145
+ if ($gallery = get_post_meta($product->get_id(), '_product_image_gallery', TRUE)) {
146
+ $key = null;
147
+ if ( class_exists( 'Woo_Variation_Gallery' ) ) {
148
+ $key = 'woo_variation_gallery_images';
149
+ $gallery = explode( ',', trim( $gallery, ',' ) );
150
+ } elseif ( class_exists( 'WC_Additional_Variation_Images' ) ) {
151
+ $key = '_wc_additional_variation_images';
152
+ }
153
+
154
+ if ( ! empty( $key ) ) {
155
+ update_post_meta($variationID, $key, $gallery);
156
+ }
157
  }
158
  }
159
  }
plugin.php CHANGED
@@ -3,9 +3,9 @@
3
  Plugin Name: WP All Import - WooCommerce Add-On
4
  Plugin URI: http://www.wpallimport.com/woocommerce-product-import/?utm_source=import-wooco-products-addon-free&utm_medium=wp-plugins-page&utm_campaign=upgrade-to-pro
5
  Description: An extremely easy, drag & drop importer to import WooCommerce simple products. A paid upgrade is available for premium support and support for Variable, Grouped, and External/Affiliate products
6
- Version: 1.4.8
7
  Author: Soflyy
8
- WC tested up to: 5.7.1
9
  */
10
 
11
  if ( ! function_exists( 'is_plugin_active' ) ) {
@@ -25,7 +25,7 @@ if ( is_plugin_active('wpai-woocommerce-add-on/wpai-woocommerce-add-on.php') ) {
25
  }
26
  else {
27
 
28
- define('PMWI_FREE_VERSION', '1.4.8');
29
 
30
  define('PMWI_EDITION', 'free');
31
 
@@ -276,21 +276,25 @@ else {
276
  // Update Options
277
  switch ($options['update_custom_fields_logic']){
278
  case 'only':
279
- $fields_list = explode(',', $options['custom_fields_only_list']);
280
- if ( ! in_array('_featured', $fields_list) ){
281
- $options['is_update_featured_status'] = 0;
282
- }
283
- if ( ! in_array('_visibility', $fields_list) ){
284
- $options['is_update_catalog_visibility'] = 0;
 
 
285
  }
286
  break;
287
  case 'all_except':
288
- $fields_list = explode(',', $options['custom_fields_except_list']);
289
- if ( in_array('_featured', $fields_list) ){
290
- $options['is_update_featured_status'] = 0;
291
- }
292
- if ( in_array('_visibility', $fields_list) ){
293
- $options['is_update_catalog_visibility'] = 0;
 
 
294
  }
295
  break;
296
  }
@@ -402,9 +406,9 @@ else {
402
  $actionName = str_replace('-', '_', $action);
403
  if (method_exists($controllerName, $actionName)) {
404
 
405
- if ( ! get_current_user_id() or ! current_user_can('manage_options')) {
406
- // This nonce is not valid.
407
- die( 'Security check' );
408
 
409
  } else {
410
 
@@ -834,10 +838,12 @@ else {
834
  'single_product_subscription_length' => '',
835
  'is_multiple_product_subscription_limit' => 'yes',
836
  'multiple_product_subscription_limit' => 'no',
837
- 'single_product_subscription_limit' => ''
838
- );
839
- }
840
- }
 
 
841
 
842
  PMWI_Plugin::getInstance();
843
  }
3
  Plugin Name: WP All Import - WooCommerce Add-On
4
  Plugin URI: http://www.wpallimport.com/woocommerce-product-import/?utm_source=import-wooco-products-addon-free&utm_medium=wp-plugins-page&utm_campaign=upgrade-to-pro
5
  Description: An extremely easy, drag & drop importer to import WooCommerce simple products. A paid upgrade is available for premium support and support for Variable, Grouped, and External/Affiliate products
6
+ Version: 1.4.9
7
  Author: Soflyy
8
+ WC tested up to: 5.5.1
9
  */
10
 
11
  if ( ! function_exists( 'is_plugin_active' ) ) {
25
  }
26
  else {
27
 
28
+ define('PMWI_FREE_VERSION', '1.4.9');
29
 
30
  define('PMWI_EDITION', 'free');
31
 
276
  // Update Options
277
  switch ($options['update_custom_fields_logic']){
278
  case 'only':
279
+ if (!empty($options['custom_fields_only_list']) && !is_array($options['custom_fields_only_list'])) {
280
+ $fields_list = explode(',', $options['custom_fields_only_list']);
281
+ if (!in_array('_featured', $fields_list)) {
282
+ $options['is_update_featured_status'] = 0;
283
+ }
284
+ if (!in_array('_visibility', $fields_list)) {
285
+ $options['is_update_catalog_visibility'] = 0;
286
+ }
287
  }
288
  break;
289
  case 'all_except':
290
+ if (!empty($options['custom_fields_except_list']) && !is_array($options['custom_fields_except_list'])) {
291
+ $fields_list = explode(',', $options['custom_fields_except_list']);
292
+ if (in_array('_featured', $fields_list)) {
293
+ $options['is_update_featured_status'] = 0;
294
+ }
295
+ if (in_array('_visibility', $fields_list)) {
296
+ $options['is_update_catalog_visibility'] = 0;
297
+ }
298
  }
299
  break;
300
  }
406
  $actionName = str_replace('-', '_', $action);
407
  if (method_exists($controllerName, $actionName)) {
408
 
409
+ if ( ! get_current_user_id() or ! current_user_can(PMXI_Plugin::$capabilities)) {
410
+ // This nonce is not valid.
411
+ die( 'Security check' );
412
 
413
  } else {
414
 
838
  'single_product_subscription_length' => '',
839
  'is_multiple_product_subscription_limit' => 'yes',
840
  'multiple_product_subscription_limit' => 'no',
841
+ 'single_product_subscription_limit' => '',
842
+ 'grouped_product_children' => 'xpath',
843
+ 'grouped_product_children_xpath' => ''
844
+ );
845
+ }
846
+ }
847
 
848
  PMWI_Plugin::getInstance();
849
  }
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: soflyy, wpallimport
3
  Requires at least: 4.1
4
  Tested up to: 5.8
5
- Stable tag: 1.4.8
6
  License: GPLv2 or later
7
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
8
  Tags: woocommerce xml import, woocommerce csv import, woocommerce, import, xml, csv, wp all import, csv import, import csv, xml import, import xml, woocommerce csv importer, woocommerce xml importer, csv importer, csv import suite
@@ -83,6 +83,9 @@ The WooCommerce add-on will appear in the Step 4 of WP All Import.
83
 
84
  == Changelog ==
85
 
 
 
 
86
  = 1.4.8 =
87
  * bug fix: downloadable permissions wan not imported correctly
88
 
2
  Contributors: soflyy, wpallimport
3
  Requires at least: 4.1
4
  Tested up to: 5.8
5
+ Stable tag: 1.4.9
6
  License: GPLv2 or later
7
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
8
  Tags: woocommerce xml import, woocommerce csv import, woocommerce, import, xml, csv, wp all import, csv import, import csv, xml import, import xml, woocommerce csv importer, woocommerce xml importer, csv importer, csv import suite
83
 
84
  == Changelog ==
85
 
86
+ = 1.4.9 =
87
+ * bug fix: product_shipping_class taxonomy not updated
88
+
89
  = 1.4.8 =
90
  * bug fix: downloadable permissions wan not imported correctly
91
 
static/css/admin.css CHANGED
@@ -20,10 +20,13 @@
20
  width: 50px !important;
21
  }
22
  .wpallimport-plugin .options_group{
23
- padding-bottom: 10px;
24
  padding-top: 10px;
 
25
  /*overflow: hidden;*/
26
  }
 
 
 
27
  .wpallimport-plugin .options_group .input{
28
  padding-left: 8px;
29
  margin-top: 10px;
@@ -71,18 +74,23 @@
71
  overflow: hidden;
72
  margin: 5px 0;
73
  }
 
 
 
 
74
  .wpallimport-plugin .in_variations select, .wpallimport-plugin .is_visible select, .wpallimport-plugin .is_taxonomy select{
75
  float:none !important;
76
  }
77
  .wpallimport-plugin .in_variations, .wpallimport-plugin .is_visible, .wpallimport-plugin .is_taxonomy{
78
  display: block;
79
  float: left;
80
- margin: 5px 0 0 5px;
 
81
  }
82
  .wpallimport-plugin .is_create_taxonomy {
83
  display: block;
84
  float: left;
85
- margin: 5px 0 15px 5px;
86
  }
87
  .wpallimport-plugin .in_variations label, .wpallimport-plugin .is_visible label, .wpallimport-plugin .is_taxonomy label{
88
  width: auto;
@@ -111,7 +119,7 @@
111
  width: 75% !important;
112
  }
113
  .wpallimport-plugin .variations_tree{
114
- font-family: sans-serif;
115
  /*position: absolute;
116
  width:100%;
117
  top:-155px;*/
@@ -136,8 +144,8 @@
136
  margin-top: 0px;
137
  }
138
  .wpallimport-plugin .variations_tag .title {
139
- font-weight: bold;
140
- padding: 6px 8px;
141
  color: #464646;
142
  background: #fff;
143
  font-size: 12px;
@@ -198,10 +206,16 @@
198
  }
199
  }
200
  .wpallimport-plugin .use_parent{
201
- display: inline-block;
202
  position: relative;
203
  }
204
 
 
 
 
 
 
 
205
  .wpallimport-plugin table.custom-params label{
206
  font-size: 12px;
207
  left: 5px;
@@ -283,6 +297,21 @@
283
  .wpallimport-plugin #variable_product_options img{
284
  margin: 10px 0;
285
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
286
  .wpallimport-plugin .highlight{
287
  background: none repeat scroll 0 0 #CAD2DF;
288
  padding: 5px;
@@ -307,11 +336,6 @@
307
  height: 2200px;
308
  }
309
  .wpallimport-plugin #woocommerce-product-data .form-field,
310
- .wpallimport-plugin .woocommerce-order-data .form-field{
311
- margin-top: 10px;
312
- padding-left: 20px;
313
- }
314
- .wpallimport-plugin #woocommerce-product-data .form-field,
315
  .wpallimport-plugin .woocommerce-order-data .form-field{
316
  margin-top: 10px;
317
  padding-left: 20px;
@@ -329,10 +353,15 @@
329
  .wpallimport-plugin .pmwi_adjust_prices{
330
  display: none;
331
  }
 
 
 
 
332
  .wpallimport-plugin .pmwi_trigger_adjust_prices{
333
  cursor: pointer;
334
  width: 330px;
335
  }
 
336
  .wpallimport-plugin .pmwi_trigger_adjust_prices > strong > span.expanded:before,
337
  .wpallimport-plugin .pmwi_trigger_adjust_prices > strong > span:before,
338
  .wpallimport-plugin a.switcher > span {
@@ -351,15 +380,13 @@
351
  transform: scaleY(-1);
352
  margin-right: 2px;
353
  }
 
354
  .wpallimport-plugin .pmwi_trigger_adjust_prices > strong > span.expanded:before,
355
  .wpallimport-plugin a.switcher > span.expanded {
356
  background-position: 1px 1px;
357
  transform: scaleY(1);
358
  }
359
- .wpallimport-plugin .wpallimport-template select.pmwi_adjust_type {
360
- padding: 2px 25px 2px 6px;
361
- margin-left: 6px;
362
- }
363
  .wpallimport-plugin .advanced_attributes{
364
  display: block;
365
  float: left;
@@ -444,12 +471,13 @@
444
  .wpallimport-plugin .advanced_attribute_settings input[type="radio"]{
445
  float: left;
446
  }
447
-
448
  /*.wpallimport-plugin .shop_order_tabs li a::before{
449
  content: "" !important;
450
  }*/
451
  .wpallimport-plugin .wpallimport-order-billing-fields{
452
  width: 98%;
 
 
453
  }
454
  .wpallimport-plugin .wpallimport-order-billing-fields input[type="text"]{
455
  width: 100% !important;
@@ -569,11 +597,105 @@ div#order_taxes.panel.woocommerce_options_panel {
569
  visibility: visible !important;
570
  height: 100px;
571
  }
572
-
 
 
573
  #attributes_table thead tr td,
574
  #variable_product_options #variation_attributes_table thead tr td {
575
  padding-bottom: 5px;
576
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
577
 
578
  /****************/
579
  /* Free Edition */
@@ -617,57 +739,25 @@ div#order_taxes.panel.woocommerce_options_panel {
617
  }
618
 
619
  .wpallimport-plugin #order_refunds label {
620
- float: none;
 
621
  }
622
 
623
  .wpallimport-plugin #order_refunds .date {
624
  display: flex;
625
  flex-direction: row;
626
  align-items: center;
 
627
  }
628
 
629
- #shipping_product_data .form-field.dimensions-field {
630
- margin-top: 20px;
631
- margin-bottom: 5px;
632
- }
633
-
634
- #shipping_product_data .dimensions-field,
635
- #shipping_product_data .weight-field {
636
- display: flex;
637
- flex-direction: row;
638
- }
639
-
640
- #shipping_product_data .dimensions-field > label,
641
- #shipping_product_data .weight-field > label {
642
- float: none;
643
- flex: 1;
644
- }
645
-
646
- #shipping_product_data .dimensions-field > div,
647
- #shipping_product_data .weight-field > div {
648
- display: flex;
649
- flex-direction: column;
650
- flex: 2;
651
- }
652
-
653
- #shipping_product_data .dimensions-field > div > input,
654
- #shipping_product_data .weight-field > div > input {
655
- width: 60%;
656
  }
657
 
658
- #shipping_product_data .switcher-target-multiple_product_shipping_class_yes {
659
- margin-left: 24px;
660
- }
661
 
662
- #shipping_product_data input[name="single_product_width"],
663
- #shipping_product_data input[name="single_product_height"] {
664
- margin-top: 10px;
665
- }
666
-
667
- .wpallimport-plugin .woocommerce-order-data .form-field.add-product-meta {
668
- padding-left: 0 !important;
669
- border-spacing: 0 !important;
670
- }
671
 
672
  @media screen and (min-width: 1340px) {
673
  .wpallimport-plugin .advanced_attributes{
@@ -680,4 +770,42 @@ div#order_taxes.panel.woocommerce_options_panel {
680
  .wpallimport-plugin .in_variations, .wpallimport-plugin .is_visible, .wpallimport-plugin .is_taxonomy{
681
  margin: 5px 30px 30px 0;
682
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
683
  }
20
  width: 50px !important;
21
  }
22
  .wpallimport-plugin .options_group{
 
23
  padding-top: 10px;
24
+ padding-bottom: 10px;
25
  /*overflow: hidden;*/
26
  }
27
+ .wpallimport-plugin .options_group .order-notes .input {
28
+ padding-left: 0;
29
+ }
30
  .wpallimport-plugin .options_group .input{
31
  padding-left: 8px;
32
  margin-top: 10px;
74
  overflow: hidden;
75
  margin: 5px 0;
76
  }
77
+ .wpallimport-plugin .switcher-target-order_refund_issued_by_cf.set_with_xpath label {
78
+ line-height: 30px;
79
+ margin-left: 5px !important; /* Override the !important directive */
80
+ }
81
  .wpallimport-plugin .in_variations select, .wpallimport-plugin .is_visible select, .wpallimport-plugin .is_taxonomy select{
82
  float:none !important;
83
  }
84
  .wpallimport-plugin .in_variations, .wpallimport-plugin .is_visible, .wpallimport-plugin .is_taxonomy{
85
  display: block;
86
  float: left;
87
+ margin: 5px 20px 10px 0;
88
+
89
  }
90
  .wpallimport-plugin .is_create_taxonomy {
91
  display: block;
92
  float: left;
93
+ margin: 5px 0 20px 0;
94
  }
95
  .wpallimport-plugin .in_variations label, .wpallimport-plugin .is_visible label, .wpallimport-plugin .is_taxonomy label{
96
  width: auto;
119
  width: 75% !important;
120
  }
121
  .wpallimport-plugin .variations_tree{
122
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
123
  /*position: absolute;
124
  width:100%;
125
  top:-155px;*/
144
  margin-top: 0px;
145
  }
146
  .wpallimport-plugin .variations_tag .title {
147
+ font-weight: 600;
148
+ padding: 10px 16px;
149
  color: #464646;
150
  background: #fff;
151
  font-size: 12px;
206
  }
207
  }
208
  .wpallimport-plugin .use_parent{
209
+ display: inline-block;
210
  position: relative;
211
  }
212
 
213
+ .wpallimport-plugin .use_parent.align {
214
+ display: inline-flex;
215
+ align-items: center;
216
+ margin-top: 3px;
217
+ }
218
+
219
  .wpallimport-plugin table.custom-params label{
220
  font-size: 12px;
221
  left: 5px;
297
  .wpallimport-plugin #variable_product_options img{
298
  margin: 10px 0;
299
  }
300
+
301
+ .wpallimport-plugin #variable_sale_price_shedule {
302
+ text-transform: capitalize;
303
+ width: 100%;
304
+ display: block;
305
+ text-align: right;
306
+ margin-top: 15px;
307
+ margin-right: 20px;
308
+ padding-top: 10px;
309
+ }
310
+
311
+ .wpallimport-plugin #cancel_variable_regular_price_shedule {
312
+ text-transform: capitalize;
313
+ }
314
+
315
  .wpallimport-plugin .highlight{
316
  background: none repeat scroll 0 0 #CAD2DF;
317
  padding: 5px;
336
  height: 2200px;
337
  }
338
  .wpallimport-plugin #woocommerce-product-data .form-field,
 
 
 
 
 
339
  .wpallimport-plugin .woocommerce-order-data .form-field{
340
  margin-top: 10px;
341
  padding-left: 20px;
353
  .wpallimport-plugin .pmwi_adjust_prices{
354
  display: none;
355
  }
356
+ .wpallimport-plugin .wpallimport-template select.pmwi_adjust_type {
357
+ padding: 2px 25px 2px 6px;
358
+ margin-left: 6px;
359
+ }
360
  .wpallimport-plugin .pmwi_trigger_adjust_prices{
361
  cursor: pointer;
362
  width: 330px;
363
  }
364
+
365
  .wpallimport-plugin .pmwi_trigger_adjust_prices > strong > span.expanded:before,
366
  .wpallimport-plugin .pmwi_trigger_adjust_prices > strong > span:before,
367
  .wpallimport-plugin a.switcher > span {
380
  transform: scaleY(-1);
381
  margin-right: 2px;
382
  }
383
+
384
  .wpallimport-plugin .pmwi_trigger_adjust_prices > strong > span.expanded:before,
385
  .wpallimport-plugin a.switcher > span.expanded {
386
  background-position: 1px 1px;
387
  transform: scaleY(1);
388
  }
389
+
 
 
 
390
  .wpallimport-plugin .advanced_attributes{
391
  display: block;
392
  float: left;
471
  .wpallimport-plugin .advanced_attribute_settings input[type="radio"]{
472
  float: left;
473
  }
 
474
  /*.wpallimport-plugin .shop_order_tabs li a::before{
475
  content: "" !important;
476
  }*/
477
  .wpallimport-plugin .wpallimport-order-billing-fields{
478
  width: 98%;
479
+ border-collapse: separate;
480
+ border-spacing: 10px;
481
  }
482
  .wpallimport-plugin .wpallimport-order-billing-fields input[type="text"]{
483
  width: 100% !important;
597
  visibility: visible !important;
598
  height: 100px;
599
  }
600
+ #variable_product_options .options_group.variation_attributes {
601
+ overflow: initial;
602
+ }
603
  #attributes_table thead tr td,
604
  #variable_product_options #variation_attributes_table thead tr td {
605
  padding-bottom: 5px;
606
  }
607
+ #variable_product_options #variation_attributes_table .wpallimport-radio-field {
608
+ padding: 10px 0 1px 0 !important;
609
+ }
610
+ #variable_product_options #variation_attributes_table .other-attributes {
611
+ margin-left: -65px;
612
+ }
613
+
614
+ #attributes_table .add-new-custom,
615
+ #variable_product_options #variation_attributes_table .add-new-custom {
616
+ margin-top: -5px;
617
+ }
618
+
619
+
620
+ #variation_attributes_table .ui-sortable .form-field td:nth-child(2) .wpallimport-radio-field {
621
+ /* !important required to overwrite previous !important modifiers */
622
+ padding: 0 20px 0 0 !important;
623
+ }
624
+
625
+ #shipping_product_data input[name="single_product_width"],
626
+ #shipping_product_data input[name="single_product_height"] {
627
+ margin-top: 10px;
628
+ }
629
+
630
+ #shipping_product_data .form-field.dimensions-field {
631
+ margin-top: 20px;
632
+ margin-bottom: 5px;
633
+ }
634
+
635
+ #shipping_product_data .dimensions-field,
636
+ #shipping_product_data .weight-field {
637
+ display: flex;
638
+ flex-direction: row;
639
+ }
640
+
641
+ #shipping_product_data .dimensions-field > label,
642
+ #shipping_product_data .weight-field > label {
643
+ float: none;
644
+ flex: 1;
645
+ }
646
+
647
+ #shipping_product_data .dimensions-field > div,
648
+ #shipping_product_data .weight-field > div {
649
+ display: flex;
650
+ flex-direction: column;
651
+ flex: 2;
652
+ }
653
+
654
+ #shipping_product_data .dimensions-field > div > input,
655
+ #shipping_product_data .weight-field > div > input {
656
+ width: 60%;
657
+ }
658
+
659
+ #shipping_product_data .switcher-target-multiple_product_shipping_class_yes {
660
+ margin-left: 24px;
661
+ }
662
+
663
+ .wpallimport-plugin .ui-datepicker-trigger {
664
+ position: relative;
665
+ top: -2px;
666
+ right: 30px;
667
+ }
668
+
669
+ .wpallimport-plugin .form-table td label[for=convert_decimal_separator],
670
+ .wpallimport-plugin .form-table td label[for=disable_prepare_price],
671
+ .wpallimport-plugin .form-table td label[for=prepare_price_to_woo_format] {
672
+ /* Override other !important declarations */
673
+ margin-right: 2px !important;
674
+ }
675
+
676
+ .wpallimport-plugin #linked_product_data .wpallimport-help {
677
+ top: 4px;
678
+ }
679
+
680
+ .wpallimport-plugin #general_product_data .ui-datepicker-trigger {
681
+ top: -1px;
682
+ right: 28px;
683
+ }
684
+
685
+ .wpallimport-plugin #cancel_regular_price_shedule {
686
+ margin-left: -15px;
687
+ text-transform: capitalize;
688
+ }
689
+
690
+ .wpallimport-plugin #regular_price_shedule {
691
+ margin-left: 5px;
692
+ text-transform: capitalize;
693
+ }
694
+
695
+ .wpallimport-plugin .woocommerce-order-data .form-field.add-product-meta {
696
+ padding-left: 0 !important;
697
+ border-spacing: 0 !important;
698
+ }
699
 
700
  /****************/
701
  /* Free Edition */
739
  }
740
 
741
  .wpallimport-plugin #order_refunds label {
742
+ width: auto;
743
+ margin-right: 15px !important;
744
  }
745
 
746
  .wpallimport-plugin #order_refunds .date {
747
  display: flex;
748
  flex-direction: row;
749
  align-items: center;
750
+ width: 98%;
751
  }
752
 
753
+ .wpallimport-plugin .wpallimport-radio-field label[for="products_source_new"] {
754
+ width: 80%;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
755
  }
756
 
 
 
 
757
 
758
+ /*****************/
759
+ /* Media Queries */
760
+ /*****************/
 
 
 
 
 
 
761
 
762
  @media screen and (min-width: 1340px) {
763
  .wpallimport-plugin .advanced_attributes{
770
  .wpallimport-plugin .in_variations, .wpallimport-plugin .is_visible, .wpallimport-plugin .is_taxonomy{
771
  margin: 5px 30px 30px 0;
772
  }
773
+ }
774
+
775
+ @media screen and (min-width: 1190px) {
776
+ .wpallimport-plugin .wpallimport-radio-field label[for="products_source_new"] {
777
+ width: auto;
778
+ }
779
+ }
780
+
781
+ @media screen and (max-width: 1280px) {
782
+ .wpallimport-plugin #variable_product_options .switcher-target-auto_matching_parent .form-field label,
783
+ .wpallimport-plugin #variable_product_options .switcher-target-auto_matching_parent_first_is_parent_id .form-field label,
784
+ .wpallimport-plugin #variable_product_options .switcher-target-auto_matching_parent_first_is_variation .form-field label {
785
+ width: auto !important;
786
+ }
787
+ .wpallimport-plugin #variable_product_options .switcher-target-auto_matching_parent .form-field input,
788
+ .wpallimport-plugin #variable_product_options .switcher-target-auto_matching_parent_first_is_parent_id .form-field input,
789
+ .wpallimport-plugin #variable_product_options .switcher-target-auto_matching_parent_first_is_variation .form-field input {
790
+ width: 100% !important;
791
+ }
792
+
793
+ .wpallimport-plugin #variable_product_options .wpallimport-radio-field {
794
+ margin-bottom: 15px;
795
+ }
796
+
797
+ .wpallimport-plugin #variable_product_options .wpallimport-radio-field > input[type="radio"] {
798
+ display: inline-block;
799
+ margin-right: 3px;
800
+ float: none !important;
801
+ }
802
+
803
+ .wpallimport-plugin #variable_product_options .wpallimport-radio-field > label {
804
+ float: none;
805
+ display: inline;
806
+ }
807
+
808
+ .wpallimport-plugin #variable_product_options img {
809
+ max-width: 100%;
810
+ }
811
  }
views/admin/import/options/_reimport_options.php CHANGED
@@ -59,6 +59,14 @@
59
  <a href="#help" class="wpallimport-help" style="position: relative; top: -2px;" title="<?php _e('These options will only be used if you run this import again later. All data is imported the first time you run an import.<br/><br/>Note that WP All Import will only update/remove posts created by this import. If you want to match to posts that already exist on this site, use Existing Items in Step 1.', PMWI_Plugin::TEXT_DOMAIN) ?>">?</a>
60
  <?php endif; ?>
61
  <div class="switcher-target-is_not_keep_former_posts" style="padding-left:17px;">
 
 
 
 
 
 
 
 
62
  <input type="radio" id="update_all_data" class="switcher" name="update_all_data" value="yes" <?php echo 'no' != $post['update_all_data'] ? 'checked="checked"': '' ?>/>
63
  <label for="update_all_data"><?php _e('Update all data', PMWI_Plugin::TEXT_DOMAIN )?></label><br>
64
 
@@ -149,6 +157,11 @@
149
  <input type="checkbox" id="is_update_total" name="is_update_total" value="1" <?php echo $post['is_update_total'] ? 'checked="checked"': '' ?> class="switcher"/>
150
  <label for="is_update_total"><?php _e('Order Total', PMWI_Plugin::TEXT_DOMAIN) ?></label>
151
  </div>
 
 
 
 
 
152
  <!-- Do not update order custom fields -->
153
  <!-- <input type="hidden" name="is_update_custom_fields" value="0" /> -->
154
 
59
  <a href="#help" class="wpallimport-help" style="position: relative; top: -2px;" title="<?php _e('These options will only be used if you run this import again later. All data is imported the first time you run an import.<br/><br/>Note that WP All Import will only update/remove posts created by this import. If you want to match to posts that already exist on this site, use Existing Items in Step 1.', PMWI_Plugin::TEXT_DOMAIN) ?>">?</a>
60
  <?php endif; ?>
61
  <div class="switcher-target-is_not_keep_former_posts" style="padding-left:17px;">
62
+
63
+ <div class="input" style="margin-left: 4px;">
64
+ <input type="hidden" name="is_selective_hashing" value="0" />
65
+ <input type="checkbox" id="is_selective_hashing" name="is_selective_hashing" value="1" <?php echo $post['is_selective_hashing'] ? 'checked="checked"': '' ?> />
66
+ <label for="is_selective_hashing"><?php printf(__('Skip posts if their data in your file has not changed', 'wp_all_import_plugin'), $custom_type->labels->name); ?></label>
67
+ <a href="#help" class="wpallimport-help" style="position: relative; top: -2px;" title="<?php _e('When enabled, WP All Import will keep track of every post\'s data as it is imported. When the import is run again, posts will be skipped if their data in the import file has not changed since the last run.<br/><br/>Posts will not be skipped if the import template or settings change, or if you make changes to the custom code in the Function Editor.', 'wp_all_import_plugin') ?>">?</a>
68
+ </div>
69
+
70
  <input type="radio" id="update_all_data" class="switcher" name="update_all_data" value="yes" <?php echo 'no' != $post['update_all_data'] ? 'checked="checked"': '' ?>/>
71
  <label for="update_all_data"><?php _e('Update all data', PMWI_Plugin::TEXT_DOMAIN )?></label><br>
72
 
157
  <input type="checkbox" id="is_update_total" name="is_update_total" value="1" <?php echo $post['is_update_total'] ? 'checked="checked"': '' ?> class="switcher"/>
158
  <label for="is_update_total"><?php _e('Order Total', PMWI_Plugin::TEXT_DOMAIN) ?></label>
159
  </div>
160
+ <div class="input">
161
+ <input type="hidden" name="is_update_author" value="0" />
162
+ <input type="checkbox" id="is_update_author" name="is_update_author" value="1" <?php echo $post['is_update_author'] ? 'checked="checked"': '' ?> />
163
+ <label for="is_update_author"><?php _e('Author', PMWI_Plugin::TEXT_DOMAIN) ?></label>
164
+ </div>
165
  <!-- Do not update order custom fields -->
166
  <!-- <input type="hidden" name="is_update_custom_fields" value="0" /> -->
167
 
views/admin/import/product/_tabs/_advanced.php CHANGED
@@ -1,7 +1,11 @@
1
  <div class="panel woocommerce_options_panel" id="advanced_product_data" style="display:none;">
2
  <?php if (class_exists('PMWI_Plugin') && PMWI_EDITION == 'free'): ?>
3
  <div class="woo-add-on-free-edition-notice upgrade_template">
4
- <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707227&edd_options%5Bprice_id%5D=1" target="_blank" class="upgrade_woo_link"><?php _e('Upgrade to the Pro edition of WP All Import and the WooCommerce Add-On to Import to Variable, Affiliate, and Grouped Products', PMWI_Plugin::TEXT_DOMAIN);?></a>
 
 
 
 
5
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
6
  </div>
7
  <?php endif; ?>
@@ -142,4 +146,4 @@
142
  </div>
143
 
144
  </div> <!-- End options group -->
145
- </div><!-- End Product Panel -->
1
  <div class="panel woocommerce_options_panel" id="advanced_product_data" style="display:none;">
2
  <?php if (class_exists('PMWI_Plugin') && PMWI_EDITION == 'free'): ?>
3
  <div class="woo-add-on-free-edition-notice upgrade_template">
4
+ <?php if(class_exists('PMXI_Plugin') && PMXI_EDITION == 'paid'):?>
5
+ <a href="https://www.wpallimport.com/portal/discounts/?utm_source=import-plugin-pro&utm_medium=upgrade-notice&utm_campaign=import-woo" target="_blank" class="upgrade_woo_link"><?php _e('Upgrade to the Pro edition of the WooCommerce Add-On to Import to Variable, Affiliate, and Grouped Products', PMWI_Plugin::TEXT_DOMAIN);?></a>
6
+ <?php else: ?>
7
+ <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707227&edd_options%5Bprice_id%5D=1" target="_blank" class="upgrade_woo_link"><?php _e('Upgrade to the WooCommerce Import Package to Import to Variable, Affiliate, and Grouped Products', PMWI_Plugin::TEXT_DOMAIN);?></a>
8
+ <?php endif; ?>
9
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
10
  </div>
11
  <?php endif; ?>
146
  </div>
147
 
148
  </div> <!-- End options group -->
149
+ </div><!-- End Product Panel -->
views/admin/import/product/_tabs/_attributes.php CHANGED
@@ -1,8 +1,12 @@
1
  <div class="panel woocommerce_options_panel" id="woocommerce_attributes" style="display:none;">
2
- <?php if (class_exists('PMWI_Plugin') && PMWI_EDITION == 'free'): ?>
3
  <div style="margin-left:-2%;">
4
- <div class="woo-add-on-free-edition-notice upgrade_template" style="margin-top:0;">
5
- <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707227&edd_options%5Bprice_id%5D=1" target="_blank" class="upgrade_woo_link"><?php _e('Upgrade to the Pro edition of WP All Import and the WooCommerce Add-On to Import to Variable, Affiliate, and Grouped Products', PMWI_Plugin::TEXT_DOMAIN);?></a>
 
 
 
 
6
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
7
  </div>
8
  </div>
@@ -14,7 +18,7 @@
14
  <td><?php _e('Name', PMWI_Plugin::TEXT_DOMAIN); ?></td>
15
  <td>
16
  <?php _e('Values', PMWI_Plugin::TEXT_DOMAIN); ?>
17
- <a href="#help" class="wpallimport-help" title="<?php _e('Separate multiple values with a |', PMWI_Plugin::TEXT_DOMAIN) ?>" style="top:-1px;">?</a>
18
  </td>
19
  <td></td>
20
  </tr>
@@ -152,7 +156,7 @@
152
 
153
  </div>
154
  </td>
155
- <td class="action remove"><a href="#remove" style="top:9px;right: 9px;"></a></td>
156
  </tr>
157
  <?php endforeach ?>
158
  <?php else: ?>
@@ -321,7 +325,7 @@
321
 
322
  <div class="advanced_attribute_settings advanced_settings_template">
323
 
324
- <div class="input" style="display:inline-block;">
325
  <div class="input">
326
  <input type="radio" id="advanced_in_variations_yes_00" class="switcher" name="advanced_in_variations[00]" value="yes" checked="checked"/>
327
  <label for="advanced_in_variations_yes_00"><?php _e("In Variations", PMWI_Plugin::TEXT_DOMAIN); ?></label>
@@ -343,7 +347,7 @@
343
  </div>
344
  </div>
345
 
346
- <div class="input" style="display:inline-block;">
347
  <div class="input">
348
  <input type="radio" id="advanced_is_visible_yes_00" class="switcher" name="advanced_is_visible[00]" value="yes" checked="checked"/>
349
  <label for="advanced_is_visible_yes_00"><?php _e("Is Visible", PMWI_Plugin::TEXT_DOMAIN); ?></label>
@@ -365,7 +369,7 @@
365
  </div>
366
  </div>
367
 
368
- <div class="input" style="display:inline-block;">
369
  <div class="input">
370
  <input type="radio" id="advanced_is_taxonomy_yes_00" class="switcher" name="advanced_is_taxonomy[00]" value="yes" checked="checked"/>
371
  <label for="advanced_is_taxonomy_yes_00"><?php _e("Is Taxonomy", PMWI_Plugin::TEXT_DOMAIN); ?></label>
@@ -387,7 +391,7 @@
387
  </div>
388
  </div>
389
 
390
- <div class="input" style="display:inline-block;">
391
  <div class="input">
392
  <input type="radio" id="advanced_is_create_terms_yes_00" class="switcher" name="advanced_is_create_terms[00]" value="yes" checked="checked"/>
393
  <label for="advanced_is_create_terms_yes_00"><?php _e("Auto-Create Terms", PMWI_Plugin::TEXT_DOMAIN); ?></label>
@@ -416,13 +420,13 @@
416
  <td class="action remove"><a href="#remove" style="top: 9px;right: 9px;"></a></td>
417
  </tr>
418
  <tr class="wpallimport-table-actions">
419
- <td colspan="3"><a href="#add" title="<?php _e('add', PMWI_Plugin::TEXT_DOMAIN)?>" class="action add-new-custom"><?php _e('Add more', PMWI_Plugin::TEXT_DOMAIN) ?></a></td>
420
  </tr>
421
  </tbody>
422
  </table>
423
  </div>
424
  <div class="options_group show_if_variable">
425
- <p class="form-field wpallimport-radio-field" style="padding-left: 10px !important;">
426
  <input type="hidden" name="link_all_variations" value="0" />
427
  <input type="checkbox" id="link_all_variations" name="link_all_variations" value="1" <?php echo $post['link_all_variations'] ? 'checked="checked"' : '' ?>/>
428
  <label style="width: 100px;" for="link_all_variations"><?php _e('Link all variations', PMWI_Plugin::TEXT_DOMAIN) ?></label>
1
  <div class="panel woocommerce_options_panel" id="woocommerce_attributes" style="display:none;">
2
+ <?php if (class_exists('PMWI_Plugin') && PMWI_EDITION == 'free'): ?>
3
  <div style="margin-left:-2%;">
4
+ <div class="woo-add-on-free-edition-notice upgrade_template">
5
+ <?php if(class_exists('PMXI_Plugin') && PMXI_EDITION == 'paid'):?>
6
+ <a href="https://www.wpallimport.com/portal/discounts/?utm_source=import-plugin-pro&utm_medium=upgrade-notice&utm_campaign=import-woo" target="_blank" class="upgrade_woo_link"><?php _e('Upgrade to the Pro edition of the WooCommerce Add-On to Import to Variable, Affiliate, and Grouped Products', PMWI_Plugin::TEXT_DOMAIN);?></a>
7
+ <?php else: ?>
8
+ <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707227&edd_options%5Bprice_id%5D=1" target="_blank" class="upgrade_woo_link"><?php _e('Upgrade to the WooCommerce Import Package to Import to Variable, Affiliate, and Grouped Products', PMWI_Plugin::TEXT_DOMAIN);?></a>
9
+ <?php endif; ?>
10
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
11
  </div>
12
  </div>
18
  <td><?php _e('Name', PMWI_Plugin::TEXT_DOMAIN); ?></td>
19
  <td>
20
  <?php _e('Values', PMWI_Plugin::TEXT_DOMAIN); ?>
21
+ <a href="#help" class="wpallimport-help" title="<?php _e('Separate multiple values with a |', PMWI_Plugin::TEXT_DOMAIN) ?>" style="top:-2px;">?</a>
22
  </td>
23
  <td></td>
24
  </tr>
156
 
157
  </div>
158
  </td>
159
+ <td class="action remove"><a href="#remove" style="top:9px;right:9px;"></a></td>
160
  </tr>
161
  <?php endforeach ?>
162
  <?php else: ?>
325
 
326
  <div class="advanced_attribute_settings advanced_settings_template">
327
 
328
+ <div class="input advanced_in_variations" style="display:inline-block;">
329
  <div class="input">
330
  <input type="radio" id="advanced_in_variations_yes_00" class="switcher" name="advanced_in_variations[00]" value="yes" checked="checked"/>
331
  <label for="advanced_in_variations_yes_00"><?php _e("In Variations", PMWI_Plugin::TEXT_DOMAIN); ?></label>
347
  </div>
348
  </div>
349
 
350
+ <div class="input advanced_is_visible" style="display:inline-block;">
351
  <div class="input">
352
  <input type="radio" id="advanced_is_visible_yes_00" class="switcher" name="advanced_is_visible[00]" value="yes" checked="checked"/>
353
  <label for="advanced_is_visible_yes_00"><?php _e("Is Visible", PMWI_Plugin::TEXT_DOMAIN); ?></label>
369
  </div>
370
  </div>
371
 
372
+ <div class="input advanced_is_taxonomy" style="display:inline-block;">
373
  <div class="input">
374
  <input type="radio" id="advanced_is_taxonomy_yes_00" class="switcher" name="advanced_is_taxonomy[00]" value="yes" checked="checked"/>
375
  <label for="advanced_is_taxonomy_yes_00"><?php _e("Is Taxonomy", PMWI_Plugin::TEXT_DOMAIN); ?></label>
391
  </div>
392
  </div>
393
 
394
+ <div class="input advanced_is_create_terms" style="display:inline-block;">
395
  <div class="input">
396
  <input type="radio" id="advanced_is_create_terms_yes_00" class="switcher" name="advanced_is_create_terms[00]" value="yes" checked="checked"/>
397
  <label for="advanced_is_create_terms_yes_00"><?php _e("Auto-Create Terms", PMWI_Plugin::TEXT_DOMAIN); ?></label>
420
  <td class="action remove"><a href="#remove" style="top: 9px;right: 9px;"></a></td>
421
  </tr>
422
  <tr class="wpallimport-table-actions">
423
+ <td colspan="3"><a href="#add" title="<?php _e('add', PMWI_Plugin::TEXT_DOMAIN)?>" class="action add-new-custom"><?php _e('Add Attribute', PMWI_Plugin::TEXT_DOMAIN) ?></a></td>
424
  </tr>
425
  </tbody>
426
  </table>
427
  </div>
428
  <div class="options_group show_if_variable">
429
+ <p class="form-field wpallimport-radio-field" style="padding-left: 0 !important;">
430
  <input type="hidden" name="link_all_variations" value="0" />
431
  <input type="checkbox" id="link_all_variations" name="link_all_variations" value="1" <?php echo $post['link_all_variations'] ? 'checked="checked"' : '' ?>/>
432
  <label style="width: 100px;" for="link_all_variations"><?php _e('Link all variations', PMWI_Plugin::TEXT_DOMAIN) ?></label>
views/admin/import/product/_tabs/_general.php CHANGED
@@ -1,9 +1,13 @@
1
  <div class="panel woocommerce_options_panel" id="general_product_data">
2
- <?php if (class_exists('PMWI_Plugin') && PMWI_EDITION == 'free'): ?>
3
- <div class="woo-add-on-free-edition-notice upgrade_template">
4
- <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707227&edd_options%5Bprice_id%5D=1" target="_blank" class="upgrade_woo_link"><?php _e('Upgrade to the Pro edition of WP All Import and the WooCommerce Add-On to Import to Variable, Affiliate, and Grouped Products', PMWI_Plugin::TEXT_DOMAIN);?></a>
5
- <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
6
- </div>
 
 
 
 
7
  <?php endif; ?>
8
  <div class="options_group">
9
  <p class="form-field">
@@ -44,7 +48,7 @@
44
  <input type="text" class="datepicker" name="single_sale_price_dates_from" value="<?php echo esc_attr($post['single_sale_price_dates_from']) ?>" style="float:none; width:110px;"/>
45
  <span><?php _e('and', PMWI_Plugin::TEXT_DOMAIN) ?></span>
46
  <input type="text" class="datepicker" name="single_sale_price_dates_to" value="<?php echo esc_attr($post['single_sale_price_dates_to']) ?>" style="float:none !important; width:110px;"/>
47
- &nbsp;<a id="cancel_regular_price_shedule" href="javascript:void(0);"><?php _e('cancel', PMWI_Plugin::TEXT_DOMAIN);?></a>
48
  </span>
49
  </p>
50
 
@@ -59,8 +63,8 @@
59
  <option value="%" <?php echo ($post['single_product_regular_price_adjust_type'] == '%') ? 'selected="selected"' : ''; ?>>%</option>
60
  <option value="$" <?php echo ($post['single_product_regular_price_adjust_type'] == '$') ? 'selected="selected"' : ''; ?>><?php echo get_woocommerce_currency_symbol(); ?></option>
61
  </select>
62
- <a href="#help" class="wpallimport-help pmwi_percentage_prices_note" title="<?php _e('Leave blank or enter in 100% to keep the price as is. Enter in 110% to markup by 10%. Enter in 50% to cut prices in half.', PMWI_Plugin::TEXT_DOMAIN) ?>">?</a>
63
- <a href="#help" class="wpallimport-help pmwi_reduce_prices_note" title="<?php _e('Enter a negative number to reduce prices.', PMWI_Plugin::TEXT_DOMAIN) ?>">?</a>
64
  <span class="wpallimport-clear"></span>
65
  </p>
66
 
@@ -71,8 +75,8 @@
71
  <option value="%" <?php echo ($post['single_product_sale_price_adjust_type'] == '%') ? 'selected="selected"' : ''; ?>>%</option>
72
  <option value="$" <?php echo ($post['single_product_sale_price_adjust_type'] == '$') ? 'selected="selected"' : ''; ?>><?php echo get_woocommerce_currency_symbol(); ?></option>
73
  </select>
74
- <a href="#help" class="wpallimport-help pmwi_percentage_prices_note" title="<?php _e('Leave blank or enter in 100% to keep the price as is. Enter in 110% to markup by 10%. Enter in 50% to cut prices in half.', PMWI_Plugin::TEXT_DOMAIN) ?>">?</a>
75
- <a href="#help" class="wpallimport-help pmwi_reduce_prices_note" title="<?php _e('Enter a negative number to reduce prices.', PMWI_Plugin::TEXT_DOMAIN) ?>">?</a>
76
  <span class="wpallimport-clear"></span>
77
  </p>
78
  </div>
@@ -174,7 +178,7 @@
174
  </p>
175
  <p class="form-field">
176
  <label><?php _e("Download Limit", PMWI_Plugin::TEXT_DOMAIN); ?></label>
177
- <input type="text" class="short" placeholder="Unimited" name="single_product_download_limit" value="<?php echo esc_attr($post['single_product_download_limit']) ?>"/>&nbsp;
178
  <a href="#help" class="wpallimport-help" title="<?php _e( 'Leave blank for unlimited re-downloads.', PMWI_Plugin::TEXT_DOMAIN ) ?>">?</a>
179
  </p>
180
  <p class="form-field">
1
  <div class="panel woocommerce_options_panel" id="general_product_data">
2
+ <?php if (class_exists('PMWI_Plugin') && PMWI_EDITION == 'free'): ?>
3
+ <div class="woo-add-on-free-edition-notice upgrade_template">
4
+ <?php if(class_exists('PMXI_Plugin') && PMXI_EDITION == 'paid'):?>
5
+ <a href="https://www.wpallimport.com/portal/discounts/?utm_source=import-plugin-pro&utm_medium=upgrade-notice&utm_campaign=import-woo" target="_blank" class="upgrade_woo_link"><?php _e('Upgrade to the Pro edition of the WooCommerce Add-On to Import to Variable, Affiliate, and Grouped Products', PMWI_Plugin::TEXT_DOMAIN);?></a>
6
+ <?php else: ?>
7
+ <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707227&edd_options%5Bprice_id%5D=1" target="_blank" class="upgrade_woo_link"><?php _e('Upgrade to the WooCommerce Import Package to Import to Variable, Affiliate, and Grouped Products', PMWI_Plugin::TEXT_DOMAIN);?></a>
8
+ <?php endif; ?>
9
+ <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
10
+ </div>
11
  <?php endif; ?>
12
  <div class="options_group">
13
  <p class="form-field">
48
  <input type="text" class="datepicker" name="single_sale_price_dates_from" value="<?php echo esc_attr($post['single_sale_price_dates_from']) ?>" style="float:none; width:110px;"/>
49
  <span><?php _e('and', PMWI_Plugin::TEXT_DOMAIN) ?></span>
50
  <input type="text" class="datepicker" name="single_sale_price_dates_to" value="<?php echo esc_attr($post['single_sale_price_dates_to']) ?>" style="float:none !important; width:110px;"/>
51
+ <a id="cancel_regular_price_shedule" href="javascript:void(0);"><?php _e('cancel', PMWI_Plugin::TEXT_DOMAIN);?></a>
52
  </span>
53
  </p>
54
 
63
  <option value="%" <?php echo ($post['single_product_regular_price_adjust_type'] == '%') ? 'selected="selected"' : ''; ?>>%</option>
64
  <option value="$" <?php echo ($post['single_product_regular_price_adjust_type'] == '$') ? 'selected="selected"' : ''; ?>><?php echo get_woocommerce_currency_symbol(); ?></option>
65
  </select>
66
+ <a href="#help" style="top:4px;" class="wpallimport-help pmwi_percentage_prices_note" title="<?php _e('Leave blank or enter in 100% to keep the price as is. Enter in 110% to markup by 10%. Enter in 50% to cut prices in half.', PMWI_Plugin::TEXT_DOMAIN) ?>">?</a>
67
+ <a href="#help" style="top:4px;" class="wpallimport-help pmwi_reduce_prices_note" title="<?php _e('Enter a negative number to reduce prices.', PMWI_Plugin::TEXT_DOMAIN) ?>">?</a>
68
  <span class="wpallimport-clear"></span>
69
  </p>
70
 
75
  <option value="%" <?php echo ($post['single_product_sale_price_adjust_type'] == '%') ? 'selected="selected"' : ''; ?>>%</option>
76
  <option value="$" <?php echo ($post['single_product_sale_price_adjust_type'] == '$') ? 'selected="selected"' : ''; ?>><?php echo get_woocommerce_currency_symbol(); ?></option>
77
  </select>
78
+ <a href="#help" style="top:4px;" class="wpallimport-help pmwi_percentage_prices_note" title="<?php _e('Leave blank or enter in 100% to keep the price as is. Enter in 110% to markup by 10%. Enter in 50% to cut prices in half.', PMWI_Plugin::TEXT_DOMAIN) ?>">?</a>
79
+ <a href="#help" style="top:4px;" class="wpallimport-help pmwi_reduce_prices_note" title="<?php _e('Enter a negative number to reduce prices.', PMWI_Plugin::TEXT_DOMAIN) ?>">?</a>
80
  <span class="wpallimport-clear"></span>
81
  </p>
82
  </div>
178
  </p>
179
  <p class="form-field">
180
  <label><?php _e("Download Limit", PMWI_Plugin::TEXT_DOMAIN); ?></label>
181
+ <input type="text" class="short" placeholder="Unlimited" name="single_product_download_limit" value="<?php echo esc_attr($post['single_product_download_limit']) ?>"/>&nbsp;
182
  <a href="#help" class="wpallimport-help" title="<?php _e( 'Leave blank for unlimited re-downloads.', PMWI_Plugin::TEXT_DOMAIN ) ?>">?</a>
183
  </p>
184
  <p class="form-field">
views/admin/import/product/_tabs/_inventory.php CHANGED
@@ -1,7 +1,11 @@
1
  <div class="panel woocommerce_options_panel" id="inventory_product_data" style="display:none;">
2
  <?php if (class_exists('PMWI_Plugin') && PMWI_EDITION == 'free'): ?>
3
  <div class="woo-add-on-free-edition-notice upgrade_template">
4
- <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707227&edd_options%5Bprice_id%5D=1" target="_blank" class="upgrade_woo_link"><?php _e('Upgrade to the Pro edition of WP All Import and the WooCommerce Add-On to Import to Variable, Affiliate, and Grouped Products', PMWI_Plugin::TEXT_DOMAIN);?></a>
 
 
 
 
5
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
6
  </div>
7
  <?php endif; ?>
@@ -62,7 +66,7 @@
62
  <div class="switcher-target-product_stock_status_xpath set_with_xpath">
63
  <span class="wpallimport-slide-content" style="padding-left:0;">
64
  <input type="text" class="smaller-text" name="single_product_stock_status" style="width:300px;" value="<?php echo esc_attr($post['single_product_stock_status']) ?>"/>
65
- <a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'instock\', \'outofstock\').', PMWI_Plugin::TEXT_DOMAIN) ?>" style="position:relative; top:2px;">?</a>
66
  </span>
67
  </div>
68
  </div>
1
  <div class="panel woocommerce_options_panel" id="inventory_product_data" style="display:none;">
2
  <?php if (class_exists('PMWI_Plugin') && PMWI_EDITION == 'free'): ?>
3
  <div class="woo-add-on-free-edition-notice upgrade_template">
4
+ <?php if(class_exists('PMXI_Plugin') && PMXI_EDITION == 'paid'):?>
5
+ <a href="https://www.wpallimport.com/portal/discounts/?utm_source=import-plugin-pro&utm_medium=upgrade-notice&utm_campaign=import-woo" target="_blank" class="upgrade_woo_link"><?php _e('Upgrade to the Pro edition of the WooCommerce Add-On to Import to Variable, Affiliate, and Grouped Products', PMWI_Plugin::TEXT_DOMAIN);?></a>
6
+ <?php else: ?>
7
+ <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707227&edd_options%5Bprice_id%5D=1" target="_blank" class="upgrade_woo_link"><?php _e('Upgrade to the WooCommerce Import Package to Import to Variable, Affiliate, and Grouped Products', PMWI_Plugin::TEXT_DOMAIN);?></a>
8
+ <?php endif; ?>
9
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
10
  </div>
11
  <?php endif; ?>
66
  <div class="switcher-target-product_stock_status_xpath set_with_xpath">
67
  <span class="wpallimport-slide-content" style="padding-left:0;">
68
  <input type="text" class="smaller-text" name="single_product_stock_status" style="width:300px;" value="<?php echo esc_attr($post['single_product_stock_status']) ?>"/>
69
+ <a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'instock\', \'outofstock\', \'onbackorder\').', PMWI_Plugin::TEXT_DOMAIN) ?>" style="position:relative; top:2px;">?</a>
70
  </span>
71
  </div>
72
  </div>
views/admin/import/product/_tabs/_linked_product.php CHANGED
@@ -1,7 +1,11 @@
1
  <div class="panel woocommerce_options_panel" id="linked_product_data" style="display:none;">
2
  <?php if (class_exists('PMWI_Plugin') && PMWI_EDITION == 'free'): ?>
3
  <div class="woo-add-on-free-edition-notice upgrade_template">
4
- <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707227&edd_options%5Bprice_id%5D=1" target="_blank" class="upgrade_woo_link"><?php _e('Upgrade to the Pro edition of WP All Import and the WooCommerce Add-On to Import to Variable, Affiliate, and Grouped Products', PMWI_Plugin::TEXT_DOMAIN);?></a>
 
 
 
 
5
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
6
  </div>
7
  <?php endif; ?>
@@ -87,19 +91,26 @@
87
  <input type="radio" id="duplicate_indicator_custom_field_grouping" class="switcher" name="grouping_indicator" value="custom field" <?php echo 'custom field' == $post['grouping_indicator'] ? 'checked="checked"': '' ?>/>
88
  <label for="duplicate_indicator_custom_field_grouping"><?php _e('Match by Custom Field', PMWI_Plugin::TEXT_DOMAIN )?></label><br>
89
  <span class="wpallimport-clear"></span>
90
- <div class="switcher-target-duplicate_indicator_custom_field_grouping set_with_xpath" style="padding-left:40px;">
91
  <span class="wpallimport-slide-content" style="padding-left:0;">
92
  <label style="width: 80px;"><?php _e('Name', PMWI_Plugin::TEXT_DOMAIN) ?></label>
93
  <input type="text" name="custom_grouping_indicator_name" value="<?php echo esc_attr($post['custom_grouping_indicator_name']) ?>" style="float:none; margin:1px;" />
94
 
95
  <span class="wpallimport-clear"></span>
96
 
97
- <label style="width: 80px;"><?php _e('Value', PMWI_Plugin::TEXT_DOMAIN) ?></label>
98
- <input type="text" name="custom_grouping_indicator_value" value="<?php echo esc_attr($post['custom_grouping_indicator_value']) ?>" style="float:none; margin:1px;" />
99
  </span>
100
  </div>
101
  </div>
102
- </div>
103
-
104
  </div>
 
 
 
 
 
 
 
 
105
  </div><!-- End Product Panel -->
1
  <div class="panel woocommerce_options_panel" id="linked_product_data" style="display:none;">
2
  <?php if (class_exists('PMWI_Plugin') && PMWI_EDITION == 'free'): ?>
3
  <div class="woo-add-on-free-edition-notice upgrade_template">
4
+ <?php if(class_exists('PMXI_Plugin') && PMXI_EDITION == 'paid'):?>
5
+ <a href="https://www.wpallimport.com/portal/discounts/?utm_source=import-plugin-pro&utm_medium=upgrade-notice&utm_campaign=import-woo" target="_blank" class="upgrade_woo_link"><?php _e('Upgrade to the Pro edition of the WooCommerce Add-On to Import to Variable, Affiliate, and Grouped Products', PMWI_Plugin::TEXT_DOMAIN);?></a>
6
+ <?php else: ?>
7
+ <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707227&edd_options%5Bprice_id%5D=1" target="_blank" class="upgrade_woo_link"><?php _e('Upgrade to the WooCommerce Import Package to Import to Variable, Affiliate, and Grouped Products', PMWI_Plugin::TEXT_DOMAIN);?></a>
8
+ <?php endif; ?>
9
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
10
  </div>
11
  <?php endif; ?>
91
  <input type="radio" id="duplicate_indicator_custom_field_grouping" class="switcher" name="grouping_indicator" value="custom field" <?php echo 'custom field' == $post['grouping_indicator'] ? 'checked="checked"': '' ?>/>
92
  <label for="duplicate_indicator_custom_field_grouping"><?php _e('Match by Custom Field', PMWI_Plugin::TEXT_DOMAIN )?></label><br>
93
  <span class="wpallimport-clear"></span>
94
+ <div class="switcher-target-duplicate_indicator_custom_field_grouping set_with_xpath" style="padding-left:20px; padding-top: 10px;">
95
  <span class="wpallimport-slide-content" style="padding-left:0;">
96
  <label style="width: 80px;"><?php _e('Name', PMWI_Plugin::TEXT_DOMAIN) ?></label>
97
  <input type="text" name="custom_grouping_indicator_name" value="<?php echo esc_attr($post['custom_grouping_indicator_name']) ?>" style="float:none; margin:1px;" />
98
 
99
  <span class="wpallimport-clear"></span>
100
 
101
+ <label style="width: 80px;margin-top: 15px !important;"><?php _e('Value', PMWI_Plugin::TEXT_DOMAIN) ?></label>
102
+ <input type="text" name="custom_grouping_indicator_value" value="<?php echo esc_attr($post['custom_grouping_indicator_value']) ?>" style="float:none; margin: 10px 0 0 0;" />
103
  </span>
104
  </div>
105
  </div>
106
+ </div>
 
107
  </div>
108
+
109
+ <div class="options_group grouping show_if_grouped">
110
+ <div class="form-field wpallimport-radio-field">
111
+ <label for="multiple_grouping_product_children" style="width: 55px;"><?php _e('Children', PMWI_Plugin::TEXT_DOMAIN )?></label>
112
+ <input type="text" name="grouped_product_children_xpath" value="<?php echo esc_attr($post['grouped_product_children_xpath']) ?>" style="float:none; margin:1px;" />
113
+ <a href="#help" class="wpallimport-help" style="top:-4px;" title="<?php _e('Provide comma separated list of products _sku to group them with current product. This option works only for grouped products.', PMWI_Plugin::TEXT_DOMAIN); ?>">?</a>
114
+ </div>
115
+ </div>
116
  </div><!-- End Product Panel -->
views/admin/import/product/_tabs/_options.php CHANGED
@@ -1,7 +1,11 @@
1
  <div class="panel woocommerce_options_panel" id="add_on_options" style="display:none;">
2
  <?php if (class_exists('PMWI_Plugin') && PMWI_EDITION == 'free'): ?>
3
  <div class="woo-add-on-free-edition-notice upgrade_template">
4
- <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707227&edd_options%5Bprice_id%5D=1" target="_blank" class="upgrade_woo_link"><?php _e('Upgrade to the Pro edition of WP All Import and the WooCommerce Add-On to Import to Variable, Affiliate, and Grouped Products', PMWI_Plugin::TEXT_DOMAIN);?></a>
 
 
 
 
5
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
6
  </div>
7
  <?php endif; ?>
@@ -13,7 +17,7 @@
13
  <input type="hidden" name="missing_records_stock_status" value="0" />
14
  <input type="checkbox" id="missing_records_stock_status" name="missing_records_stock_status" value="1" <?php echo $post['missing_records_stock_status'] ? 'checked="checked"' : '' ?> />
15
  <label for="missing_records_stock_status"><?php _e('Set out of stock status for missing records', PMWI_Plugin::TEXT_DOMAIN) ?></label>
16
- <a href="#help" class="wpallimport-help" title="<?php _e('Option to set the stock status to out of stock instead of deleting the product entirely. This option doesn\'t work when \'Delete missing records\' option is enabled.', PMWI_Plugin::TEXT_DOMAIN) ?>" style="position:relative; top:-2px;">?</a>
17
  </p>
18
  </div>
19
  <?php endif; ?>
1
  <div class="panel woocommerce_options_panel" id="add_on_options" style="display:none;">
2
  <?php if (class_exists('PMWI_Plugin') && PMWI_EDITION == 'free'): ?>
3
  <div class="woo-add-on-free-edition-notice upgrade_template">
4
+ <?php if(class_exists('PMXI_Plugin') && PMXI_EDITION == 'paid'):?>
5
+ <a href="https://www.wpallimport.com/portal/discounts/?utm_source=import-plugin-pro&utm_medium=upgrade-notice&utm_campaign=import-woo" target="_blank" class="upgrade_woo_link"><?php _e('Upgrade to the Pro edition of the WooCommerce Add-On to Import to Variable, Affiliate, and Grouped Products', PMWI_Plugin::TEXT_DOMAIN);?></a>
6
+ <?php else: ?>
7
+ <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707227&edd_options%5Bprice_id%5D=1" target="_blank" class="upgrade_woo_link"><?php _e('Upgrade to the WooCommerce Import Package to Import to Variable, Affiliate, and Grouped Products', PMWI_Plugin::TEXT_DOMAIN);?></a>
8
+ <?php endif; ?>
9
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
10
  </div>
11
  <?php endif; ?>
17
  <input type="hidden" name="missing_records_stock_status" value="0" />
18
  <input type="checkbox" id="missing_records_stock_status" name="missing_records_stock_status" value="1" <?php echo $post['missing_records_stock_status'] ? 'checked="checked"' : '' ?> />
19
  <label for="missing_records_stock_status"><?php _e('Set out of stock status for missing records', PMWI_Plugin::TEXT_DOMAIN) ?></label>
20
+ <a href="#help" class="wpallimport-help" title="<?php _e('Option to set the stock status to out of stock instead of deleting the product entirely.', PMWI_Plugin::TEXT_DOMAIN) ?>" style="position:relative; top:-2px;">?</a>
21
  </p>
22
  </div>
23
  <?php endif; ?>
views/admin/import/product/_tabs/_shipping.php CHANGED
@@ -1,7 +1,11 @@
1
  <div class="panel woocommerce_options_panel" id="shipping_product_data" style="display:none;">
2
  <?php if (class_exists('PMWI_Plugin') && PMWI_EDITION == 'free'): ?>
3
  <div class="woo-add-on-free-edition-notice upgrade_template">
4
- <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707227&edd_options%5Bprice_id%5D=1" target="_blank" class="upgrade_woo_link"><?php _e('Upgrade to the Pro edition of WP All Import and the WooCommerce Add-On to Import to Variable, Affiliate, and Grouped Products', PMWI_Plugin::TEXT_DOMAIN);?></a>
 
 
 
 
5
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
6
  </div>
7
  <?php endif; ?>
1
  <div class="panel woocommerce_options_panel" id="shipping_product_data" style="display:none;">
2
  <?php if (class_exists('PMWI_Plugin') && PMWI_EDITION == 'free'): ?>
3
  <div class="woo-add-on-free-edition-notice upgrade_template">
4
+ <?php if(class_exists('PMXI_Plugin') && PMXI_EDITION == 'paid'):?>
5
+ <a href="https://www.wpallimport.com/portal/discounts/?utm_source=import-plugin-pro&utm_medium=upgrade-notice&utm_campaign=import-woo" target="_blank" class="upgrade_woo_link"><?php _e('Upgrade to the Pro edition of the WooCommerce Add-On to Import to Variable, Affiliate, and Grouped Products', PMWI_Plugin::TEXT_DOMAIN);?></a>
6
+ <?php else: ?>
7
+ <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707227&edd_options%5Bprice_id%5D=1" target="_blank" class="upgrade_woo_link"><?php _e('Upgrade to the WooCommerce Import Package to Import to Variable, Affiliate, and Grouped Products', PMWI_Plugin::TEXT_DOMAIN);?></a>
8
+ <?php endif; ?>
9
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
10
  </div>
11
  <?php endif; ?>
views/admin/import/product/_tabs/_variations.php CHANGED
@@ -1,7 +1,11 @@
1
  <div class="panel woocommerce_options_panel" id="variable_product_options" style="display:none;">
2
  <?php if (class_exists('PMWI_Plugin') && PMWI_EDITION == 'free'): ?>
3
  <div class="woo-add-on-free-edition-notice upgrade_template">
4
- <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707227&edd_options%5Bprice_id%5D=1" target="_blank" class="upgrade_woo_link"><?php _e('Upgrade to the Pro edition of WP All Import and the WooCommerce Add-On to Import to Variable, Affiliate, and Grouped Products', PMWI_Plugin::TEXT_DOMAIN);?></a>
 
 
 
 
5
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
6
  </div>
7
  <?php endif; ?>
@@ -63,7 +67,7 @@
63
 
64
  <div class="switcher-target-auto_matching_parent_first_is_parent_title" style="padding-left:25px;">
65
  <p class="form-field">
66
- <label style="width:85px; padding-top: 3px;"><?php _e("Product Title", PMWI_Plugin::TEXT_DOMAIN); ?></label>
67
  <input type="text" class="short" placeholder="" name="single_product_id_first_is_parent_title" value="<?php echo ($post['single_product_id_first_is_parent_title']) ? esc_attr($post['single_product_id_first_is_parent_title']) : ((!empty(PMXI_Plugin::$session->options['title'])) ? esc_attr(PMXI_Plugin::$session->options['title']) : ''); ?>"/>
68
  </p>
69
  <p class="form-field">
@@ -81,7 +85,7 @@
81
  </p>
82
  <div class="switcher-target-auto_matching_parent_first_is_variation" style="padding-left:25px;">
83
  <p class="form-field">
84
- <label style="width:85px; padding-top: 3px;"><?php _e("Product Title"); ?></label>
85
  <input type="text" class="short" placeholder="" name="single_product_id_first_is_variation" value="<?php echo ($post['single_product_id_first_is_variation']) ? esc_attr($post['single_product_id_first_is_variation']) : ((!empty(PMXI_Plugin::$session->options['title'])) ? esc_attr(PMXI_Plugin::$session->options['title']) : ''); ?>"/>
86
  </p>
87
  <p class="form-field">
@@ -133,30 +137,30 @@
133
  <p class="form-field">
134
  <label style="width:150px;"><?php _e('SKU',PMWI_Plugin::TEXT_DOMAIN);?></label>
135
  <input type="text" value="<?php echo esc_attr($post['variable_sku']) ?>" style="" name="variable_sku" class="short">
136
- <span class="use_parent">
137
  <input type="hidden" name="variable_sku_add_parent" value="0"/>
138
  <input type="checkbox" name="variable_sku_add_parent" id="variable_sku_add_parent" style="margin-left:5px; margin-right:5px;" <?php echo ($post['variable_sku_add_parent']) ? 'checked="checked"' : ''; ?>>
139
- <label style="width: 160px;" for="variable_sku_add_parent"><?php _e("Add value to the parent SKU",PMWI_Plugin::TEXT_DOMAIN); ?></label>
140
- <a href="#help" class="wpallimport-help" title="<?php _e('Enable this checkbox to combine SKU from parent and variation products.', PMWI_Plugin::TEXT_DOMAIN) ?>" style="position:relative; top:2px;">?</a>
141
  </span>
142
  </p>
143
- <p class="form-field">
144
  <label style="width:150px;"><?php _e('Image',PMWI_Plugin::TEXT_DOMAIN);?></label>
145
  <input type="text" value="<?php echo esc_attr($post['variable_image']) ?>" style="" name="variable_image" class="short">
146
- <span class="use_parent">
147
  <input type="hidden" name="variable_image_use_parent" value="0"/>
148
- <input type="checkbox" name="variable_image_use_parent" id="variable_image_use_parent" style="position:relative; top:1px; margin-left:5px; margin-right:5px;" <?php echo ($post['variable_image_use_parent']) ? 'checked="checked"' : ''; ?>>
149
- <label for="variable_image_use_parent" style="top:0px;"><?php _e("XPath Is From Parent",PMWI_Plugin::TEXT_DOMAIN); ?></label>
150
- <a href="#help" class="wpallimport-help" title="<?php _e('Images are imported according to the options set in the Images section below. There you can import images to the parent products, and here you can import images to the product variations.', PMWI_Plugin::TEXT_DOMAIN) ?>" style="position:relative; top:2px; right: 30px;">?</a>
151
  </span>
152
  </p>
153
- <p class="form-field">
154
  <label style="width:150px;"><?php _e('Variation Description',PMWI_Plugin::TEXT_DOMAIN);?></label>
155
  <input type="text" value="<?php echo esc_attr($post['variable_description']) ?>" style="" name="variable_description" class="short">
156
- <span class="use_parent">
157
  <input type="hidden" name="variable_description_use_parent" value="0"/>
158
- <input type="checkbox" name="variable_description_use_parent" id="variable_description_use_parent" style="position:relative; top:1px; margin-left:5px; margin-right:5px;" <?php echo ($post['variable_description_use_parent']) ? 'checked="checked"' : ''; ?>>
159
- <label for="variable_description_use_parent" style="top:0px;"><?php _e("XPath Is From Parent",PMWI_Plugin::TEXT_DOMAIN); ?></label>
160
  </span>
161
  </p>
162
  </div>
@@ -193,12 +197,12 @@
193
 
194
  <div class="options_group variable_stock_fields">
195
  <p class="form-field">
196
- <label style="width:150px;"><?php _e('Stock Qty', PMWI_Plugin::TEXT_DOMAIN);?></label>
197
  <input type="text" value="<?php echo esc_attr($post['variable_stock']) ?>" style="" name="variable_stock" class="short">
198
- <span class="use_parent">
199
  <input type="hidden" name="variable_stock_use_parent" value="0"/>
200
  <input type="checkbox" name="variable_stock_use_parent" id="variable_stock_use_parent" style="margin-left:5px; margin-right: 5px;" <?php echo ($post['variable_stock_use_parent']) ? 'checked="checked"' : ''; ?>>
201
- <label for="variable_stock_use_parent" style="width:120px;"><?php _e("XPath Is From Parent",PMWI_Plugin::TEXT_DOMAIN); ?></label>
202
  <a href="#help" class="wpallimport-help" title="<?php _e('Enable this checkbox to determine XPath from parent element.', PMWI_Plugin::TEXT_DOMAIN) ?>" style="position:relative; top:2px;">?</a>
203
  </span>
204
  </p>
@@ -218,8 +222,8 @@
218
  </p>
219
  <p class="form-field wpallimport-radio-field">
220
  <input type="radio" id="variable_stock_status_auto" class="switcher" name="variable_stock_status" value="auto" <?php echo 'auto' == $post['variable_stock_status'] ? 'checked="checked"': '' ?>/>
221
- <label for="variable_stock_status_auto" style="width:100px;"><?php _e("Set automatically"); ?></label>
222
- <a href="#help" class="wpallimport-help" title="<?php _e('Set the stock status to In Stock for positive or blank Stock Qty values, and Out Of Stock if Stock Qty is 0.', PMWI_Plugin::TEXT_DOMAIN) ?>" style="position:relative; top:3px;">?</a>
223
  </p>
224
  <div class="form-field wpallimport-radio-field">
225
  <input type="radio" id="variable_stock_status_xpath" class="switcher" name="variable_stock_status" value="xpath" <?php echo 'xpath' == $post['variable_stock_status'] ? 'checked="checked"': '' ?>/>
@@ -228,7 +232,7 @@
228
  <div class="switcher-target-variable_stock_status_xpath set_with_xpath" style="width:390px;">
229
  <span class="wpallimport-slide-content" style="padding-left:0;">
230
  <input type="text" class="smaller-text" name="single_variable_stock_status" style="width:345px;" value="<?php echo esc_attr($post['single_variable_stock_status']) ?>"/>
231
- <a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'instock\', \'outofstock\').', PMWI_Plugin::TEXT_DOMAIN) ?>" style="position:relative; top:2px;">?</a>
232
  </span>
233
  </div>
234
  </div>
@@ -267,22 +271,22 @@
267
  <p class="form-field">
268
  <label style="width:150px;"><?php _e('Regular Price',PMWI_Plugin::TEXT_DOMAIN);?> (<?php echo get_woocommerce_currency_symbol(); ?>)</label>
269
  <input type="text" value="<?php echo esc_attr($post['variable_regular_price']) ?>" style="" name="variable_regular_price" class="short">
270
- <span class="use_parent">
271
  <input type="hidden" name="variable_regular_price_use_parent" value="0"/>
272
- <input type="checkbox" name="variable_regular_price_use_parent" id="variable_regular_price_use_parent" style="position:relative; top:1px; margin-left:5px; margin-right:5px;" <?php echo ($post['variable_regular_price_use_parent']) ? 'checked="checked"' : ''; ?>>
273
- <label for="variable_regular_price_use_parent" style="top:1px; position: relative;"><?php _e("XPath Is From Parent",PMWI_Plugin::TEXT_DOMAIN); ?></label>
274
  </span>
275
  </p>
276
  <p class="form-field">
277
- <label style="width:150px;"><?php _e('Sale Price',PMWI_Plugin::TEXT_DOMAIN);?> (<?php echo get_woocommerce_currency_symbol(); ?>)</label>&nbsp;
278
- <a id="variable_sale_price_shedule" href="javascript:void(0);" style="<?php if ($post['is_variable_sale_price_shedule']):?>display:none;<?php endif; ?>position:relative; top:-10px;"><?php _e('schedule');?></a>
279
  <input type="text" value="<?php echo esc_attr($post['variable_sale_price']) ?>" style="" name="variable_sale_price" class="short">
280
  <input type="hidden" name="is_variable_sale_price_shedule" value="<?php echo esc_attr($post['is_variable_sale_price_shedule']) ?>"/>
281
- <span class="use_parent">
282
  <input type="hidden" name="variable_sale_price_use_parent" value="0"/>
283
- <input type="checkbox" name="variable_sale_price_use_parent" id="variable_sale_price_use_parent" style="position:relative; top:1px; margin-right:5px;" <?php echo ($post['variable_sale_price_use_parent']) ? 'checked="checked"' : ''; ?>>
284
  <label for="variable_sale_price_use_parent"><?php _e("XPath Is From Parent",PMWI_Plugin::TEXT_DOMAIN); ?></label>
285
  </span>
 
286
  </p>
287
  <?php if ( class_exists('woocommerce_wholesale_pricing') ):?>
288
  <p class="form-field">
@@ -301,9 +305,9 @@
301
  <p class="form-field">
302
  <span style="vertical-align:middle">
303
  <label style="width:150px;"><?php _e("Variable Sale Price Dates", PMWI_Plugin::TEXT_DOMAIN); ?></label>
304
- <span class="use_parent">
305
  <input type="hidden" name="variable_sale_dates_use_parent" value="0"/>
306
- <input type="checkbox" name="variable_sale_dates_use_parent" id="variable_sale_dates_use_parent" style="position:relative; top:1px; margin-left:5px; margin-right:5px;" <?php echo ($post['variable_sale_dates_use_parent']) ? 'checked="checked"' : ''; ?>>
307
  <label for="variable_sale_dates_use_parent"><?php _e("XPath Is From Parent",PMWI_Plugin::TEXT_DOMAIN); ?></label>
308
  </span>
309
  <br>
@@ -361,8 +365,8 @@
361
  <label for="variable_dimensions_use_parent"><?php _e("XPath Is From Parent",PMWI_Plugin::TEXT_DOMAIN); ?></label>
362
  </span>
363
  <br>
364
- <input type="text" placeholder="0" value="<?php echo esc_attr($post['variable_length']) ?>" name="variable_length" class="short" style="margin-right:5px;">
365
- <input type="text" placeholder="0" value="<?php echo esc_attr($post['variable_width']) ?>" name="variable_width" class="short" style="margin-right:5px;">
366
  <input type="text" placeholder="0" value="<?php echo esc_attr($post['variable_height']) ?>" style="" name="variable_height" class="short">
367
  </p>
368
  </div>
@@ -554,7 +558,7 @@
554
 
555
  <span class="wpallimport-clear"></span>
556
 
557
- <div class="input">
558
  <table id="variation_attributes_table" class="form-table custom-params" style="max-width:95%;">
559
  <thead>
560
  <tr>
@@ -577,19 +581,16 @@
577
  <input type="checkbox" name="variable_in_variations[]" id="variable_in_variations_<?php echo $i; ?>" <?php echo ($post['variable_in_variations'][$i]) ? 'checked="checked"' : ''; ?> style="float:left;" value="1"/>
578
  <label for="variable_in_variations_<?php echo $i; ?>"><?php _e('In Variations',PMWI_Plugin::TEXT_DOMAIN);?></label>
579
  </span>
580
-
581
- <span class='is_visible'>
582
  <input type="checkbox" name="variable_is_visible[]" id="variable_is_visible_<?php echo $i; ?>" <?php echo ($post['variable_is_visible'][$i]) ? 'checked="checked"' : ''; ?> style="float: left;" value="1"/>
583
  <label for="variable_is_visible_<?php echo $i; ?>"><?php _e('Is Visible',PMWI_Plugin::TEXT_DOMAIN);?></label>
584
  </span>
585
- </p>
586
  </td>
587
  <td style="width: 50%;">
588
  <input type="text" class="widefat" name="variable_attribute_value[]" value="<?php echo esc_attr($post['variable_attribute_value'][$i]); ?>" style="width: 100% !important;"/>
589
-
590
  <span class="wpallimport-clear"></span>
591
- <p class="form-field wpallimport-radio-field">
592
-
593
  <span class='is_taxonomy'>
594
  <input type="checkbox" name="variable_is_taxonomy[]" id="variable_is_taxonomy_<?php echo $i; ?>" <?php echo ($post['variable_is_taxonomy'][$i]) ? 'checked="checked"' : ''; ?> style="float: left;" value="1"/>
595
  <label for="variable_is_taxonomy_<?php echo $i; ?>"><?php _e('Taxonomy',PMWI_Plugin::TEXT_DOMAIN);?></label>
@@ -601,7 +602,7 @@
601
  </span>
602
  </p>
603
  </td>
604
- <td class="action remove"><a href="#remove" style="top: 9px;"></a></td>
605
  </tr>
606
  <?php endforeach ?>
607
  <?php else: ?>
@@ -626,7 +627,7 @@
626
  <input type="text" class="widefat" name="variable_attribute_value[]" value="" style="width: 100% !important;"/>
627
 
628
  <span class="wpallimport-clear"></span>
629
- <p class="form-field wpallimport-radio-field">
630
  <span class='is_taxonomy'>
631
  <input type="checkbox" name="variable_is_taxonomy[]" id="variable_is_taxonomy_0" checked="checked" style="float:left;" value="1"/>
632
  <label for="variable_is_taxonomy_0"><?php _e('Taxonomy',PMWI_Plugin::TEXT_DOMAIN);?></label>
@@ -637,7 +638,7 @@
637
  </span>
638
  </p>
639
  </td>
640
- <td class="action remove"><a href="#remove" style="top: 9px;"></a></td>
641
  </tr>
642
  <?php endif;?>
643
  <tr class="form-field template">
@@ -660,7 +661,7 @@
660
  <input type="text" class="widefat" name="variable_attribute_value[]" value="" style="width: 100% !important;"/>
661
 
662
  <span class="wpallimport-clear"></span>
663
- <p class="form-field wpallimport-radio-field">
664
  <span class='is_taxonomy'>
665
  <input type="checkbox" name="variable_is_taxonomy[]" checked="checked" style="float: left;" value="1"/>
666
  <label for=""><?php _e('Taxonomy',PMWI_Plugin::TEXT_DOMAIN);?></label>
@@ -671,10 +672,10 @@
671
  </span>
672
  </p>
673
  </td>
674
- <td class="action remove"><a href="#remove" style="top: 9px;"></a></td>
675
  </tr>
676
  <tr class="wpallimport-table-actions">
677
- <td colspan="3"><a href="#add" title="<?php _e('add', PMWI_Plugin::TEXT_DOMAIN)?>" class="action add-new-custom"><?php _e('Add more', PMWI_Plugin::TEXT_DOMAIN) ?></a></td>
678
  </tr>
679
  </tbody>
680
  </table>
@@ -707,8 +708,8 @@
707
  </p>
708
  <div class="switcher-target-add_variation_to_existing_product" style="padding-left:25px;">
709
  <p class="form-field wpallimport-radio-field">
710
- <label style="width: 200px;"><?php _e('Manual Parent Product Matching', PMWI_Plugin::TEXT_DOMAIN )?></label>
711
- <a href="#help" class="wpallimport-help" style="top:0px;" title="<?php _e('Variation will be assigned as the child of an already created product matching the specified criteria.', PMWI_Plugin::TEXT_DOMAIN); ?>">?</a>
712
  </p>
713
  <div class="form-field wpallimport-radio-field">
714
  <input type="radio" id="existing_parent_product_matching_logic_cf" class="switcher" name="existing_parent_product_matching_logic" value="custom field" <?php echo 'custom field' == $post['existing_parent_product_matching_logic'] ? 'checked="checked"': '' ?>/>
@@ -720,7 +721,7 @@
720
  <input type="text" name="existing_parent_product_cf_name" value="<?php echo esc_attr($post['existing_parent_product_cf_name']) ?>" style="float:none; margin:1px;" />
721
  <span class="wpallimport-clear"></span>
722
  <label style="width: 80px;"><?php _e('Value', PMWI_Plugin::TEXT_DOMAIN) ?></label>
723
- <input type="text" name="existing_parent_product_cf_value" value="<?php echo esc_attr($post['existing_parent_product_cf_value']) ?>" style="float:none; margin:1px;" />
724
  </span>
725
  </div>
726
  </div>
@@ -734,6 +735,11 @@
734
  </span>
735
  </div>
736
  </div>
 
 
 
 
 
737
  </div>
738
  <?php endif; ?>
739
 
@@ -768,7 +774,7 @@
768
 
769
  <div class="options_group variation_stock_fields variations_are_not_child_elements">
770
  <p class="form-field">
771
- <label style="width:150px;"><?php _e('Stock Qty', PMWI_Plugin::TEXT_DOMAIN);?></label>
772
  <input type="text" value="<?php echo esc_attr($post['variation_stock']) ?>" style="" name="variation_stock" class="short">
773
  </p>
774
  </div>
@@ -834,7 +840,7 @@
834
 
835
  <p class="form-field wpallimport-radio-field">
836
  <input type="radio" id="set_default_yes" class="switcher" name="is_default_attributes" value="1" <?php echo $post['is_default_attributes'] ? 'checked="checked"': '' ?>/>
837
- <label for="set_default_yes" style="width: 305px;"><?php _e("Set the default selection in the attributes dropdowns.", PMWI_Plugin::TEXT_DOMAIN); ?></label>
838
  <a href="#help" class="wpallimport-help" title="<?php _e('The attributes for the first variation will be automatically selected on the frontend.', PMWI_Plugin::TEXT_DOMAIN) ?>" style="position:relative; top:2px;">?</a>
839
  </p>
840
  <div class="switcher-target-set_default_yes set_with_xpath" style="padding-left:17px;">
@@ -874,22 +880,20 @@
874
  <label for="put_variation_image_to_gallery" style="width:340px;"><?php _e('Save variation image to the gallery.', PMWI_Plugin::TEXT_DOMAIN) ?></label>
875
  </p>
876
  <?php
877
- if ( function_exists( 'is_plugin_active' ) ) {
878
- if ( is_plugin_active( "woocommerce-additional-variation-images/woocommerce-additional-variation-images.php" ) ) {
879
- ?>
880
- <p class="form-field wpallimport-radio-field">
881
- <input type="hidden" name="import_additional_variation_images" value="0" />
882
- <input type="checkbox" id="import_additional_variation_images" name="import_additional_variation_images" value="1" <?php echo $post['import_additional_variation_images'] ? 'checked="checked"' : '' ?> />
883
- <label for="import_additional_variation_images" style="width:340px;"><?php _e('Import additional variation images.', PMWI_Plugin::TEXT_DOMAIN) ?></label>
884
- </p>
885
- <?php
886
- }
887
  }
888
  ?>
889
  <p class="form-field wpallimport-radio-field set_parent_stock_option" style="display:none;">
890
  <input type="hidden" name="set_parent_stock" value="0" />
891
  <input type="checkbox" id="set_parent_stock" name="set_parent_stock" value="1" <?php echo $post['set_parent_stock'] ? 'checked="checked"' : '' ?> />
892
- <label for="set_parent_stock" style="width: 435px;"><?php _e('Set _stock value for parent product to the _stock value for the first variation.', PMWI_Plugin::TEXT_DOMAIN) ?></label>
893
  <a href="#help" class="wpallimport-help" title="<?php _e('This option works when there are no parent products in your feed ( cases 2 and 4 on Variations tab).', PMWI_Plugin::TEXT_DOMAIN) ?>" style="position:relative; top:1px;">?</a>
894
  </p>
895
 
1
  <div class="panel woocommerce_options_panel" id="variable_product_options" style="display:none;">
2
  <?php if (class_exists('PMWI_Plugin') && PMWI_EDITION == 'free'): ?>
3
  <div class="woo-add-on-free-edition-notice upgrade_template">
4
+ <?php if(class_exists('PMXI_Plugin') && PMXI_EDITION == 'paid'):?>
5
+ <a href="https://www.wpallimport.com/portal/discounts/?utm_source=import-plugin-pro&utm_medium=upgrade-notice&utm_campaign=import-woo" target="_blank" class="upgrade_woo_link"><?php _e('Upgrade to the Pro edition of the WooCommerce Add-On to Import to Variable, Affiliate, and Grouped Products', PMWI_Plugin::TEXT_DOMAIN);?></a>
6
+ <?php else: ?>
7
+ <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707227&edd_options%5Bprice_id%5D=1" target="_blank" class="upgrade_woo_link"><?php _e('Upgrade to the WooCommerce Import Package to Import to Variable, Affiliate, and Grouped Products', PMWI_Plugin::TEXT_DOMAIN);?></a>
8
+ <?php endif; ?>
9
  <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
10
  </div>
11
  <?php endif; ?>
67
 
68
  <div class="switcher-target-auto_matching_parent_first_is_parent_title" style="padding-left:25px;">
69
  <p class="form-field">
70
+ <label style="width:auto; margin-right: 10px !important; padding-top: 3px;"><?php _e("Product Title", PMWI_Plugin::TEXT_DOMAIN); ?></label>
71
  <input type="text" class="short" placeholder="" name="single_product_id_first_is_parent_title" value="<?php echo ($post['single_product_id_first_is_parent_title']) ? esc_attr($post['single_product_id_first_is_parent_title']) : ((!empty(PMXI_Plugin::$session->options['title'])) ? esc_attr(PMXI_Plugin::$session->options['title']) : ''); ?>"/>
72
  </p>
73
  <p class="form-field">
85
  </p>
86
  <div class="switcher-target-auto_matching_parent_first_is_variation" style="padding-left:25px;">
87
  <p class="form-field">
88
+ <label style="width:105px; padding-top: 3px;"><?php _e("Product Title"); ?></label>
89
  <input type="text" class="short" placeholder="" name="single_product_id_first_is_variation" value="<?php echo ($post['single_product_id_first_is_variation']) ? esc_attr($post['single_product_id_first_is_variation']) : ((!empty(PMXI_Plugin::$session->options['title'])) ? esc_attr(PMXI_Plugin::$session->options['title']) : ''); ?>"/>
90
  </p>
91
  <p class="form-field">
137
  <p class="form-field">
138
  <label style="width:150px;"><?php _e('SKU',PMWI_Plugin::TEXT_DOMAIN);?></label>
139
  <input type="text" value="<?php echo esc_attr($post['variable_sku']) ?>" style="" name="variable_sku" class="short">
140
+ <span class="use_parent align">
141
  <input type="hidden" name="variable_sku_add_parent" value="0"/>
142
  <input type="checkbox" name="variable_sku_add_parent" id="variable_sku_add_parent" style="margin-left:5px; margin-right:5px;" <?php echo ($post['variable_sku_add_parent']) ? 'checked="checked"' : ''; ?>>
143
+ <label style="width: auto; margin: 0 !important;" for="variable_sku_add_parent"><?php _e("Add value to the parent SKU",PMWI_Plugin::TEXT_DOMAIN); ?></label>
144
+ <a href="#help" class="wpallimport-help" title="<?php _e('Enable this checkbox to combine SKU from parent and variation products.', PMWI_Plugin::TEXT_DOMAIN) ?>" style="margin-left: 5px; top:0;">?</a>
145
  </span>
146
  </p>
147
+ <p class="form-field" style="margin-top: 5px;">
148
  <label style="width:150px;"><?php _e('Image',PMWI_Plugin::TEXT_DOMAIN);?></label>
149
  <input type="text" value="<?php echo esc_attr($post['variable_image']) ?>" style="" name="variable_image" class="short">
150
+ <span class="use_parent align">
151
  <input type="hidden" name="variable_image_use_parent" value="0"/>
152
+ <input type="checkbox" name="variable_image_use_parent" id="variable_image_use_parent" style="margin-left:5px; margin-right:5px;" <?php echo ($post['variable_image_use_parent']) ? 'checked="checked"' : ''; ?>>
153
+ <label for="variable_image_use_parent" style="width: auto; margin: 0 !important;"><?php _e("XPath Is From Parent",PMWI_Plugin::TEXT_DOMAIN); ?></label>
154
+ <a href="#help" class="wpallimport-help" title="<?php _e('Images are imported according to the options set in the Images section below. There you can import images to the parent products, and here you can import images to the product variations.', PMWI_Plugin::TEXT_DOMAIN) ?>" style="margin-left: 5px; top:0;">?</a>
155
  </span>
156
  </p>
157
+ <p class="form-field" style="margin-top: 5px; margin-bottom:10px">
158
  <label style="width:150px;"><?php _e('Variation Description',PMWI_Plugin::TEXT_DOMAIN);?></label>
159
  <input type="text" value="<?php echo esc_attr($post['variable_description']) ?>" style="" name="variable_description" class="short">
160
+ <span class="use_parent align">
161
  <input type="hidden" name="variable_description_use_parent" value="0"/>
162
+ <input type="checkbox" name="variable_description_use_parent" id="variable_description_use_parent" style="margin-left:5px; margin-right:5px;" <?php echo ($post['variable_description_use_parent']) ? 'checked="checked"' : ''; ?>>
163
+ <label for="variable_description_use_parent" style="width: auto; margin: 0 !important;"><?php _e("XPath Is From Parent",PMWI_Plugin::TEXT_DOMAIN); ?></label>
164
  </span>
165
  </p>
166
  </div>
197
 
198
  <div class="options_group variable_stock_fields">
199
  <p class="form-field">
200
+ <label style="width:auto;margin-right:10px !important;"><?php _e('Stock Qty', PMWI_Plugin::TEXT_DOMAIN);?></label>
201
  <input type="text" value="<?php echo esc_attr($post['variable_stock']) ?>" style="" name="variable_stock" class="short">
202
+ <span class="use_parent align">
203
  <input type="hidden" name="variable_stock_use_parent" value="0"/>
204
  <input type="checkbox" name="variable_stock_use_parent" id="variable_stock_use_parent" style="margin-left:5px; margin-right: 5px;" <?php echo ($post['variable_stock_use_parent']) ? 'checked="checked"' : ''; ?>>
205
+ <label for="variable_stock_use_parent" style="width: auto; margin: 0 !important;"><?php _e("XPath Is From Parent",PMWI_Plugin::TEXT_DOMAIN); ?></label>
206
  <a href="#help" class="wpallimport-help" title="<?php _e('Enable this checkbox to determine XPath from parent element.', PMWI_Plugin::TEXT_DOMAIN) ?>" style="position:relative; top:2px;">?</a>
207
  </span>
208
  </p>
222
  </p>
223
  <p class="form-field wpallimport-radio-field">
224
  <input type="radio" id="variable_stock_status_auto" class="switcher" name="variable_stock_status" value="auto" <?php echo 'auto' == $post['variable_stock_status'] ? 'checked="checked"': '' ?>/>
225
+ <label for="variable_stock_status_auto" style="width:auto;"><?php _e("Set automatically"); ?></label>
226
+ <a href="#help" class="wpallimport-help" title="<?php _e('Set the stock status to In Stock for positive or blank Stock Qty values, and Out Of Stock if Stock Qty is 0.', PMWI_Plugin::TEXT_DOMAIN) ?>" style="position:relative; top:2px;">?</a>
227
  </p>
228
  <div class="form-field wpallimport-radio-field">
229
  <input type="radio" id="variable_stock_status_xpath" class="switcher" name="variable_stock_status" value="xpath" <?php echo 'xpath' == $post['variable_stock_status'] ? 'checked="checked"': '' ?>/>
232
  <div class="switcher-target-variable_stock_status_xpath set_with_xpath" style="width:390px;">
233
  <span class="wpallimport-slide-content" style="padding-left:0;">
234
  <input type="text" class="smaller-text" name="single_variable_stock_status" style="width:345px;" value="<?php echo esc_attr($post['single_variable_stock_status']) ?>"/>
235
+ <a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'instock\', \'outofstock\', \'onbackorder\').', PMWI_Plugin::TEXT_DOMAIN) ?>" style="position:relative; top:2px;">?</a>
236
  </span>
237
  </div>
238
  </div>
271
  <p class="form-field">
272
  <label style="width:150px;"><?php _e('Regular Price',PMWI_Plugin::TEXT_DOMAIN);?> (<?php echo get_woocommerce_currency_symbol(); ?>)</label>
273
  <input type="text" value="<?php echo esc_attr($post['variable_regular_price']) ?>" style="" name="variable_regular_price" class="short">
274
+ <span class="use_parent align">
275
  <input type="hidden" name="variable_regular_price_use_parent" value="0"/>
276
+ <input type="checkbox" name="variable_regular_price_use_parent" id="variable_regular_price_use_parent" style="position:relative; top:-3px; margin-left:5px; margin-right:5px;" <?php echo ($post['variable_regular_price_use_parent']) ? 'checked="checked"' : ''; ?>>
277
+ <label for="variable_regular_price_use_parent" style="top:-1px; position: relative;"><?php _e("XPath Is From Parent",PMWI_Plugin::TEXT_DOMAIN); ?></label>
278
  </span>
279
  </p>
280
  <p class="form-field">
281
+ <label style="width:150px;"><?php _e('Sale Price',PMWI_Plugin::TEXT_DOMAIN);?> (<?php echo get_woocommerce_currency_symbol(); ?>)</label>
 
282
  <input type="text" value="<?php echo esc_attr($post['variable_sale_price']) ?>" style="" name="variable_sale_price" class="short">
283
  <input type="hidden" name="is_variable_sale_price_shedule" value="<?php echo esc_attr($post['is_variable_sale_price_shedule']) ?>"/>
284
+ <span class="use_parent align">
285
  <input type="hidden" name="variable_sale_price_use_parent" value="0"/>
286
+ <input type="checkbox" name="variable_sale_price_use_parent" id="variable_sale_price_use_parent" style="position:relative; top:-3px; margin-left:5px; margin-right:5px;" <?php echo ($post['variable_sale_price_use_parent']) ? 'checked="checked"' : ''; ?>>
287
  <label for="variable_sale_price_use_parent"><?php _e("XPath Is From Parent",PMWI_Plugin::TEXT_DOMAIN); ?></label>
288
  </span>
289
+ <a id="variable_sale_price_shedule" href="javascript:void(0);" style="<?php if ($post['is_variable_sale_price_shedule']):?>display:none;<?php endif; ?>position:relative; top:-10px;"><?php _e('schedule');?></a>
290
  </p>
291
  <?php if ( class_exists('woocommerce_wholesale_pricing') ):?>
292
  <p class="form-field">
305
  <p class="form-field">
306
  <span style="vertical-align:middle">
307
  <label style="width:150px;"><?php _e("Variable Sale Price Dates", PMWI_Plugin::TEXT_DOMAIN); ?></label>
308
+ <span class="use_parent align" style="margin-top: 0;">
309
  <input type="hidden" name="variable_sale_dates_use_parent" value="0"/>
310
+ <input type="checkbox" name="variable_sale_dates_use_parent" id="variable_sale_dates_use_parent" style="position:relative; top:-3px; margin-left:5px; margin-right:5px;" <?php echo ($post['variable_sale_dates_use_parent']) ? 'checked="checked"' : ''; ?>>
311
  <label for="variable_sale_dates_use_parent"><?php _e("XPath Is From Parent",PMWI_Plugin::TEXT_DOMAIN); ?></label>
312
  </span>
313
  <br>
365
  <label for="variable_dimensions_use_parent"><?php _e("XPath Is From Parent",PMWI_Plugin::TEXT_DOMAIN); ?></label>
366
  </span>
367
  <br>
368
+ <input type="text" placeholder="0" value="<?php echo esc_attr($post['variable_length']) ?>" name="variable_length" class="short" style="margin-right:5px; margin-bottom: 5px;">
369
+ <input type="text" placeholder="0" value="<?php echo esc_attr($post['variable_width']) ?>" name="variable_width" class="short" style="margin-right:5px; margin-bottom: 5px;">
370
  <input type="text" placeholder="0" value="<?php echo esc_attr($post['variable_height']) ?>" style="" name="variable_height" class="short">
371
  </p>
372
  </div>
558
 
559
  <span class="wpallimport-clear"></span>
560
 
561
+ <div class="input" style="padding: 0;">
562
  <table id="variation_attributes_table" class="form-table custom-params" style="max-width:95%;">
563
  <thead>
564
  <tr>
581
  <input type="checkbox" name="variable_in_variations[]" id="variable_in_variations_<?php echo $i; ?>" <?php echo ($post['variable_in_variations'][$i]) ? 'checked="checked"' : ''; ?> style="float:left;" value="1"/>
582
  <label for="variable_in_variations_<?php echo $i; ?>"><?php _e('In Variations',PMWI_Plugin::TEXT_DOMAIN);?></label>
583
  </span>
584
+ <span class='is_visible'>
 
585
  <input type="checkbox" name="variable_is_visible[]" id="variable_is_visible_<?php echo $i; ?>" <?php echo ($post['variable_is_visible'][$i]) ? 'checked="checked"' : ''; ?> style="float: left;" value="1"/>
586
  <label for="variable_is_visible_<?php echo $i; ?>"><?php _e('Is Visible',PMWI_Plugin::TEXT_DOMAIN);?></label>
587
  </span>
588
+ </p>
589
  </td>
590
  <td style="width: 50%;">
591
  <input type="text" class="widefat" name="variable_attribute_value[]" value="<?php echo esc_attr($post['variable_attribute_value'][$i]); ?>" style="width: 100% !important;"/>
 
592
  <span class="wpallimport-clear"></span>
593
+ <p class="form-field wpallimport-radio-field other-attributes">
 
594
  <span class='is_taxonomy'>
595
  <input type="checkbox" name="variable_is_taxonomy[]" id="variable_is_taxonomy_<?php echo $i; ?>" <?php echo ($post['variable_is_taxonomy'][$i]) ? 'checked="checked"' : ''; ?> style="float: left;" value="1"/>
596
  <label for="variable_is_taxonomy_<?php echo $i; ?>"><?php _e('Taxonomy',PMWI_Plugin::TEXT_DOMAIN);?></label>
602
  </span>
603
  </p>
604
  </td>
605
+ <td class="action remove"><a href="#remove" style="top: 9px;right: 9px;"></a></td>
606
  </tr>
607
  <?php endforeach ?>
608
  <?php else: ?>
627
  <input type="text" class="widefat" name="variable_attribute_value[]" value="" style="width: 100% !important;"/>
628
 
629
  <span class="wpallimport-clear"></span>
630
+ <p class="form-field wpallimport-radio-field other-attributes">
631
  <span class='is_taxonomy'>
632
  <input type="checkbox" name="variable_is_taxonomy[]" id="variable_is_taxonomy_0" checked="checked" style="float:left;" value="1"/>
633
  <label for="variable_is_taxonomy_0"><?php _e('Taxonomy',PMWI_Plugin::TEXT_DOMAIN);?></label>
638
  </span>
639
  </p>
640
  </td>
641
+ <td class="action remove"><a href="#remove" style="top: 9px;right: 9px;"></a></td>
642
  </tr>
643
  <?php endif;?>
644
  <tr class="form-field template">
661
  <input type="text" class="widefat" name="variable_attribute_value[]" value="" style="width: 100% !important;"/>
662
 
663
  <span class="wpallimport-clear"></span>
664
+ <p class="form-field wpallimport-radio-field other-attributes">
665
  <span class='is_taxonomy'>
666
  <input type="checkbox" name="variable_is_taxonomy[]" checked="checked" style="float: left;" value="1"/>
667
  <label for=""><?php _e('Taxonomy',PMWI_Plugin::TEXT_DOMAIN);?></label>
672
  </span>
673
  </p>
674
  </td>
675
+ <td class="action remove"><a href="#remove" style="top: 9px;right: 9px;"></a></td>
676
  </tr>
677
  <tr class="wpallimport-table-actions">
678
+ <td colspan="3"><a href="#add" title="<?php _e('add', PMWI_Plugin::TEXT_DOMAIN)?>" class="action add-new-custom"><?php _e('Add Attribute', PMWI_Plugin::TEXT_DOMAIN) ?></a></td>
679
  </tr>
680
  </tbody>
681
  </table>
708
  </p>
709
  <div class="switcher-target-add_variation_to_existing_product" style="padding-left:25px;">
710
  <p class="form-field wpallimport-radio-field">
711
+ <label style="width: 180px;"><?php _e('Manual Parent Product Matching', PMWI_Plugin::TEXT_DOMAIN )?></label>
712
+ <a href="#help" class="wpallimport-help" style="top: 2px;" title="<?php _e('Variation will be assigned as the child of an already created product matching the specified criteria.', PMWI_Plugin::TEXT_DOMAIN); ?>">?</a>
713
  </p>
714
  <div class="form-field wpallimport-radio-field">
715
  <input type="radio" id="existing_parent_product_matching_logic_cf" class="switcher" name="existing_parent_product_matching_logic" value="custom field" <?php echo 'custom field' == $post['existing_parent_product_matching_logic'] ? 'checked="checked"': '' ?>/>
721
  <input type="text" name="existing_parent_product_cf_name" value="<?php echo esc_attr($post['existing_parent_product_cf_name']) ?>" style="float:none; margin:1px;" />
722
  <span class="wpallimport-clear"></span>
723
  <label style="width: 80px;"><?php _e('Value', PMWI_Plugin::TEXT_DOMAIN) ?></label>
724
+ <input type="text" name="existing_parent_product_cf_value" value="<?php echo esc_attr($post['existing_parent_product_cf_value']) ?>" style="float:none; margin:10px 0 0 0;" />
725
  </span>
726
  </div>
727
  </div>
735
  </span>
736
  </div>
737
  </div>
738
+ <p class="form-field wpallimport-radio-field">
739
+ <input type="hidden" name="create_new_product_if_no_parent" value="0" />
740
+ <input type="checkbox" id="create_new_product_if_no_parent" name="create_new_product_if_no_parent" value="1" <?php echo $post['create_new_product_if_no_parent'] ? 'checked="checked"' : '' ?> />
741
+ <label for="create_new_product_if_no_parent" style="width:340px;"><?php _e('Create new product if no existing product is found.', PMWI_Plugin::TEXT_DOMAIN) ?></label>
742
+ </p>
743
  </div>
744
  <?php endif; ?>
745
 
774
 
775
  <div class="options_group variation_stock_fields variations_are_not_child_elements">
776
  <p class="form-field">
777
+ <label style="width: auto;margin-right: 10px !important;"><?php _e('Stock Qty', PMWI_Plugin::TEXT_DOMAIN);?></label>
778
  <input type="text" value="<?php echo esc_attr($post['variation_stock']) ?>" style="" name="variation_stock" class="short">
779
  </p>
780
  </div>
840
 
841
  <p class="form-field wpallimport-radio-field">
842
  <input type="radio" id="set_default_yes" class="switcher" name="is_default_attributes" value="1" <?php echo $post['is_default_attributes'] ? 'checked="checked"': '' ?>/>
843
+ <label for="set_default_yes" style="width: auto;"><?php _e("Set the default selection in the attributes dropdowns.", PMWI_Plugin::TEXT_DOMAIN); ?></label>
844
  <a href="#help" class="wpallimport-help" title="<?php _e('The attributes for the first variation will be automatically selected on the frontend.', PMWI_Plugin::TEXT_DOMAIN) ?>" style="position:relative; top:2px;">?</a>
845
  </p>
846
  <div class="switcher-target-set_default_yes set_with_xpath" style="padding-left:17px;">
880
  <label for="put_variation_image_to_gallery" style="width:340px;"><?php _e('Save variation image to the gallery.', PMWI_Plugin::TEXT_DOMAIN) ?></label>
881
  </p>
882
  <?php
883
+ if ( class_exists( 'Woo_Variation_Gallery' ) || class_exists( 'WC_Additional_Variation_Images' ) ) {
884
+ ?>
885
+ <p class="form-field wpallimport-radio-field">
886
+ <input type="hidden" name="import_additional_variation_images" value="0" />
887
+ <input type="checkbox" id="import_additional_variation_images" name="import_additional_variation_images" value="1" <?php echo $post['import_additional_variation_images'] ? 'checked="checked"' : '' ?> />
888
+ <label for="import_additional_variation_images" style="width:340px;"><?php _e('Import additional variation images.', PMWI_Plugin::TEXT_DOMAIN) ?></label>
889
+ </p>
890
+ <?php
 
 
891
  }
892
  ?>
893
  <p class="form-field wpallimport-radio-field set_parent_stock_option" style="display:none;">
894
  <input type="hidden" name="set_parent_stock" value="0" />
895
  <input type="checkbox" id="set_parent_stock" name="set_parent_stock" value="1" <?php echo $post['set_parent_stock'] ? 'checked="checked"' : '' ?> />
896
+ <label for="set_parent_stock" style="width: auto;"><?php _e('Set _stock value for parent product to the _stock value for the first variation.', PMWI_Plugin::TEXT_DOMAIN) ?></label>
897
  <a href="#help" class="wpallimport-help" title="<?php _e('This option works when there are no parent products in your feed ( cases 2 and 4 on Variations tab).', PMWI_Plugin::TEXT_DOMAIN) ?>" style="position:relative; top:1px;">?</a>
898
  </p>
899
 
views/admin/import/shop_order/_tabs/_order_billing.php CHANGED
@@ -4,7 +4,7 @@
4
  <div class="form-field wpallimport-radio-field">
5
  <input type="radio" id="billing_source_existing" name="pmwi_order[billing_source]" value="existing" <?php echo 'existing' == $post['pmwi_order']['billing_source'] ? 'checked="checked"' : '' ?> class="switcher"/>
6
  <label for="billing_source_existing" style="width:auto;"><?php _e('Try to load data from existing customer', PMWI_Plugin::TEXT_DOMAIN) ?></label>
7
- <a href="#help" class="wpallimport-help" title="<?php _e('If no customer is found the order will be skipped.', PMWI_Plugin::TEXT_DOMAIN) ?>" style="position:relative; top: 3px;">?</a>
8
  </div>
9
  <span class="wpallimport-clear"></span>
10
  <div class="switcher-target-billing_source_existing" style="padding-left:27px;">
4
  <div class="form-field wpallimport-radio-field">
5
  <input type="radio" id="billing_source_existing" name="pmwi_order[billing_source]" value="existing" <?php echo 'existing' == $post['pmwi_order']['billing_source'] ? 'checked="checked"' : '' ?> class="switcher"/>
6
  <label for="billing_source_existing" style="width:auto;"><?php _e('Try to load data from existing customer', PMWI_Plugin::TEXT_DOMAIN) ?></label>
7
+ <a href="#help" class="wpallimport-help" title="<?php _e('If no customer is found the order will be skipped.', PMWI_Plugin::TEXT_DOMAIN) ?>" style="position:relative; top: 4px;">?</a>
8
  </div>
9
  <span class="wpallimport-clear"></span>
10
  <div class="switcher-target-billing_source_existing" style="padding-left:27px;">
views/admin/import/shop_order/_tabs/_order_item_products.php CHANGED
@@ -49,7 +49,7 @@
49
  <label><?php _e('Meta Value', PMWI_Plugin::TEXT_DOMAIN); ?></label>
50
  <input type="text" class="short rad4" name="pmwi_order[products][0][meta_value][]" value="<?php echo esc_attr($product['meta_value'][$j]); ?>" style="width:100%;"/>
51
  </td>
52
- <td class="action remove"><a href="#remove" style="top: 34px; right: 10px;"></a></td>
53
  </tr>
54
  <?php endforeach; ?>
55
  <tr class="form-field template">
@@ -61,16 +61,16 @@
61
  <label><?php _e('Meta Value', PMWI_Plugin::TEXT_DOMAIN); ?></label>
62
  <input type="text" class="short rad4" name="pmwi_order[products][0][meta_value][]" value="" style="width:100%;"/>
63
  </td>
64
- <td class="action remove"><a href="#remove" style="top: 34px; right: 10px;"></a></td>
65
  </tr>
66
  <tr>
67
  <td colspan="3">
68
- <a class="add-new-line" title="Add Product Meta" href="javascript:void(0);" style="display:block;margin:5px 0;width:140px;top:0;padding-top:4px;"><?php empty($product['meta_name']) ? _e("Add Product Meta", PMWI_Plugin::TEXT_DOMAIN): _e("Add More Product Meta", PMWI_Plugin::TEXT_DOMAIN); ?></a>
69
  </td>
70
  </tr>
71
  </table>
72
  <!-- Product Taxes -->
73
- <a class="switcher" id="taxes_existing_products_0" href="javascript:void(0);" style="display: block;margin: 10px 0 15px;width: 50px;"><span>-</span> <?php _e("Taxes", PMWI_Plugin::TEXT_DOMAIN); ?></a>
74
  <div class="wpallimport-clear"></div>
75
  <div class="switcher-target-taxes_existing_products_0">
76
  <span class="wpallimport-slide-content" style="padding-left:0;">
@@ -199,13 +199,13 @@
199
  <div style="margin-top:0;">
200
  <div class="form-field wpallimport-radio-field">
201
  <input type="radio" id="products_source_new" name="pmwi_order[products_source]" value="new" <?php echo 'new' == $post['pmwi_order']['products_source'] ? 'checked="checked"' : '' ?> class="switcher"/>
202
- <label for="products_source_new" style="width:auto;"><?php _e('Manually import product order data and do not try to match to existing products', PMWI_Plugin::TEXT_DOMAIN) ?></label>
203
- <a href="#help" class="wpallimport-help" title="<?php _e('The product in this order will not be linked to any existing products.', PMWI_Plugin::TEXT_DOMAIN) ?>" style="position:relative; top:3px;">?</a>
204
  </div>
205
  <span class="wpallimport-clear"></span>
206
  <div class="switcher-target-products_source_new" style="padding-left:45px;">
207
  <span class="wpallimport-slide-content" style="padding-left:0;">
208
- <table class="wpallimport_variable_table">
209
  <?php
210
  $product = [];
211
  if (!empty($post['pmwi_order']['manual_products'])) {
@@ -247,7 +247,7 @@
247
  <label><?php _e('Meta Value', PMWI_Plugin::TEXT_DOMAIN); ?></label>
248
  <input type="text" class="short rad4" name="pmwi_order[manual_products][0][meta_value][]" value="<?php echo esc_attr($product['meta_value'][$j]); ?>" style="width:100%;"/>
249
  </td>
250
- <td class="action remove"><a href="#remove" style="top: 34px; right: 10px;"></a></td>
251
  </tr>
252
  <?php endforeach; ?>
253
  <tr class="form-field template">
@@ -281,7 +281,7 @@
281
  </tr>
282
  </table>
283
 
284
- <a class="switcher" id="taxes_manual_products_0" href="javascript:void(0);" style="display: block;margin: 10px 0 15px;width: 50px;"><span>-</span> <?php _e("Taxes", PMWI_Plugin::TEXT_DOMAIN); ?></a>
285
  <div class="wpallimport-clear"></div>
286
  <div class="switcher-target-taxes_manual_products_0">
287
  <span class="wpallimport-slide-content" style="padding-left:0;">
@@ -336,7 +336,7 @@
336
  </div>
337
  <hr style="margin-left: 20px;">
338
  </td>
339
- <td class="action remove"><a href="#remove" style="top: 44px; right: 10px;"></a></td>
340
  </tr>
341
 
342
  <?php endforeach; ?>
@@ -381,7 +381,7 @@
381
  </div>
382
  <hr style="margin-left: 20px;">
383
  </td>
384
- <td class="action remove"><a href="#remove" style="top: 44px; right: 10px;"></a></td>
385
  </tr>
386
  <tr>
387
  <td colspan="2">
49
  <label><?php _e('Meta Value', PMWI_Plugin::TEXT_DOMAIN); ?></label>
50
  <input type="text" class="short rad4" name="pmwi_order[products][0][meta_value][]" value="<?php echo esc_attr($product['meta_value'][$j]); ?>" style="width:100%;"/>
51
  </td>
52
+ <td class="action remove"><a href="#remove" style="top: 35px; right: 17px;"></a></td>
53
  </tr>
54
  <?php endforeach; ?>
55
  <tr class="form-field template">
61
  <label><?php _e('Meta Value', PMWI_Plugin::TEXT_DOMAIN); ?></label>
62
  <input type="text" class="short rad4" name="pmwi_order[products][0][meta_value][]" value="" style="width:100%;"/>
63
  </td>
64
+ <td class="action remove"><a href="#remove" style="top: 35px; right: 17px;"></a></td>
65
  </tr>
66
  <tr>
67
  <td colspan="3">
68
+ <a class="add-new-line" title="Add Product Meta" href="javascript:void(0);" style="display:block;margin: 10px 0 20px 0;width:140px;top:0;padding-top:4px;"><?php empty($product['meta_name']) ? _e("Add Product Meta", PMWI_Plugin::TEXT_DOMAIN): _e("Add More Product Meta", PMWI_Plugin::TEXT_DOMAIN); ?></a>
69
  </td>
70
  </tr>
71
  </table>
72
  <!-- Product Taxes -->
73
+ <a class="switcher" id="taxes_existing_products_0" href="javascript:void(0);" style="display: inline-block;margin: 10px 0 15px;"><span>-</span> <?php _e("Taxes", PMWI_Plugin::TEXT_DOMAIN); ?></a>
74
  <div class="wpallimport-clear"></div>
75
  <div class="switcher-target-taxes_existing_products_0">
76
  <span class="wpallimport-slide-content" style="padding-left:0;">
199
  <div style="margin-top:0;">
200
  <div class="form-field wpallimport-radio-field">
201
  <input type="radio" id="products_source_new" name="pmwi_order[products_source]" value="new" <?php echo 'new' == $post['pmwi_order']['products_source'] ? 'checked="checked"' : '' ?> class="switcher"/>
202
+ <label for="products_source_new"><?php _e('Manually import product order data and do not try to match to existing products', PMWI_Plugin::TEXT_DOMAIN) ?></label>
203
+ <a href="#help" class="wpallimport-help" title="<?php _e('The product in this order will not be linked to any existing products.', PMWI_Plugin::TEXT_DOMAIN) ?>" style="position:relative; top:4px;">?</a>
204
  </div>
205
  <span class="wpallimport-clear"></span>
206
  <div class="switcher-target-products_source_new" style="padding-left:45px;">
207
  <span class="wpallimport-slide-content" style="padding-left:0;">
208
+ <table class="wpallimport_variable_table" style="width: 98%;">
209
  <?php
210
  $product = [];
211
  if (!empty($post['pmwi_order']['manual_products'])) {
247
  <label><?php _e('Meta Value', PMWI_Plugin::TEXT_DOMAIN); ?></label>
248
  <input type="text" class="short rad4" name="pmwi_order[manual_products][0][meta_value][]" value="<?php echo esc_attr($product['meta_value'][$j]); ?>" style="width:100%;"/>
249
  </td>
250
+ <td class="action remove"><a href="#remove" style="top: 34px;right: 10px;"></a></td>
251
  </tr>
252
  <?php endforeach; ?>
253
  <tr class="form-field template">
281
  </tr>
282
  </table>
283
 
284
+ <a class="switcher" id="taxes_manual_products_0" href="javascript:void(0);" style="display: inline-block;margin: 10px 0 15px;"><span>-</span> <?php _e("Taxes", PMWI_Plugin::TEXT_DOMAIN); ?></a>
285
  <div class="wpallimport-clear"></div>
286
  <div class="switcher-target-taxes_manual_products_0">
287
  <span class="wpallimport-slide-content" style="padding-left:0;">
336
  </div>
337
  <hr style="margin-left: 20px;">
338
  </td>
339
+ <td class="action remove"><a href="#remove" style="top: 44px; right: 20px"></a></td>
340
  </tr>
341
 
342
  <?php endforeach; ?>
381
  </div>
382
  <hr style="margin-left: 20px;">
383
  </td>
384
+ <td class="action remove"><a href="#remove" style="top: 44px; right: 20px;"></a></td>
385
  </tr>
386
  <tr>
387
  <td colspan="2">
views/admin/import/shop_order/_tabs/_order_item_refunds.php CHANGED
@@ -28,7 +28,7 @@
28
  <div class="wpallimport-radio-field">
29
  <input type="radio" id="order_refund_issued_source_existing" name="pmwi_order[order_refund_issued_source]" value="existing" <?php echo 'existing' == $post['pmwi_order']['order_refund_issued_source'] ? 'checked="checked"' : '' ?> class="switcher"/>
30
  <label for="order_refund_issued_source_existing" style="width:auto;"><?php _e('Load details from existing user', PMWI_Plugin::TEXT_DOMAIN) ?></label>
31
- <a href="#help" class="wpallimport-help" title="<?php _e('If no user is matched, refund issuer will be left blank.', PMWI_Plugin::TEXT_DOMAIN) ?>" style="position:relative; top: 0;">?</a>
32
  </div>
33
  <span class="wpallimport-clear"></span>
34
  <div class="switcher-target-order_refund_issued_source_existing" style="padding-left:7px;">
@@ -66,11 +66,11 @@
66
  <div class="switcher-target-order_refund_issued_by_cf set_with_xpath">
67
  <span class="wpallimport-slide-content" style="padding-left:0;">
68
  <p>
69
- <label style="line-height: 30px; margin-left: 5px;"><?php _e('Name', PMWI_Plugin::TEXT_DOMAIN); ?></label>
70
  <input type="text" class="short rad4" name="pmwi_order[order_refund_issued_cf_name]" style="" value="<?php echo esc_attr($post['pmwi_order']['order_refund_issued_cf_name']) ?>"/>
71
  </p>
72
  <p>
73
- <label style="line-height: 30px; margin-left: 5px;"><?php _e('Value', PMWI_Plugin::TEXT_DOMAIN); ?></label>
74
  <input type="text" class="short rad4" name="pmwi_order[order_refund_issued_cf_value]" style="" value="<?php echo esc_attr($post['pmwi_order']['order_refund_issued_cf_value']) ?>"/>
75
  </p>
76
  </span>
28
  <div class="wpallimport-radio-field">
29
  <input type="radio" id="order_refund_issued_source_existing" name="pmwi_order[order_refund_issued_source]" value="existing" <?php echo 'existing' == $post['pmwi_order']['order_refund_issued_source'] ? 'checked="checked"' : '' ?> class="switcher"/>
30
  <label for="order_refund_issued_source_existing" style="width:auto;"><?php _e('Load details from existing user', PMWI_Plugin::TEXT_DOMAIN) ?></label>
31
+ <a href="#help" class="wpallimport-help" title="<?php _e('If no user is matched, refund issuer will be left blank.', PMWI_Plugin::TEXT_DOMAIN) ?>" style="position:relative;top:0;">?</a>
32
  </div>
33
  <span class="wpallimport-clear"></span>
34
  <div class="switcher-target-order_refund_issued_source_existing" style="padding-left:7px;">
66
  <div class="switcher-target-order_refund_issued_by_cf set_with_xpath">
67
  <span class="wpallimport-slide-content" style="padding-left:0;">
68
  <p>
69
+ <label style="width: 30px;"><?php _e('Name', PMWI_Plugin::TEXT_DOMAIN); ?></label>
70
  <input type="text" class="short rad4" name="pmwi_order[order_refund_issued_cf_name]" style="" value="<?php echo esc_attr($post['pmwi_order']['order_refund_issued_cf_name']) ?>"/>
71
  </p>
72
  <p>
73
+ <label style="width: 30px;"><?php _e('Value', PMWI_Plugin::TEXT_DOMAIN); ?></label>
74
  <input type="text" class="short rad4" name="pmwi_order[order_refund_issued_cf_value]" style="" value="<?php echo esc_attr($post['pmwi_order']['order_refund_issued_cf_value']) ?>"/>
75
  </p>
76
  </span>
views/admin/import/shop_order/_tabs/_order_item_shipping.php CHANGED
@@ -50,7 +50,7 @@
50
  <div class="switcher-target-order_shipping_class_<?php echo $i; ?>" style="margin-top:10px;">
51
  <span class="wpallimport-slide-content" style="padding-left:0;">
52
  <input type="text" class="short rad4" name="pmwi_order[shipping][<?php echo $i;?>][class_xpath]" value="<?php echo esc_attr($shipping['class_xpath']) ?>"/>
53
- <a href="#help" class="wpallimport-help" title="<?php printf(__('Shipping method can be matched by Name or ID: %s. If shipping method is not found then no shipping information will be imported.', PMWI_Plugin::TEXT_DOMAIN), implode(", ", $shipping_for_tooltip)); ?>" style="position:relative; top:10px;">?</a>
54
  </span>
55
  </div>
56
  </td>
@@ -96,7 +96,7 @@
96
  <div class="switcher-target-order_shipping_class_ROWNUMBER" style="margin-top:10px; display: none;">
97
  <span class="wpallimport-slide-content" style="padding-left:0;">
98
  <input type="text" class="short rad4" name="pmwi_order[shipping][ROWNUMBER][class_xpath]" value=""/>
99
- <a href="#help" class="wpallimport-help" title="<?php _e('Shipping method can be matched by Name or ID. If shipping method is not found then no shipping information will be imported.', PMWI_Plugin::TEXT_DOMAIN) ?>" style="position:relative; top:0px;">?</a>
100
  </span>
101
  </div>
102
  </td>
50
  <div class="switcher-target-order_shipping_class_<?php echo $i; ?>" style="margin-top:10px;">
51
  <span class="wpallimport-slide-content" style="padding-left:0;">
52
  <input type="text" class="short rad4" name="pmwi_order[shipping][<?php echo $i;?>][class_xpath]" value="<?php echo esc_attr($shipping['class_xpath']) ?>"/>
53
+ <a href="#help" class="wpallimport-help" title="<?php printf(__('Shipping method can be matched by Name or ID: %s. If shipping method is not found then no shipping information will be imported.', PMWI_Plugin::TEXT_DOMAIN), implode(", ", $shipping_for_tooltip)); ?>" style="position:relative; top:12px;">?</a>
54
  </span>
55
  </div>
56
  </td>
96
  <div class="switcher-target-order_shipping_class_ROWNUMBER" style="margin-top:10px; display: none;">
97
  <span class="wpallimport-slide-content" style="padding-left:0;">
98
  <input type="text" class="short rad4" name="pmwi_order[shipping][ROWNUMBER][class_xpath]" value=""/>
99
+ <a href="#help" class="wpallimport-help" title="<?php _e('Shipping method can be matched by Name or ID. If shipping method is not found then no shipping information will be imported.', PMWI_Plugin::TEXT_DOMAIN) ?>" style="position:relative; top:12px;">?</a>
100
  </span>
101
  </div>
102
  </td>
views/admin/import/shop_order/_tabs/_order_item_taxes.php CHANGED
@@ -112,7 +112,7 @@
112
  <div class="switcher-target-order_tax_code_ROWNUMBER" style="margin-top:10px; display: none;">
113
  <span class="wpallimport-slide-content" style="padding-left:0;">
114
  <input type="text" class="short rad4" name="pmwi_order[taxes][ROWNUMBER][tax_code_xpath]" value=""/>
115
- <a href="#help" class="wpallimport-help" title="<?php _e('Tax rate method can be matched by ID. If tax method is not found then no tax information will be imported.', PMWI_Plugin::TEXT_DOMAIN) ?>" style="position:relative; top:0px;">?</a>
116
  </span>
117
  </div>
118
  </td>
112
  <div class="switcher-target-order_tax_code_ROWNUMBER" style="margin-top:10px; display: none;">
113
  <span class="wpallimport-slide-content" style="padding-left:0;">
114
  <input type="text" class="short rad4" name="pmwi_order[taxes][ROWNUMBER][tax_code_xpath]" value=""/>
115
+ <a href="#help" class="wpallimport-help" title="<?php _e('Tax rate method can be matched by ID. If tax method is not found then no tax information will be imported.', PMWI_Plugin::TEXT_DOMAIN) ?>" style="position:relative; top:12px;">?</a>
116
  </span>
117
  </div>
118
  </td>
views/admin/import/shop_order/order_details_section.php CHANGED
@@ -26,7 +26,7 @@
26
  <div class="switcher-target-order_status" style="margin-top:10px;">
27
  <span class="wpallimport-slide-content" style="padding-left:0;">
28
  <input type="text" class="short" name="pmwi_order[status_xpath]" value="<?php echo esc_attr($post['pmwi_order']['status_xpath']) ?>"/>
29
- <a href="#help" class="wpallimport-help" title="<?php printf(__('Order status can be matched by title or slug: %s. If order status is not found \'Pending Payment\' will be applied to order.', PMWI_Plugin::TEXT_DOMAIN), implode(", ", $statuses_for_tooltip)); ?>" style="position:relative; top:-2px;">?</a>
30
  </span>
31
  </div>
32
  </div>
@@ -36,7 +36,7 @@
36
  <td>
37
  <!-- Order Date -->
38
  <div class="input">
39
- <h4><?php _e('Date', PMWI_Plugin::TEXT_DOMAIN) ?><a href="#help" class="wpallimport-help" style="position:relative; top: 1px;" title="<?php _e('Use any format supported by the PHP <b>strtotime</b> function. That means pretty much any human-readable date will work.', PMWI_Plugin::TEXT_DOMAIN) ?>">?</a></h4>
40
  <div class="input">
41
  <input type="text" class="datepicker" name="pmwi_order[date]" value="<?php echo esc_attr($post['pmwi_order']['date']) ?>"/>
42
  </div>
26
  <div class="switcher-target-order_status" style="margin-top:10px;">
27
  <span class="wpallimport-slide-content" style="padding-left:0;">
28
  <input type="text" class="short" name="pmwi_order[status_xpath]" value="<?php echo esc_attr($post['pmwi_order']['status_xpath']) ?>"/>
29
+ <a href="#help" class="wpallimport-help" title="<?php printf(__('Order status can be matched by title or slug: %s. If order status is not found \'Pending Payment\' will be applied to order.', PMWI_Plugin::TEXT_DOMAIN), implode(", ", $statuses_for_tooltip)); ?>" style="position:relative; top:-1px;">?</a>
30
  </span>
31
  </div>
32
  </div>
36
  <td>
37
  <!-- Order Date -->
38
  <div class="input">
39
+ <h4><?php _e('Date', PMWI_Plugin::TEXT_DOMAIN) ?><a href="#help" class="wpallimport-help" style="position:relative; top: -1px;" title="<?php _e('Use any format supported by the PHP <b>strtotime</b> function. That means pretty much any human-readable date will work.', PMWI_Plugin::TEXT_DOMAIN) ?>">?</a></h4>
40
  <div class="input">
41
  <input type="text" class="datepicker" name="pmwi_order[date]" value="<?php echo esc_attr($post['pmwi_order']['date']) ?>"/>
42
  </div>
views/admin/import/shop_order/order_notes_section.php CHANGED
@@ -13,7 +13,7 @@
13
  <input type="radio" id="notes_repeater_mode_fixed" name="pmwi_order[notes_repeater_mode]" value="fixed" <?php echo 'fixed' == $post['pmwi_order']['notes_repeater_mode'] ? 'checked="checked"' : '' ?> class="switcher variable_repeater_mode"/>
14
  <label for="notes_repeater_mode_fixed" style="width:auto;"><?php _e('Fixed Repeater Mode', PMWI_Plugin::TEXT_DOMAIN) ?></label>
15
  </div> -->
16
- <table class="form-field wpallimport_variable_table" style="width:98%;">
17
  <?php
18
  foreach ($post['pmwi_order']['notes'] as $i => $note):
19
 
@@ -36,7 +36,7 @@
36
  </tr>
37
  <tr>
38
  <td colspan="2">
39
- <h4><?php _e('Date', PMWI_Plugin::TEXT_DOMAIN) ?><a href="#help" class="wpallimport-help" style="position:relative; top: 1px;" title="<?php _e('Use any format supported by the PHP <b>strtotime</b> function. That means pretty much any human-readable date will work.', PMWI_Plugin::TEXT_DOMAIN) ?>">?</a></h4>
40
  <div class="input">
41
  <input type="text" class="datepicker" name="pmwi_order[notes][<?php echo $i; ?>][date]" value="<?php echo esc_attr($note['date']) ?>"/>
42
  </div>
@@ -100,7 +100,7 @@
100
  </tr>
101
  <tr>
102
  <td colspan="2">
103
- <h4><?php _e('Date', PMWI_Plugin::TEXT_DOMAIN) ?><a href="#help" class="wpallimport-help" style="position:relative; top: 1px;" title="<?php _e('Use any format supported by the PHP <b>strtotime</b> function. That means pretty much any human-readable date will work.', PMWI_Plugin::TEXT_DOMAIN) ?>">?</a></h4>
104
  <div class="input">
105
  <input type="text" name="pmwi_order[notes][ROWNUMBER][date]" class="date-picker" value="now"/>
106
  </div>
13
  <input type="radio" id="notes_repeater_mode_fixed" name="pmwi_order[notes_repeater_mode]" value="fixed" <?php echo 'fixed' == $post['pmwi_order']['notes_repeater_mode'] ? 'checked="checked"' : '' ?> class="switcher variable_repeater_mode"/>
14
  <label for="notes_repeater_mode_fixed" style="width:auto;"><?php _e('Fixed Repeater Mode', PMWI_Plugin::TEXT_DOMAIN) ?></label>
15
  </div> -->
16
+ <table class="form-field wpallimport_variable_table order-notes" style="width:98%;">
17
  <?php
18
  foreach ($post['pmwi_order']['notes'] as $i => $note):
19
 
36
  </tr>
37
  <tr>
38
  <td colspan="2">
39
+ <h4><?php _e('Date', PMWI_Plugin::TEXT_DOMAIN) ?><a href="#help" class="wpallimport-help" style="position:relative;top:-2px;" title="<?php _e('Use any format supported by the PHP <b>strtotime</b> function. That means pretty much any human-readable date will work.', PMWI_Plugin::TEXT_DOMAIN) ?>">?</a></h4>
40
  <div class="input">
41
  <input type="text" class="datepicker" name="pmwi_order[notes][<?php echo $i; ?>][date]" value="<?php echo esc_attr($note['date']) ?>"/>
42
  </div>
100
  </tr>
101
  <tr>
102
  <td colspan="2">
103
+ <h4><?php _e('Date', PMWI_Plugin::TEXT_DOMAIN) ?><a href="#help" class="wpallimport-help" style="position:relative; top: -2px;" title="<?php _e('Use any format supported by the PHP <b>strtotime</b> function. That means pretty much any human-readable date will work.', PMWI_Plugin::TEXT_DOMAIN) ?>">?</a></h4>
104
  <div class="input">
105
  <input type="text" name="pmwi_order[notes][ROWNUMBER][date]" class="date-picker" value="now"/>
106
  </div>