Version Description
- bug fix: lookup table not updating after import
- bug fix: attributes not re-counting after import
Download this release
Release Info
Developer | soflyy |
Plugin | Import Products from any XML or CSV to WooCommerce |
Version | 1.4.3 |
Comparing to | |
See all releases |
Code changes from version 1.4.2 to 1.4.3
- actions/pmxi_after_xml_import.php +4 -0
- libraries/XmlImportWooCommerceService.php +28 -2
- libraries/importer/products/ImportProduct.php +9 -6
- libraries/parser/ProductsParser.php +9 -2
- libraries/services/XmlImportWooTaxonomyService.php +9 -9
- plugin.php +3 -3
- readme.txt +6 -2
- static/css/admin.css +13 -0
- static/js/admin.js +197 -45
- views/admin/import/_tabs/_advanced.php +0 -116
- views/admin/import/_tabs/_attributes.php +0 -424
- views/admin/import/_tabs/_general.php +0 -288
- views/admin/import/_tabs/_inventory.php +0 -121
- views/admin/import/_tabs/_linked_product.php +0 -103
- views/admin/import/_tabs/_options.php +0 -32
- views/admin/import/_tabs/_shipping.php +0 -58
- views/admin/import/_tabs/_variations.php +0 -780
- views/admin/import/index.php +0 -126
- views/admin/import/product/_tabs/_advanced.php +30 -1
- views/admin/import/product/_tabs/_attributes.php +1 -1
- views/admin/import/product/_tabs/_general.php +13 -34
- views/admin/import/product/_tabs/_inventory.php +3 -5
- views/admin/import/product/_tabs/_variations.php +1 -1
- views/admin/import/product/_tabs/subscriptions/_simple_subscription.php +141 -0
- views/admin/import/product/index.php +12 -8
- views/admin/import/shop_order/_tabs/_order_item_products.php +68 -47
- views/admin/import/shop_order/_tabs/_order_item_taxes.php +3 -3
actions/pmxi_after_xml_import.php
CHANGED
@@ -103,5 +103,9 @@ function pmwi_pmxi_after_xml_import($importID) {
|
|
103 |
delete_option('wp_all_import_products_maybe_to_delete_' . $importID);
|
104 |
}
|
105 |
delete_option('wp_all_import_not_linked_products_' . $importID);
|
|
|
|
|
|
|
|
|
106 |
}
|
107 |
}
|
103 |
delete_option('wp_all_import_products_maybe_to_delete_' . $importID);
|
104 |
}
|
105 |
delete_option('wp_all_import_not_linked_products_' . $importID);
|
106 |
+
// Regenerate product lookup tables.
|
107 |
+
if ( ! wc_update_product_lookup_tables_is_running() ) {
|
108 |
+
wc_update_product_lookup_tables();
|
109 |
+
}
|
110 |
}
|
111 |
}
|
libraries/XmlImportWooCommerceService.php
CHANGED
@@ -173,6 +173,7 @@ final class XmlImportWooCommerceService {
|
|
173 |
}
|
174 |
}
|
175 |
}
|
|
|
176 |
// Sync parent product with variation if at least one variation exist.
|
177 |
if (!empty($variations)) {
|
178 |
/** @var WC_Product_Variable_Data_Store_CPT $data_store */
|
@@ -182,7 +183,7 @@ final class XmlImportWooCommerceService {
|
|
182 |
$data_store->sync_stock_status( $product );
|
183 |
}
|
184 |
// Set product default attributes.
|
185 |
-
if ($this->isUpdateDataAllowed('is_update_attributes') && $this->getImport()->options['is_default_attributes']) {
|
186 |
$defaultVariation = FALSE;
|
187 |
// Set first variation as the default selection.
|
188 |
if ($this->getImport()->options['default_attributes_type'] == 'first') {
|
@@ -232,6 +233,9 @@ final class XmlImportWooCommerceService {
|
|
232 |
if (count($variationIDs) < $minimumVariations) {
|
233 |
$this->maybeMakeProductSimple($product, $variationIDs);
|
234 |
}
|
|
|
|
|
|
|
235 |
do_action('wp_all_import_variable_product_imported', $product->get_id());
|
236 |
// Delete originally parsed data, which was temporary stored in
|
237 |
// product meta.
|
@@ -321,6 +325,28 @@ final class XmlImportWooCommerceService {
|
|
321 |
return $results;
|
322 |
}
|
323 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
324 |
/**
|
325 |
* @param string $option
|
326 |
* @param bool $isNewProduct
|
@@ -378,7 +404,7 @@ final class XmlImportWooCommerceService {
|
|
378 |
*
|
379 |
* @return bool
|
380 |
*/
|
381 |
-
public function isUpdateAttribute($attributeName, $
|
382 |
$is_update_attributes = TRUE;
|
383 |
// Update only these Attributes, leave the rest alone.
|
384 |
if ( ! $isNewProduct && $this->getImport()->options['update_all_data'] == "no" && $this->getImport()->options['is_update_attributes'] && $this->getImport()->options['update_attributes_logic'] == 'only') {
|
173 |
}
|
174 |
}
|
175 |
}
|
176 |
+
$isNewProduct = get_post_meta($product->get_id(), self::FLAG_IS_NEW_PRODUCT, true);
|
177 |
// Sync parent product with variation if at least one variation exist.
|
178 |
if (!empty($variations)) {
|
179 |
/** @var WC_Product_Variable_Data_Store_CPT $data_store */
|
183 |
$data_store->sync_stock_status( $product );
|
184 |
}
|
185 |
// Set product default attributes.
|
186 |
+
if ($this->isUpdateDataAllowed('is_update_attributes', $isNewProduct) && $this->getImport()->options['is_default_attributes']) {
|
187 |
$defaultVariation = FALSE;
|
188 |
// Set first variation as the default selection.
|
189 |
if ($this->getImport()->options['default_attributes_type'] == 'first') {
|
233 |
if (count($variationIDs) < $minimumVariations) {
|
234 |
$this->maybeMakeProductSimple($product, $variationIDs);
|
235 |
}
|
236 |
+
if ($this->isUpdateDataAllowed('is_update_attributes', $isNewProduct)) {
|
237 |
+
$this->recountAttributes($product);
|
238 |
+
}
|
239 |
do_action('wp_all_import_variable_product_imported', $product->get_id());
|
240 |
// Delete originally parsed data, which was temporary stored in
|
241 |
// product meta.
|
325 |
return $results;
|
326 |
}
|
327 |
|
328 |
+
/**
|
329 |
+
* Re-count product attributes.
|
330 |
+
*
|
331 |
+
* @param WC_Product $product
|
332 |
+
*/
|
333 |
+
public function recountAttributes(\WC_Product $product) {
|
334 |
+
$attributes = $product->get_attributes();
|
335 |
+
/** @var \WC_Product_Attribute $attribute */
|
336 |
+
foreach ($attributes as $attributeName => $attribute) {
|
337 |
+
if ($attribute->is_taxonomy()) {
|
338 |
+
$attribute_values = $attribute->get_terms();
|
339 |
+
if (!empty($attribute_values)) {
|
340 |
+
$terms = [];
|
341 |
+
foreach ($attribute_values as $key => $object) {
|
342 |
+
$terms[] = $object->term_id;
|
343 |
+
}
|
344 |
+
wp_update_term_count_now($terms, $attributeName);
|
345 |
+
}
|
346 |
+
}
|
347 |
+
}
|
348 |
+
}
|
349 |
+
|
350 |
/**
|
351 |
* @param string $option
|
352 |
* @param bool $isNewProduct
|
404 |
*
|
405 |
* @return bool
|
406 |
*/
|
407 |
+
public function isUpdateAttribute($attributeName, $isNewProduct = TRUE) {
|
408 |
$is_update_attributes = TRUE;
|
409 |
// Update only these Attributes, leave the rest alone.
|
410 |
if ( ! $isNewProduct && $this->getImport()->options['update_all_data'] == "no" && $this->getImport()->options['is_update_attributes'] && $this->getImport()->options['update_attributes_logic'] == 'only') {
|
libraries/importer/products/ImportProduct.php
CHANGED
@@ -69,6 +69,9 @@ abstract class ImportProduct extends ImportProductBase {
|
|
69 |
public function import() {
|
70 |
$this->setProperties();
|
71 |
$this->save();
|
|
|
|
|
|
|
72 |
}
|
73 |
|
74 |
/**
|
@@ -354,7 +357,7 @@ abstract class ImportProduct extends ImportProductBase {
|
|
354 |
}
|
355 |
$isTaxonomy = intval($attribute['in_taxonomy']);
|
356 |
$attributeName = ($isTaxonomy) ? wc_attribute_taxonomy_name( $real_attr_name ) : $real_attr_name;
|
357 |
-
$isUpdateAttributes = $this->getImportService()->isUpdateAttribute($attributeName, $this->
|
358 |
$attribute_position++;
|
359 |
if ($isUpdateAttributes) {
|
360 |
$values = $attribute['value'];
|
@@ -427,7 +430,7 @@ abstract class ImportProduct extends ImportProductBase {
|
|
427 |
}
|
428 |
}
|
429 |
$name = $attribute->is_taxonomy() ? $attributeName : $attribute->get_name();
|
430 |
-
if (!$this->getImportService()->isUpdateAttribute($name, $this->
|
431 |
$productAttributes[$attributeName] = array(
|
432 |
'name' => $attribute->is_taxonomy() ? urldecode_deep($attributeName) : $attribute->get_name(),
|
433 |
'value' => $attribute->is_taxonomy() ? $attribute->get_options() : implode("|", $attribute->get_options()),
|
@@ -518,7 +521,7 @@ abstract class ImportProduct extends ImportProductBase {
|
|
518 |
// Unique SKU.
|
519 |
$newSKU = wc_clean( trim( stripslashes( $this->getValue('product_sku') ) ) );
|
520 |
|
521 |
-
if ( ( in_array($this->productType, array('variation', 'variable')) || $this->getValue('product_types') == "variable" ) && ! $this->getImport()->options['link_all_variations'] ){
|
522 |
$identity = FALSE;
|
523 |
switch ($this->getImport()->options['matching_parent']){
|
524 |
case 'first_is_parent_id':
|
@@ -553,7 +556,7 @@ abstract class ImportProduct extends ImportProductBase {
|
|
553 |
}
|
554 |
}
|
555 |
|
556 |
-
if ( ( in_array($this->productType, array('variation', 'variable')) || $this->getValue('product_types') == "variable" ) && ! $this->getImport()->options['link_all_variations'] ) {
|
557 |
$identity = FALSE;
|
558 |
switch ($this->getImport()->options['matching_parent']){
|
559 |
case 'first_is_parent_id':
|
@@ -577,7 +580,7 @@ abstract class ImportProduct extends ImportProductBase {
|
|
577 |
*/
|
578 |
protected function importGrouping() {
|
579 |
// Group products by Parent.
|
580 |
-
if (in_array($this->productType, array( 'simple', 'external', 'variable' ))) {
|
581 |
// Group all product to one parent ( no XPath provided ).
|
582 |
if ($this->getImport()->options['is_multiple_grouping_product'] != 'yes') {
|
583 |
// Trying to find parent product according to matching options.
|
@@ -710,7 +713,7 @@ abstract class ImportProduct extends ImportProductBase {
|
|
710 |
*
|
711 |
* @return mixed
|
712 |
*/
|
713 |
-
|
714 |
switch ($property) {
|
715 |
case 'stock_quantity':
|
716 |
$property = '_stock';
|
69 |
public function import() {
|
70 |
$this->setProperties();
|
71 |
$this->save();
|
72 |
+
if (!in_array($this->productType, ['variable', 'product_variation']) && $this->getImportService()->isUpdateDataAllowed('is_update_attributes', $this->isNewProduct())) {
|
73 |
+
$this->getImportService()->recountAttributes($this->product);
|
74 |
+
}
|
75 |
}
|
76 |
|
77 |
/**
|
357 |
}
|
358 |
$isTaxonomy = intval($attribute['in_taxonomy']);
|
359 |
$attributeName = ($isTaxonomy) ? wc_attribute_taxonomy_name( $real_attr_name ) : $real_attr_name;
|
360 |
+
$isUpdateAttributes = $this->getImportService()->isUpdateAttribute($attributeName, $this->isNewProduct());
|
361 |
$attribute_position++;
|
362 |
if ($isUpdateAttributes) {
|
363 |
$values = $attribute['value'];
|
430 |
}
|
431 |
}
|
432 |
$name = $attribute->is_taxonomy() ? $attributeName : $attribute->get_name();
|
433 |
+
if (!$this->getImportService()->isUpdateAttribute($name, $this->isNewProduct()) || $isAddNew) {
|
434 |
$productAttributes[$attributeName] = array(
|
435 |
'name' => $attribute->is_taxonomy() ? urldecode_deep($attributeName) : $attribute->get_name(),
|
436 |
'value' => $attribute->is_taxonomy() ? $attribute->get_options() : implode("|", $attribute->get_options()),
|
521 |
// Unique SKU.
|
522 |
$newSKU = wc_clean( trim( stripslashes( $this->getValue('product_sku') ) ) );
|
523 |
|
524 |
+
if ( ( in_array($this->productType, array('variation', 'variable', 'variable-subscription')) || $this->getValue('product_types') == "variable" || $this->getValue('product_types') == 'variable-subscription' ) && ! $this->getImport()->options['link_all_variations'] ){
|
525 |
$identity = FALSE;
|
526 |
switch ($this->getImport()->options['matching_parent']){
|
527 |
case 'first_is_parent_id':
|
556 |
}
|
557 |
}
|
558 |
|
559 |
+
if ( ( in_array($this->productType, array('variation', 'variable', 'variable-subscription')) || $this->getValue('product_types') == "variable" || $this->getValue('product_types') == "variable-subscription" ) && ! $this->getImport()->options['link_all_variations'] ) {
|
560 |
$identity = FALSE;
|
561 |
switch ($this->getImport()->options['matching_parent']){
|
562 |
case 'first_is_parent_id':
|
580 |
*/
|
581 |
protected function importGrouping() {
|
582 |
// Group products by Parent.
|
583 |
+
if (in_array($this->productType, array( 'simple', 'external', 'variable', 'variable-subscription' ))) {
|
584 |
// Group all product to one parent ( no XPath provided ).
|
585 |
if ($this->getImport()->options['is_multiple_grouping_product'] != 'yes') {
|
586 |
// Trying to find parent product according to matching options.
|
713 |
*
|
714 |
* @return mixed
|
715 |
*/
|
716 |
+
public function getPropertyMetaKey($property) {
|
717 |
switch ($property) {
|
718 |
case 'stock_quantity':
|
719 |
$property = '_stock';
|
libraries/parser/ProductsParser.php
CHANGED
@@ -82,7 +82,9 @@ class ProductsParser extends ProductsParserBase {
|
|
82 |
'product_up_sells',
|
83 |
'product_cross_sells',
|
84 |
'product_purchase_note',
|
85 |
-
'product_menu_order'
|
|
|
|
|
86 |
),
|
87 |
'parseOptionType_4' => array(
|
88 |
'sale_price_dates_from',
|
@@ -92,7 +94,12 @@ class ProductsParser extends ProductsParserBase {
|
|
92 |
'type',
|
93 |
'tax_status',
|
94 |
'tax_class',
|
95 |
-
'shipping_class'
|
|
|
|
|
|
|
|
|
|
|
96 |
),
|
97 |
'parseStockStatus' => array(),
|
98 |
'parseGroupingProducts' => array(),
|
82 |
'product_up_sells',
|
83 |
'product_cross_sells',
|
84 |
'product_purchase_note',
|
85 |
+
'product_menu_order',
|
86 |
+
'product_subscription_price',
|
87 |
+
'product_subscription_sign_up_fee',
|
88 |
),
|
89 |
'parseOptionType_4' => array(
|
90 |
'sale_price_dates_from',
|
94 |
'type',
|
95 |
'tax_status',
|
96 |
'tax_class',
|
97 |
+
'shipping_class',
|
98 |
+
'subscription_period',
|
99 |
+
'subscription_period_interval',
|
100 |
+
'subscription_trial_period',
|
101 |
+
'subscription_length',
|
102 |
+
'subscription_limit',
|
103 |
),
|
104 |
'parseStockStatus' => array(),
|
105 |
'parseGroupingProducts' => array(),
|
libraries/services/XmlImportWooTaxonomyService.php
CHANGED
@@ -113,13 +113,6 @@ class XmlImportWooTaxonomyService extends XmlImportWooServiceBase {
|
|
113 |
}
|
114 |
}
|
115 |
|
116 |
-
// Clear WooCommerce attributes cache.
|
117 |
-
$prefix = WC_Cache_Helper::get_cache_prefix( 'woocommerce-attributes' );
|
118 |
-
foreach (['ids', 'attributes'] as $cache_key) {
|
119 |
-
wp_cache_delete( $prefix . $cache_key, 'woocommerce-attributes' );
|
120 |
-
}
|
121 |
-
delete_transient( 'wc_attribute_taxonomies' );
|
122 |
-
|
123 |
if (!wc_attribute_taxonomy_id_by_name($attr_name_real) && strlen($attribute_name) < 31) {
|
124 |
$this->createWooCommerceAttribute($args);
|
125 |
}
|
@@ -131,11 +124,18 @@ class XmlImportWooTaxonomyService extends XmlImportWooServiceBase {
|
|
131 |
* @param $args
|
132 |
*/
|
133 |
public function createWooCommerceAttribute($args) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
$this->wpdb->insert(
|
135 |
$this->wpdb->prefix . 'woocommerce_attribute_taxonomies',
|
136 |
$args
|
137 |
);
|
138 |
-
$attribute_taxonomies = $this->wpdb->get_results( "SELECT * FROM " . $this->wpdb->prefix . "woocommerce_attribute_taxonomies" );
|
139 |
set_transient( 'wc_attribute_taxonomies', $attribute_taxonomies );
|
140 |
}
|
141 |
-
}
|
113 |
}
|
114 |
}
|
115 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
if (!wc_attribute_taxonomy_id_by_name($attr_name_real) && strlen($attribute_name) < 31) {
|
117 |
$this->createWooCommerceAttribute($args);
|
118 |
}
|
124 |
* @param $args
|
125 |
*/
|
126 |
public function createWooCommerceAttribute($args) {
|
127 |
+
// Clear WooCommerce attributes cache.
|
128 |
+
$prefix = WC_Cache_Helper::get_cache_prefix('woocommerce-attributes');
|
129 |
+
foreach (['ids', 'attributes'] as $cache_key) {
|
130 |
+
wp_cache_delete($prefix . $cache_key, 'woocommerce-attributes');
|
131 |
+
}
|
132 |
+
delete_transient('wc_attribute_taxonomies');
|
133 |
+
|
134 |
$this->wpdb->insert(
|
135 |
$this->wpdb->prefix . 'woocommerce_attribute_taxonomies',
|
136 |
$args
|
137 |
);
|
138 |
+
$attribute_taxonomies = $this->wpdb->get_results( "SELECT * FROM " . $this->wpdb->prefix . "woocommerce_attribute_taxonomies WHERE attribute_name != '' ORDER BY attribute_name ASC;" );
|
139 |
set_transient( 'wc_attribute_taxonomies', $attribute_taxonomies );
|
140 |
}
|
141 |
+
}
|
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.
|
7 |
Author: Soflyy
|
8 |
-
WC tested up to: 3.
|
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.
|
29 |
|
30 |
define('PMWI_EDITION', 'free');
|
31 |
|
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.3
|
7 |
Author: Soflyy
|
8 |
+
WC tested up to: 3.7.0
|
9 |
*/
|
10 |
|
11 |
if ( ! function_exists( 'is_plugin_active' ) ) {
|
25 |
}
|
26 |
else {
|
27 |
|
28 |
+
define('PMWI_FREE_VERSION', '1.4.3');
|
29 |
|
30 |
define('PMWI_EDITION', 'free');
|
31 |
|
readme.txt
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
=== Import Products from any XML or CSV to WooCommerce ===
|
2 |
Contributors: soflyy, wpallimport
|
3 |
Requires at least: 4.1
|
4 |
-
Tested up to: 5.2
|
5 |
-
Stable tag: 1.4.
|
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,10 @@ The WooCommerce add-on will appear in the Step 4 of WP All Import.
|
|
83 |
|
84 |
== Changelog ==
|
85 |
|
|
|
|
|
|
|
|
|
86 |
= 1.4.2 =
|
87 |
* bug fix: grant incorrect downloadable product permissions
|
88 |
* bug fix: update attributes with non utf-8 characters
|
1 |
=== Import Products from any XML or CSV to WooCommerce ===
|
2 |
Contributors: soflyy, wpallimport
|
3 |
Requires at least: 4.1
|
4 |
+
Tested up to: 5.2.3
|
5 |
+
Stable tag: 1.4.3
|
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.3 =
|
87 |
+
* bug fix: lookup table not updating after import
|
88 |
+
* bug fix: attributes not re-counting after import
|
89 |
+
|
90 |
= 1.4.2 =
|
91 |
* bug fix: grant incorrect downloadable product permissions
|
92 |
* bug fix: update attributes with non utf-8 characters
|
static/css/admin.css
CHANGED
@@ -538,3 +538,16 @@ div#order_taxes.panel.woocommerce_options_panel {
|
|
538 |
display: block;
|
539 |
}
|
540 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
538 |
display: block;
|
539 |
}
|
540 |
|
541 |
+
.wpallimport-plugin .woocommerce-group-label {
|
542 |
+
font-weight: bold;
|
543 |
+
margin-bottom: 10px;
|
544 |
+
}
|
545 |
+
.wpallimport-plugin .subscription-billing-settings .subscription-billing-interval,
|
546 |
+
.wpallimport-plugin .subscription-billing-settings .subscription-billing-period {
|
547 |
+
float: left;
|
548 |
+
width: 45%;
|
549 |
+
margin-bottom: 10px;
|
550 |
+
}
|
551 |
+
.wpallimport-plugin .subscription-expiration {
|
552 |
+
margin-bottom: 10px;
|
553 |
+
}
|
static/js/admin.js
CHANGED
@@ -18,6 +18,8 @@
|
|
18 |
var is_grouped = ($('#product-type').val() == 'grouped');
|
19 |
var is_simple = ($('#product-type').val() == 'simple');
|
20 |
var is_external = ($('#product-type').val() == 'external');
|
|
|
|
|
21 |
var is_downloadable = !($('input[name=is_product_downloadable]:checked').val() == 'no');
|
22 |
var is_variable_downloadable = !($('input[name=is_variable_product_downloadable]:checked').val() == 'no');
|
23 |
var is_virtual = ($('#_virtual').is(':checked'));
|
@@ -25,77 +27,202 @@
|
|
25 |
|
26 |
if (!is_multiple_product_type) $('.product_data_tabs li, .options_group').show();
|
27 |
|
28 |
-
if (
|
29 |
is_simple = true;
|
30 |
}
|
31 |
|
32 |
$('.product_data_tabs li, .options_group').each(function(){
|
33 |
|
34 |
-
if (($(this).hasClass('hide_if_grouped') ||
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
}
|
40 |
|
41 |
-
if (($(this).hasClass('show_if_simple') || $(this).hasClass('show_if_variable') || $(this).hasClass('show_if_grouped') || $(this).hasClass('show_if_external')) && is_multiple_product_type){
|
42 |
-
if ($(this).hasClass('show_if_simple') && is_simple)
|
|
|
|
|
43 |
$(this).hide();
|
44 |
-
if ($(this).hasClass('show_if_variable') && is_variable)
|
|
|
|
|
45 |
$(this).hide();
|
46 |
-
if ($(this).hasClass('show_if_grouped') && is_grouped)
|
|
|
|
|
47 |
$(this).hide();
|
48 |
-
if ($(this).hasClass('show_if_external') && is_external)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
}
|
50 |
}
|
51 |
}
|
52 |
-
else if(
|
53 |
-
if ($(this).hasClass('show_if_variable') && is_variable)
|
|
|
|
|
54 |
$(this).hide();
|
55 |
-
if ($(this).hasClass('show_if_grouped') && is_grouped)
|
|
|
|
|
56 |
$(this).hide();
|
57 |
-
if ($(this).hasClass('show_if_external') && is_external)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
}
|
59 |
}
|
60 |
-
else if (
|
61 |
-
if ($(this).hasClass('show_if_grouped') && is_grouped)
|
|
|
|
|
62 |
$(this).hide();
|
63 |
-
if ($(this).hasClass('show_if_external') && is_external)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
}
|
65 |
-
else if (
|
66 |
-
if ($(this).hasClass('show_if_external') && is_external)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
}
|
68 |
}
|
69 |
}
|
70 |
}
|
71 |
|
72 |
-
if ($(this).hasClass('hide_if_virtual') ||
|
73 |
-
|
74 |
-
|
75 |
-
$(this).hasClass('
|
76 |
-
|
77 |
-
|
78 |
-
if ($(this).hasClass('show_if_virtual') && is_virtual)
|
79 |
-
|
80 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
}
|
82 |
});
|
83 |
|
84 |
-
if ($('input[name=is_product_manage_stock]:checked').val() == 'no')
|
|
|
|
|
|
|
|
|
85 |
|
86 |
-
if ($('input[name=is_variable_product_manage_stock]:checked').val() == 'no')
|
|
|
|
|
|
|
|
|
87 |
|
88 |
-
if ($('#link_all_variations').is(':checked'))
|
|
|
|
|
|
|
|
|
89 |
|
90 |
-
if ($('#xml_matching_parent').is(':checked') && is_variable)
|
|
|
|
|
|
|
|
|
91 |
|
92 |
var matching_parent = $('input[name=matching_parent]:checked').val();
|
93 |
|
94 |
-
if (matching_parent == "xml" || matching_parent == "first_is_parent_title" || matching_parent == "auto" || matching_parent == "existing"){
|
95 |
$('#variations_tag').show();
|
96 |
$('.variations_are_not_child_elements').hide();
|
97 |
}
|
98 |
-
else{
|
99 |
$('#variations_tag').hide();
|
100 |
$('.variations_are_not_child_elements').show();
|
101 |
}
|
@@ -123,20 +250,28 @@
|
|
123 |
|
124 |
$('input[name=matching_parent]').click(function(){
|
125 |
|
126 |
-
if ($(this).val() == "xml" || $(this).val() == "first_is_parent_title" || $(this).val() == "auto" || $(this).val() == "existing"){
|
127 |
$('#variations_tag').show();
|
128 |
$('.variations_are_not_child_elements').hide();
|
129 |
}
|
130 |
else{
|
131 |
$('#variations_tag').hide();
|
132 |
$('.variations_are_not_child_elements').show();
|
133 |
-
if ($('input[name=is_variation_product_manage_stock]:checked').val() == 'no')
|
|
|
|
|
|
|
|
|
134 |
}
|
135 |
|
136 |
});
|
137 |
|
138 |
$('input[name=is_variation_product_manage_stock]').click(function(){
|
139 |
-
if ($('input[name=is_variation_product_manage_stock]:checked').val() == 'no')
|
|
|
|
|
|
|
|
|
140 |
});
|
141 |
|
142 |
change_depencies();
|
@@ -151,10 +286,12 @@
|
|
151 |
$('.wc-tabs').find('li:visible:first').find('a').click();
|
152 |
});
|
153 |
$('#link_all_variations').change(function(){
|
154 |
-
if ($(this).is(':checked'))
|
155 |
-
$('.variations_tab').hide();
|
156 |
-
|
|
|
157 |
$('.variations_tab').show();
|
|
|
158 |
});
|
159 |
$('#regular_price_shedule').click(function(){
|
160 |
$('#sale_price_range').show();
|
@@ -251,7 +388,6 @@
|
|
251 |
mouseenter: function () {
|
252 |
if ("" == $(this).attr('for')) {
|
253 |
var counter = $(this).parents('table:first').find('tr.form-field:visible').length;
|
254 |
-
|
255 |
$(this).parents('span:first').find('input').attr('id', $(this).parents('span:first').find('input').attr('name').replace('[]', '') + '_' + counter);
|
256 |
$(this).attr('for', $(this).parents('span:first').find('input').attr('id'));
|
257 |
var $create_terms = $(this).parents('.wpallimport-radio-field:first').find('.is_create_taxonomy');
|
@@ -316,7 +452,7 @@
|
|
316 |
$('#attributes_table').find('textarea[name^=attribute_value]').each(function(){
|
317 |
if ("" != $(this).val() && $(this).val() != undefined) attrs.push($(this).val());
|
318 |
});
|
319 |
-
if (attrs.length){
|
320 |
$(this).parents('#product:first').find('input[name=unique_key]').val($unique_key + attrs.join('-'));
|
321 |
alert('The unique key has been successfully generated');
|
322 |
}
|
@@ -326,11 +462,11 @@
|
|
326 |
});
|
327 |
|
328 |
$('.pmwi_adjust_type').change(function(){
|
329 |
-
if ($(this).val() == '%'){
|
330 |
$(this).parents('.form-field:first').find('.pmwi_reduce_prices_note').hide();
|
331 |
$(this).parents('.form-field:first').find('.pmwi_percentage_prices_note').show();
|
332 |
}
|
333 |
-
else{
|
334 |
$(this).parents('.form-field:first').find('.pmwi_reduce_prices_note').show();
|
335 |
$(this).parents('.form-field:first').find('.pmwi_percentage_prices_note').hide();
|
336 |
}
|
@@ -509,6 +645,22 @@
|
|
509 |
}
|
510 |
}).change();
|
511 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
512 |
// Sortable product attributes.
|
513 |
$('#attributes_table tbody, #variation_attributes_table tbody').sortable({
|
514 |
items: "tr:not(.wpallimport-table-actions, .template)",
|
18 |
var is_grouped = ($('#product-type').val() == 'grouped');
|
19 |
var is_simple = ($('#product-type').val() == 'simple');
|
20 |
var is_external = ($('#product-type').val() == 'external');
|
21 |
+
var is_simple_subscription = ($('#product-type').val() == 'subscription');
|
22 |
+
var is_variable_subscription = ($('#product-type').val() == 'variable-subscription');
|
23 |
var is_downloadable = !($('input[name=is_product_downloadable]:checked').val() == 'no');
|
24 |
var is_variable_downloadable = !($('input[name=is_variable_product_downloadable]:checked').val() == 'no');
|
25 |
var is_virtual = ($('#_virtual').is(':checked'));
|
27 |
|
28 |
if (!is_multiple_product_type) $('.product_data_tabs li, .options_group').show();
|
29 |
|
30 |
+
if (!is_variable && !is_grouped && !is_external && !is_simple_subscription && !is_variable_subscription && is_multiple_product_type ) {
|
31 |
is_simple = true;
|
32 |
}
|
33 |
|
34 |
$('.product_data_tabs li, .options_group').each(function(){
|
35 |
|
36 |
+
if (($(this).hasClass('hide_if_grouped') || $(this).hasClass('hide_if_external')) && is_multiple_product_type) {
|
37 |
+
if ($(this).hasClass('hide_if_grouped') && is_grouped) {
|
38 |
+
$(this).hide();
|
39 |
+
return true;
|
40 |
+
}
|
41 |
+
else if ( $(this).hasClass('hide_if_grouped') && !is_grouped ) {
|
42 |
+
$(this).show();
|
43 |
+
}
|
44 |
+
if ($(this).hasClass('hide_if_external') && is_external) {
|
45 |
+
$(this).hide();
|
46 |
+
return true;
|
47 |
+
}
|
48 |
+
else if ($(this).hasClass('hide_if_external') && !is_external) {
|
49 |
+
$(this).show();
|
50 |
+
}
|
51 |
}
|
52 |
|
53 |
+
if (($(this).hasClass('show_if_simple') || $(this).hasClass('show_if_variable') || $(this).hasClass('show_if_grouped') || $(this).hasClass('show_if_external') || $(this).hasClass('show_if_subscription') || $(this).hasClass('show_if_variable_subscription')) && is_multiple_product_type) {
|
54 |
+
if ($(this).hasClass('show_if_simple') && is_simple) {
|
55 |
+
$(this).show();
|
56 |
+
} else if (!is_simple) {
|
57 |
$(this).hide();
|
58 |
+
if ($(this).hasClass('show_if_variable') && is_variable) {
|
59 |
+
$(this).show();
|
60 |
+
} else if (!is_variable) {
|
61 |
$(this).hide();
|
62 |
+
if ($(this).hasClass('show_if_grouped') && is_grouped) {
|
63 |
+
$(this).show();
|
64 |
+
} else if (!is_grouped) {
|
65 |
$(this).hide();
|
66 |
+
if ($(this).hasClass('show_if_external') && is_external) {
|
67 |
+
$(this).show();
|
68 |
+
} else if (!is_external) {
|
69 |
+
$(this).hide();
|
70 |
+
if ($(this).hasClass('show_if_subscription') && is_simple_subscription) {
|
71 |
+
$(this).show();
|
72 |
+
} else if (!is_simple_subscription) {
|
73 |
+
$(this).hide();
|
74 |
+
if ($(this).hasClass('show_if_variable_subscription') && is_variable_subscription) {
|
75 |
+
$(this).show();
|
76 |
+
} else if (!is_variable_subscription) {
|
77 |
+
$(this).hide();
|
78 |
+
}
|
79 |
+
}
|
80 |
+
}
|
81 |
}
|
82 |
}
|
83 |
}
|
84 |
+
else if (!$(this).hasClass('show_if_simple')) {
|
85 |
+
if ($(this).hasClass('show_if_variable') && is_variable) {
|
86 |
+
$(this).show();
|
87 |
+
} else if (!is_variable) {
|
88 |
$(this).hide();
|
89 |
+
if ($(this).hasClass('show_if_grouped') && is_grouped) {
|
90 |
+
$(this).show();
|
91 |
+
} else if (!is_grouped) {
|
92 |
$(this).hide();
|
93 |
+
if ($(this).hasClass('show_if_external') && is_external) {
|
94 |
+
$(this).show();
|
95 |
+
} else if (!is_external) {
|
96 |
+
$(this).hide();
|
97 |
+
if ($(this).hasClass('show_if_subscription') && is_simple_subscription) {
|
98 |
+
$(this).show();
|
99 |
+
} else if (!is_simple_subscription) {
|
100 |
+
$(this).hide();
|
101 |
+
if ($(this).hasClass('show_if_variable_subscription') && is_variable_subscription) {
|
102 |
+
$(this).show();
|
103 |
+
} else if (!is_variable_subscription) {
|
104 |
+
$(this).hide();
|
105 |
+
}
|
106 |
+
}
|
107 |
+
}
|
108 |
}
|
109 |
}
|
110 |
+
else if (!$(this).hasClass('show_if_variable')) {
|
111 |
+
if ($(this).hasClass('show_if_grouped') && is_grouped) {
|
112 |
+
$(this).show();
|
113 |
+
} else if (!is_grouped) {
|
114 |
$(this).hide();
|
115 |
+
if ($(this).hasClass('show_if_external') && is_external) {
|
116 |
+
$(this).show();
|
117 |
+
} else if (!is_external) {
|
118 |
+
$(this).hide();
|
119 |
+
if ($(this).hasClass('show_if_subscription') && is_simple_subscription) {
|
120 |
+
$(this).show();
|
121 |
+
} else if (!is_simple_subscription) {
|
122 |
+
$(this).hide();
|
123 |
+
if ($(this).hasClass('show_if_variable_subscription') && is_variable_subscription) {
|
124 |
+
$(this).show();
|
125 |
+
} else if (!is_variable_subscription) {
|
126 |
+
$(this).hide();
|
127 |
+
}
|
128 |
+
}
|
129 |
+
}
|
130 |
}
|
131 |
+
else if (!$(this).hasClass('show_if_grouped')) {
|
132 |
+
if ($(this).hasClass('show_if_external') && is_external) {
|
133 |
+
$(this).show();
|
134 |
+
} else if (!is_external) {
|
135 |
+
$(this).hide();
|
136 |
+
if ($(this).hasClass('show_if_subscription') && is_simple_subscription) {
|
137 |
+
$(this).show();
|
138 |
+
} else if (!is_simple_subscription) {
|
139 |
+
$(this).hide();
|
140 |
+
if ($(this).hasClass('show_if_variable_subscription') && is_variable_subscription) {
|
141 |
+
$(this).show();
|
142 |
+
} else if (!is_variable_subscription) {
|
143 |
+
$(this).hide();
|
144 |
+
}
|
145 |
+
}
|
146 |
+
}
|
147 |
+
else if (!$(this).hasClass('show_if_external')) {
|
148 |
+
if ($(this).hasClass('show_if_subscription') && is_simple_subscription) {
|
149 |
+
$(this).show();
|
150 |
+
} else if (!is_simple_subscription) {
|
151 |
+
$(this).hide();
|
152 |
+
if ($(this).hasClass('show_if_variable_subscription') && is_variable_subscription) {
|
153 |
+
$(this).show();
|
154 |
+
} else if (!is_variable_subscription) {
|
155 |
+
$(this).hide();
|
156 |
+
}
|
157 |
+
}
|
158 |
+
else if (!$(this).hasClass('show_if_subscription')) {
|
159 |
+
if ($(this).hasClass('show_if_variable_subscription') && is_variable_subscription) {
|
160 |
+
$(this).show();
|
161 |
+
} else if (!is_variable_subscription) {
|
162 |
+
$(this).hide();
|
163 |
+
}
|
164 |
+
}
|
165 |
+
}
|
166 |
}
|
167 |
}
|
168 |
}
|
169 |
}
|
170 |
|
171 |
+
if ($(this).hasClass('hide_if_virtual') || $(this).hasClass('show_if_virtual') || $(this).hasClass('show_if_downloadable') || $(this).hasClass('variable_downloadable')) {
|
172 |
+
if ($(this).hasClass('hide_if_virtual') && is_virtual) {
|
173 |
+
$(this).hide();
|
174 |
+
} else if ($(this).hasClass('hide_if_virtual') && !is_virtual) {
|
175 |
+
$(this).show();
|
176 |
+
}
|
177 |
+
if ($(this).hasClass('show_if_virtual') && is_virtual) {
|
178 |
+
$(this).show();
|
179 |
+
} else if ($(this).hasClass('show_if_virtual') && !is_virtual) {
|
180 |
+
$(this).hide();
|
181 |
+
}
|
182 |
+
if ($(this).hasClass('show_if_downloadable') && is_downloadable) {
|
183 |
+
$(this).show();
|
184 |
+
} else if ($(this).hasClass('show_if_downloadable') && !is_downloadable) {
|
185 |
+
$(this).hide();
|
186 |
+
}
|
187 |
+
if ($(this).hasClass('variable_downloadable') && is_variable_downloadable) {
|
188 |
+
$(this).show();
|
189 |
+
} else if ($(this).hasClass('variable_downloadable') && !is_variable_downloadable) {
|
190 |
+
$(this).hide();
|
191 |
+
}
|
192 |
}
|
193 |
});
|
194 |
|
195 |
+
if ($('input[name=is_product_manage_stock]:checked').val() == 'no') {
|
196 |
+
$('.stock_fields').hide();
|
197 |
+
} else {
|
198 |
+
$('.stock_fields').show();
|
199 |
+
}
|
200 |
|
201 |
+
if ($('input[name=is_variable_product_manage_stock]:checked').val() == 'no') {
|
202 |
+
$('.variable_stock_fields').hide();
|
203 |
+
} else {
|
204 |
+
$('.variable_stock_fields').fadeIn();
|
205 |
+
}
|
206 |
|
207 |
+
if ($('#link_all_variations').is(':checked')) {
|
208 |
+
$('.variations_tab').hide();
|
209 |
+
} else if (is_variable) {
|
210 |
+
$('.variations_tab').show();
|
211 |
+
}
|
212 |
|
213 |
+
if ($('#xml_matching_parent').is(':checked') && is_variable) {
|
214 |
+
$('#variations_tag').show();
|
215 |
+
} else {
|
216 |
+
$('#variations_tag').hide();
|
217 |
+
}
|
218 |
|
219 |
var matching_parent = $('input[name=matching_parent]:checked').val();
|
220 |
|
221 |
+
if (matching_parent == "xml" || matching_parent == "first_is_parent_title" || matching_parent == "auto" || matching_parent == "existing") {
|
222 |
$('#variations_tag').show();
|
223 |
$('.variations_are_not_child_elements').hide();
|
224 |
}
|
225 |
+
else {
|
226 |
$('#variations_tag').hide();
|
227 |
$('.variations_are_not_child_elements').show();
|
228 |
}
|
250 |
|
251 |
$('input[name=matching_parent]').click(function(){
|
252 |
|
253 |
+
if ($(this).val() == "xml" || $(this).val() == "first_is_parent_title" || $(this).val() == "auto" || $(this).val() == "existing") {
|
254 |
$('#variations_tag').show();
|
255 |
$('.variations_are_not_child_elements').hide();
|
256 |
}
|
257 |
else{
|
258 |
$('#variations_tag').hide();
|
259 |
$('.variations_are_not_child_elements').show();
|
260 |
+
if ($('input[name=is_variation_product_manage_stock]:checked').val() == 'no') {
|
261 |
+
$('.variation_stock_fields').hide();
|
262 |
+
} else {
|
263 |
+
$('.variation_stock_fields').fadeIn();
|
264 |
+
}
|
265 |
}
|
266 |
|
267 |
});
|
268 |
|
269 |
$('input[name=is_variation_product_manage_stock]').click(function(){
|
270 |
+
if ($('input[name=is_variation_product_manage_stock]:checked').val() == 'no') {
|
271 |
+
$('.variation_stock_fields').hide();
|
272 |
+
} else {
|
273 |
+
$('.variation_stock_fields').fadeIn();
|
274 |
+
}
|
275 |
});
|
276 |
|
277 |
change_depencies();
|
286 |
$('.wc-tabs').find('li:visible:first').find('a').click();
|
287 |
});
|
288 |
$('#link_all_variations').change(function(){
|
289 |
+
if ($(this).is(':checked')) {
|
290 |
+
$('.variations_tab').hide();
|
291 |
+
}
|
292 |
+
else {
|
293 |
$('.variations_tab').show();
|
294 |
+
}
|
295 |
});
|
296 |
$('#regular_price_shedule').click(function(){
|
297 |
$('#sale_price_range').show();
|
388 |
mouseenter: function () {
|
389 |
if ("" == $(this).attr('for')) {
|
390 |
var counter = $(this).parents('table:first').find('tr.form-field:visible').length;
|
|
|
391 |
$(this).parents('span:first').find('input').attr('id', $(this).parents('span:first').find('input').attr('name').replace('[]', '') + '_' + counter);
|
392 |
$(this).attr('for', $(this).parents('span:first').find('input').attr('id'));
|
393 |
var $create_terms = $(this).parents('.wpallimport-radio-field:first').find('.is_create_taxonomy');
|
452 |
$('#attributes_table').find('textarea[name^=attribute_value]').each(function(){
|
453 |
if ("" != $(this).val() && $(this).val() != undefined) attrs.push($(this).val());
|
454 |
});
|
455 |
+
if (attrs.length) {
|
456 |
$(this).parents('#product:first').find('input[name=unique_key]').val($unique_key + attrs.join('-'));
|
457 |
alert('The unique key has been successfully generated');
|
458 |
}
|
462 |
});
|
463 |
|
464 |
$('.pmwi_adjust_type').change(function(){
|
465 |
+
if ($(this).val() == '%') {
|
466 |
$(this).parents('.form-field:first').find('.pmwi_reduce_prices_note').hide();
|
467 |
$(this).parents('.form-field:first').find('.pmwi_percentage_prices_note').show();
|
468 |
}
|
469 |
+
else {
|
470 |
$(this).parents('.form-field:first').find('.pmwi_reduce_prices_note').show();
|
471 |
$(this).parents('.form-field:first').find('.pmwi_percentage_prices_note').hide();
|
472 |
}
|
645 |
}
|
646 |
}).change();
|
647 |
|
648 |
+
$('input[name="is_multiple_product_subscription_period"]').live('click', function(){
|
649 |
+
if ($(this).val() == 'no') {
|
650 |
+
$('select[name="multiple_product_subscription_length"]').html($('.subscription_length-xpath').html());
|
651 |
+
}
|
652 |
+
else {
|
653 |
+
var $period = $('select[name="multiple_product_subscription_period"]').val();
|
654 |
+
$('select[name="multiple_product_subscription_length"]').html($('.subscription_length-' + $period).html());
|
655 |
+
}
|
656 |
+
});
|
657 |
+
|
658 |
+
$('input[name="is_multiple_product_subscription_period"]:checked').click();
|
659 |
+
|
660 |
+
$('select[name="multiple_product_subscription_period"]').live('change', function(){
|
661 |
+
$('select[name="multiple_product_subscription_length"]').html($('.subscription_length-' + $(this).val()).html());
|
662 |
+
});
|
663 |
+
|
664 |
// Sortable product attributes.
|
665 |
$('#attributes_table tbody, #variation_attributes_table tbody').sortable({
|
666 |
items: "tr:not(.wpallimport-table-actions, .template)",
|
views/admin/import/_tabs/_advanced.php
DELETED
@@ -1,116 +0,0 @@
|
|
1 |
-
<div class="panel woocommerce_options_panel" id="advanced_product_data" style="display:none;">
|
2 |
-
|
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=1748&edd_options%5Bprice_id%5D=0&utm_source=free-plugin&utm_medium=in-plugin&utm_campaign=woocommerce" 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', 'wpai_woocommerce_addon_plugin');?></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 |
-
|
8 |
-
<div class="options_group hide_if_external">
|
9 |
-
<p class="form-field">
|
10 |
-
<label><?php _e("Purchase Note", "wpai_woocommerce_addon_plugin"); ?></label>
|
11 |
-
<input type="text" class="short" placeholder="" name="single_product_purchase_note" style="" value="<?php echo esc_attr($post['single_product_purchase_note']) ?>"/>
|
12 |
-
</p>
|
13 |
-
</div>
|
14 |
-
<div class="options_group">
|
15 |
-
<p class="form-field">
|
16 |
-
<label><?php _e("Menu order", "wpai_woocommerce_addon_plugin"); ?></label>
|
17 |
-
<input type="text" class="short" placeholder="" name="single_product_menu_order" value="<?php echo esc_attr($post['single_product_menu_order']) ?>"/>
|
18 |
-
</p>
|
19 |
-
</div>
|
20 |
-
|
21 |
-
<div class="options_group reviews">
|
22 |
-
|
23 |
-
<p class="form-field"><?php _e('Enable reviews','wpai_woocommerce_addon_plugin');?></p>
|
24 |
-
|
25 |
-
<p class="form-field wpallimport-radio-field">
|
26 |
-
<input type="radio" id="product_enable_reviews_yes" class="switcher" name="is_product_enable_reviews" value="yes" <?php echo 'yes' == $post['is_product_enable_reviews'] ? 'checked="checked"': '' ?>/>
|
27 |
-
<label for="product_enable_reviews_yes"><?php _e("Yes"); ?></label>
|
28 |
-
</p>
|
29 |
-
<p class="form-field wpallimport-radio-field">
|
30 |
-
<input type="radio" id="product_enable_reviews_no" class="switcher" name="is_product_enable_reviews" value="no" <?php echo 'no' == $post['is_product_enable_reviews'] ? 'checked="checked"': '' ?>/>
|
31 |
-
<label for="product_enable_reviews_no"><?php _e("No"); ?></label>
|
32 |
-
</p>
|
33 |
-
<div class="form-field wpallimport-radio-field">
|
34 |
-
<input type="radio" id="product_enable_reviews_xpath" class="switcher" name="is_product_enable_reviews" value="xpath" <?php echo 'xpath' == $post['is_product_enable_reviews'] ? 'checked="checked"': '' ?>/>
|
35 |
-
<label for="product_enable_reviews_xpath"><?php _e('Set with XPath', 'wpai_woocommerce_addon_plugin' )?></label>
|
36 |
-
<span class="wpallimport-clear"></span>
|
37 |
-
<div class="switcher-target-product_enable_reviews_xpath set_with_xpath">
|
38 |
-
<span class="wpallimport-slide-content" style="padding-left:0px;">
|
39 |
-
<input type="text" class="smaller-text" name="single_product_enable_reviews" style="width:300px;" value="<?php echo esc_attr($post['single_product_enable_reviews']) ?>"/>
|
40 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'yes\', \'no\').', 'wpai_woocommerce_addon_plugin') ?>" style="position:relative; top:2px;">?</a>
|
41 |
-
</span>
|
42 |
-
</div>
|
43 |
-
</div>
|
44 |
-
|
45 |
-
</div> <!-- End options group -->
|
46 |
-
|
47 |
-
<div class="options_group">
|
48 |
-
|
49 |
-
<p class="form-field"><?php _e('Featured','wpai_woocommerce_addon_plugin');?></p>
|
50 |
-
|
51 |
-
<p class="form-field wpallimport-radio-field">
|
52 |
-
<input type="radio" id="product_featured_yes" class="switcher" name="is_product_featured" value="yes" <?php echo 'yes' == $post['is_product_featured'] ? 'checked="checked"': '' ?>/>
|
53 |
-
<label for="product_featured_yes"><?php _e("Yes"); ?></label>
|
54 |
-
</p>
|
55 |
-
<p class="form-field wpallimport-radio-field">
|
56 |
-
<input type="radio" id="product_featured_no" class="switcher" name="is_product_featured" value="no" <?php echo 'no' == $post['is_product_featured'] ? 'checked="checked"': '' ?>/>
|
57 |
-
<label for="product_featured_no"><?php _e("No"); ?></label>
|
58 |
-
</p>
|
59 |
-
<div class="form-field wpallimport-radio-field">
|
60 |
-
<input type="radio" id="product_featured_xpath" class="switcher" name="is_product_featured" value="xpath" <?php echo 'xpath' == $post['is_product_featured'] ? 'checked="checked"': '' ?>/>
|
61 |
-
<label for="product_featured_xpath"><?php _e('Set with XPath', 'wpai_woocommerce_addon_plugin' )?></label>
|
62 |
-
<span class="wpallimport-clear"></span>
|
63 |
-
<div class="switcher-target-product_featured_xpath set_with_xpath">
|
64 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
65 |
-
<input type="text" class="smaller-text" name="single_product_featured" style="width:300px;" value="<?php echo esc_attr($post['single_product_featured']) ?>"/>
|
66 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'yes\', \'no\').', 'wpai_woocommerce_addon_plugin') ?>" style="position:relative; top:2px;">?</a>
|
67 |
-
</span>
|
68 |
-
</div>
|
69 |
-
</div>
|
70 |
-
|
71 |
-
</div> <!-- End options group -->
|
72 |
-
|
73 |
-
<div class="options_group">
|
74 |
-
|
75 |
-
<p class="form-field"><?php _e('Catalog visibility','wpai_woocommerce_addon_plugin');?></p>
|
76 |
-
|
77 |
-
<?php if (function_exists('wc_get_product_visibility_options')): ?>
|
78 |
-
<?php $visibility_options = wc_get_product_visibility_options();?>
|
79 |
-
<?php foreach ($visibility_options as $visibility_option_key => $visibility_option_name):?>
|
80 |
-
<p class="form-field wpallimport-radio-field">
|
81 |
-
<input type="radio" id="product_visibility_<?php echo $visibility_option_key;?>" class="switcher" name="is_product_visibility" value="<?php echo $visibility_option_key; ?>" <?php echo $post['is_product_visibility'] == $visibility_option_key ? 'checked="checked"': '' ?>/>
|
82 |
-
<label for="product_visibility_<?php echo $visibility_option_key;?>"><?php echo $visibility_option_name; ?></label>
|
83 |
-
</p>
|
84 |
-
<?php endforeach; ?>
|
85 |
-
<?php else: ?>
|
86 |
-
<p class="form-field wpallimport-radio-field">
|
87 |
-
<input type="radio" id="product_visibility_visible" class="switcher" name="is_product_visibility" value="visible" <?php echo 'visible' == $post['is_product_visibility'] ? 'checked="checked"': '' ?>/>
|
88 |
-
<label for="product_visibility_visible"><?php _e("Catalog/search", "wpai_woocommerce_addon_plugin"); ?></label>
|
89 |
-
</p>
|
90 |
-
<p class="form-field wpallimport-radio-field">
|
91 |
-
<input type="radio" id="product_visibility_catalog" class="switcher" name="is_product_visibility" value="catalog" <?php echo 'catalog' == $post['is_product_visibility'] ? 'checked="checked"': '' ?>/>
|
92 |
-
<label for="product_visibility_catalog"><?php _e("Catalog", "wpai_woocommerce_addon_plugin"); ?></label>
|
93 |
-
</p>
|
94 |
-
<p class="form-field wpallimport-radio-field">
|
95 |
-
<input type="radio" id="product_visibility_search" class="switcher" name="is_product_visibility" value="search" <?php echo 'search' == $post['is_product_visibility'] ? 'checked="checked"': '' ?>/>
|
96 |
-
<label for="product_visibility_search"><?php _e("Search", "wpai_woocommerce_addon_plugin"); ?></label>
|
97 |
-
</p>
|
98 |
-
<p class="form-field wpallimport-radio-field">
|
99 |
-
<input type="radio" id="product_visibility_hidden" class="switcher" name="is_product_visibility" value="hidden" <?php echo 'hidden' == $post['is_product_visibility'] ? 'checked="checked"': '' ?>/>
|
100 |
-
<label for="product_visibility_hidden"><?php _e("Hidden", "wpai_woocommerce_addon_plugin"); ?></label>
|
101 |
-
</p>
|
102 |
-
<?php endif; ?>
|
103 |
-
<div class="form-field wpallimport-radio-field">
|
104 |
-
<input type="radio" id="product_visibility_xpath" class="switcher" name="is_product_visibility" value="xpath" <?php echo 'xpath' == $post['is_product_visibility'] ? 'checked="checked"': '' ?>/>
|
105 |
-
<label for="product_visibility_xpath"><?php _e('Set with XPath', 'wpai_woocommerce_addon_plugin' )?></label>
|
106 |
-
<span class="wpallimport-clear"></span>
|
107 |
-
<div class="switcher-target-product_visibility_xpath set_with_xpath">
|
108 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
109 |
-
<input type="text" class="smaller-text" name="single_product_visibility" style="width:300px;" value="<?php echo esc_attr($post['single_product_visibility']) ?>"/>
|
110 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'visible\', \'catalog\', \'search\', \'hidden\').', 'wpai_woocommerce_addon_plugin') ?>" style="position:relative; top:2px;">?</a>
|
111 |
-
</span>
|
112 |
-
</div>
|
113 |
-
</div>
|
114 |
-
|
115 |
-
</div> <!-- End options group -->
|
116 |
-
</div><!-- End Product Panel -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
views/admin/import/_tabs/_attributes.php
DELETED
@@ -1,424 +0,0 @@
|
|
1 |
-
<div class="panel woocommerce_options_panel" id="woocommerce_attributes" style="display:none;">
|
2 |
-
<div style="margin-left:-2%;">
|
3 |
-
<div class="woo-add-on-free-edition-notice upgrade_template" style="margin-top:0;">
|
4 |
-
<a href="https://www.wpallimport.com/checkout/?edd_action=purchase_collection&taxonomy=download_category&terms=14&utm_source=free-plugin&utm_medium=in-plugin&utm_campaign=woocommerce" 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', 'wpai_woocommerce_addon_plugin');?></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 |
-
</div>
|
8 |
-
<div class="input">
|
9 |
-
<table class="form-table custom-params" id="attributes_table" style="max-width:95%;">
|
10 |
-
<thead>
|
11 |
-
<tr>
|
12 |
-
<td><?php _e('Name', 'wpai_woocommerce_addon_plugin'); ?></td>
|
13 |
-
<td style="padding-bottom: 5px;">
|
14 |
-
<?php _e('Values', 'wpai_woocommerce_addon_plugin'); ?>
|
15 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('Separate multiple values with a |', 'wpai_woocommerce_addon_plugin') ?>" style="top:-1px;">?</a>
|
16 |
-
</td>
|
17 |
-
<td></td>
|
18 |
-
</tr>
|
19 |
-
</thead>
|
20 |
-
<tbody>
|
21 |
-
<?php if (!empty($post['attribute_name'][0])):?>
|
22 |
-
<?php foreach ($post['attribute_name'] as $i => $name): if ("" == $name) continue; ?>
|
23 |
-
<tr class="form-field">
|
24 |
-
<td style="width: 50%;">
|
25 |
-
<input type="text" class="widefat" name="attribute_name[]" value="<?php echo esc_attr($name) ?>" style="width:100%;"/>
|
26 |
-
</td>
|
27 |
-
<td style="width: 50%;">
|
28 |
-
<input type="text" class="widefat" name="attribute_value[]" value="<?php echo str_replace("&","&", htmlentities(htmlentities($post['attribute_value'][$i]))); ?>" style="width:100%;"/>
|
29 |
-
<span class="wpallimport-clear"></span>
|
30 |
-
<div class="form-field wpallimport-radio-field" style="padding: 0 !important; position: relative; left: -100%; width: 200%;">
|
31 |
-
|
32 |
-
<a href="javascript:void(0);" id="advanced_attributes_<?php echo $i; ?>" class="action advanced_attributes"><span>+</span> <?php _e('Advanced', 'wpai_woocommerce_addon_plugin') ?></a>
|
33 |
-
<input type="hidden" value="<?php echo (empty($post['is_advanced'][$i])) ? '0' : $post['is_advanced'][$i];?>" name="is_advanced[]">
|
34 |
-
|
35 |
-
<span class="default_attribute_settings">
|
36 |
-
<span class='in_variations'>
|
37 |
-
<input type="checkbox" name="in_variations[]" id="in_variations_<?php echo $i; ?>" <?php echo ($post['in_variations'][$i]) ? 'checked="checked"' : ''; ?> style="float: left;" value="1"/>
|
38 |
-
<label for="in_variations_<?php echo $i; ?>"><?php _e('In Variations','wpai_woocommerce_addon_plugin');?></label>
|
39 |
-
</span>
|
40 |
-
|
41 |
-
<span class='is_visible'>
|
42 |
-
<input type="checkbox" name="is_visible[]" id="is_visible_<?php echo $i; ?>" <?php echo ($post['is_visible'][$i]) ? 'checked="checked"' : ''; ?> style="float: left;" value="1"/>
|
43 |
-
<label for="is_visible_<?php echo $i; ?>"><?php _e('Is Visible','wpai_woocommerce_addon_plugin');?></label>
|
44 |
-
</span>
|
45 |
-
|
46 |
-
<span class='is_taxonomy'>
|
47 |
-
<input type="checkbox" name="is_taxonomy[]" id="is_taxonomy_<?php echo $i; ?>" <?php echo ($post['is_taxonomy'][$i]) ? 'checked="checked"' : ''; ?> style="float: left;" value="1" class="switcher"/>
|
48 |
-
<label for="is_taxonomy_<?php echo $i; ?>"><?php _e('Is Taxonomy','wpai_woocommerce_addon_plugin');?></label>
|
49 |
-
</span>
|
50 |
-
|
51 |
-
<span class='is_create_taxonomy switcher-target-is_taxonomy_<?php echo $i; ?>'>
|
52 |
-
<input type="checkbox" name="create_taxonomy_in_not_exists[]" id="create_taxonomy_in_not_exists_<?php echo $i; ?>" <?php echo ($post['create_taxonomy_in_not_exists'][$i]) ? 'checked="checked"' : ''; ?> style="float: left;" value="1"/>
|
53 |
-
<label for="create_taxonomy_in_not_exists_<?php echo $i; ?>"><?php _e('Auto-Create Terms','wpai_woocommerce_addon_plugin');?></label>
|
54 |
-
</span>
|
55 |
-
</span>
|
56 |
-
|
57 |
-
<div class="advanced_attribute_settings">
|
58 |
-
|
59 |
-
<div class="input" style="display:inline-block;">
|
60 |
-
<div class="input">
|
61 |
-
<input type="radio" id="advanced_in_variations_yes_<?php echo $i; ?>" class="switcher" name="advanced_in_variations[<?php echo $i; ?>]" value="yes" <?php echo ( empty($post['advanced_in_variations'][$i]) or ( ! empty($post['advanced_in_variations'][$i]) and ! in_array($post['advanced_in_variations'][$i], array('no', 'xpath'))) ) ? 'checked="checked"': '' ?>/>
|
62 |
-
<label for="advanced_in_variations_yes_<?php echo $i; ?>"><?php _e("In Variations", 'wpai_woocommerce_addon_plugin'); ?></label>
|
63 |
-
</div>
|
64 |
-
<div class="input">
|
65 |
-
<input type="radio" id="advanced_in_variations_no_<?php echo $i; ?>" class="switcher" name="advanced_in_variations[<?php echo $i; ?>]" value="no" <?php echo (!empty($post['advanced_in_variations'][$i]) and 'no' == $post['advanced_in_variations'][$i]) ? 'checked="checked"': '' ?>/>
|
66 |
-
<label for="advanced_in_variations_no_<?php echo $i; ?>"><?php _e("Not In Variations", 'wpai_woocommerce_addon_plugin'); ?></label>
|
67 |
-
</div>
|
68 |
-
<div class="input wpallimport-radio-field">
|
69 |
-
<input type="radio" id="advanced_in_variations_xpath_<?php echo $i; ?>" class="switcher" name="advanced_in_variations[<?php echo $i; ?>]" value="xpath" <?php echo (!empty($post['advanced_in_variations'][$i]) and 'xpath' == $post['advanced_in_variations'][$i]) ? 'checked="checked"': '' ?>/>
|
70 |
-
<label for="advanced_in_variations_xpath_<?php echo $i; ?>"><?php _e('Set with XPath', 'wpai_woocommerce_addon_plugin' )?></label>
|
71 |
-
<span class="wpallimport-clear"></span>
|
72 |
-
<div class="switcher-target-advanced_in_variations_xpath_<?php echo $i; ?> set_with_xpath">
|
73 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
74 |
-
<input type="text" class="smaller-text" name="advanced_in_variations_xpath[<?php echo $i; ?>]" value="<?php echo (!empty($post['advanced_in_variations_xpath'][$i])) ? esc_attr($post['advanced_in_variations_xpath'][$i]) : ''; ?>"/>
|
75 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'yes\', \'no\').', 'wpai_woocommerce_addon_plugin') ?>">?</a>
|
76 |
-
</span>
|
77 |
-
</div>
|
78 |
-
</div>
|
79 |
-
</div>
|
80 |
-
|
81 |
-
<div class="input" style="display:inline-block;">
|
82 |
-
<div class="input">
|
83 |
-
<input type="radio" id="advanced_is_visible_yes_<?php echo $i; ?>" class="switcher" name="advanced_is_visible[<?php echo $i; ?>]" value="yes" <?php echo ( empty($post['advanced_is_visible'][$i]) or ( ! empty($post['advanced_is_visible'][$i]) and ! in_array($post['advanced_is_visible'][$i], array('no', 'xpath'))) ) ? 'checked="checked"': '' ?>/>
|
84 |
-
<label for="advanced_is_visible_yes_<?php echo $i; ?>"><?php _e("Is Visible", 'wpai_woocommerce_addon_plugin'); ?></label>
|
85 |
-
</div>
|
86 |
-
<div class="input">
|
87 |
-
<input type="radio" id="advanced_is_visible_no_<?php echo $i; ?>" class="switcher" name="advanced_is_visible[<?php echo $i; ?>]" value="no" <?php echo (!empty($post['advanced_is_visible'][$i]) and 'no' == $post['advanced_is_visible'][$i]) ? 'checked="checked"': '' ?>/>
|
88 |
-
<label for="advanced_is_visible_no_<?php echo $i; ?>"><?php _e("Not Visible", 'wpai_woocommerce_addon_plugin'); ?></label>
|
89 |
-
</div>
|
90 |
-
<div class="input wpallimport-radio-field">
|
91 |
-
<input type="radio" id="advanced_is_visible_xpath_<?php echo $i; ?>" class="switcher" name="advanced_is_visible[<?php echo $i; ?>]" value="xpath" <?php echo (!empty($post['advanced_is_visible'][$i]) and 'xpath' == $post['advanced_is_visible'][$i]) ? 'checked="checked"': '' ?>/>
|
92 |
-
<label for="advanced_is_visible_xpath_<?php echo $i; ?>"><?php _e('Set with XPath', 'wpai_woocommerce_addon_plugin' )?></label>
|
93 |
-
<span class="wpallimport-clear"></span>
|
94 |
-
<div class="switcher-target-advanced_is_visible_xpath_<?php echo $i; ?> set_with_xpath">
|
95 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
96 |
-
<input type="text" class="smaller-text" name="advanced_is_visible_xpath[<?php echo $i; ?>]" value="<?php echo (!empty($post['advanced_is_visible_xpath'][$i])) ? esc_attr($post['advanced_is_visible_xpath'][$i]) : ''; ?>"/>
|
97 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'yes\', \'no\').', 'wpai_woocommerce_addon_plugin') ?>">?</a>
|
98 |
-
</span>
|
99 |
-
</div>
|
100 |
-
</div>
|
101 |
-
</div>
|
102 |
-
|
103 |
-
<div class="input" style="display:inline-block;">
|
104 |
-
<div class="input">
|
105 |
-
<input type="radio" id="advanced_is_taxonomy_yes_<?php echo $i; ?>" class="switcher" name="advanced_is_taxonomy[<?php echo $i; ?>]" value="yes" <?php echo (empty($post['advanced_is_taxonomy'][$i]) or ( !empty($post['advanced_is_taxonomy'][$i]) and ! in_array($post['advanced_is_taxonomy'][$i], array('no', 'xpath'))) ) ? 'checked="checked"': '' ?>/>
|
106 |
-
<label for="advanced_is_taxonomy_yes_<?php echo $i; ?>"><?php _e("Is Taxonomy", 'wpai_woocommerce_addon_plugin'); ?></label>
|
107 |
-
</div>
|
108 |
-
<div class="input">
|
109 |
-
<input type="radio" id="advanced_is_taxonomy_no_<?php echo $i; ?>" class="switcher" name="advanced_is_taxonomy[<?php echo $i; ?>]" value="no" <?php echo (!empty($post['advanced_is_taxonomy'][$i]) and 'no' == $post['advanced_is_taxonomy'][$i]) ? 'checked="checked"': '' ?>/>
|
110 |
-
<label for="advanced_is_taxonomy_no_<?php echo $i; ?>"><?php _e("Not Taxonomy", 'wpai_woocommerce_addon_plugin'); ?></label>
|
111 |
-
</div>
|
112 |
-
<div class="input wpallimport-radio-field">
|
113 |
-
<input type="radio" id="advanced_is_taxonomy_xpath_<?php echo $i; ?>" class="switcher" name="advanced_is_taxonomy[<?php echo $i; ?>]" value="xpath" <?php echo (!empty($post['advanced_is_taxonomy'][$i]) and 'xpath' == $post['advanced_is_taxonomy'][$i]) ? 'checked="checked"': '' ?>/>
|
114 |
-
<label for="advanced_is_taxonomy_xpath_<?php echo $i; ?>"><?php _e('Set with XPath', 'wpai_woocommerce_addon_plugin' )?></label>
|
115 |
-
<span class="wpallimport-clear"></span>
|
116 |
-
<div class="switcher-target-advanced_is_taxonomy_xpath_<?php echo $i; ?> set_with_xpath">
|
117 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
118 |
-
<input type="text" class="smaller-text" name="advanced_is_taxonomy_xpath[<?php echo $i; ?>]" value="<?php echo (!empty($post['advanced_is_taxonomy_xpath'][$i])) ? esc_attr($post['advanced_is_taxonomy_xpath'][$i]) : ''; ?>"/>
|
119 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'yes\', \'no\').', 'wpai_woocommerce_addon_plugin') ?>">?</a>
|
120 |
-
</span>
|
121 |
-
</div>
|
122 |
-
</div>
|
123 |
-
</div>
|
124 |
-
|
125 |
-
<div class="input" style="display:inline-block;">
|
126 |
-
<div class="input">
|
127 |
-
<input type="radio" id="advanced_is_create_terms_yes_<?php echo $i; ?>" class="switcher" name="advanced_is_create_terms[<?php echo $i; ?>]" value="yes" <?php echo (empty($post['advanced_is_create_terms'][$i]) or ( ! empty($post['advanced_is_create_terms'][$i]) and ! in_array($post['advanced_is_create_terms'][$i], array('no', 'xpath'))) ) ? 'checked="checked"': '' ?>/>
|
128 |
-
<label for="advanced_is_create_terms_yes_<?php echo $i; ?>"><?php _e("Auto-Create Terms", 'wpai_woocommerce_addon_plugin'); ?></label>
|
129 |
-
</div>
|
130 |
-
<div class="input">
|
131 |
-
<input type="radio" id="advanced_is_create_terms_no_<?php echo $i; ?>" class="switcher" name="advanced_is_create_terms[<?php echo $i; ?>]" value="no" <?php echo ( ! empty($post['advanced_is_create_terms'][$i]) and 'no' == $post['advanced_is_create_terms'][$i]) ? 'checked="checked"': '' ?>/>
|
132 |
-
<label for="advanced_is_create_terms_no_<?php echo $i; ?>"><?php _e("Do Not Create Terms", 'wpai_woocommerce_addon_plugin'); ?></label>
|
133 |
-
</div>
|
134 |
-
<div class="input wpallimport-radio-field">
|
135 |
-
<input type="radio" id="advanced_is_create_terms_xpath_<?php echo $i; ?>" class="switcher" name="advanced_is_create_terms[<?php echo $i; ?>]" value="xpath" <?php echo (!empty($post['advanced_is_create_terms'][$i]) and 'xpath' == $post['advanced_is_create_terms'][$i]) ? 'checked="checked"': '' ?>/>
|
136 |
-
<label for="advanced_is_create_terms_xpath_<?php echo $i; ?>"><?php _e('Set with XPath', 'wpai_woocommerce_addon_plugin' )?></label>
|
137 |
-
<span class="wpallimport-clear"></span>
|
138 |
-
<div class="switcher-target-advanced_is_create_terms_xpath_<?php echo $i; ?> set_with_xpath">
|
139 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
140 |
-
<input type="text" class="smaller-text" name="advanced_is_create_terms_xpath[<?php echo $i; ?>]" value="<?php echo (!empty($post['advanced_is_create_terms_xpath'][$i])) ? esc_attr($post['advanced_is_create_terms_xpath'][$i]) : ''; ?>"/>
|
141 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'yes\', \'no\').', 'wpai_woocommerce_addon_plugin') ?>">?</a>
|
142 |
-
</span>
|
143 |
-
</div>
|
144 |
-
</div>
|
145 |
-
</div>
|
146 |
-
|
147 |
-
</div>
|
148 |
-
|
149 |
-
</div>
|
150 |
-
</td>
|
151 |
-
<td class="action remove"><a href="#remove" style="top:9px;"></a></td>
|
152 |
-
</tr>
|
153 |
-
<?php endforeach ?>
|
154 |
-
<?php else: ?>
|
155 |
-
<tr class="form-field">
|
156 |
-
<td style="width: 50%;">
|
157 |
-
<input type="text" name="attribute_name[]" value="" class="widefat" style="width:100%;"/>
|
158 |
-
</td>
|
159 |
-
<td style="width: 50%;">
|
160 |
-
<input type="text" name="attribute_value[]" class="widefat" vaalue="" style="width:100%;"/>
|
161 |
-
<span class="wpallimport-clear"></span>
|
162 |
-
<div class="form-field wpallimport-radio-field" style="padding: 0 !important; position: relative; left: -100%; width: 200%;">
|
163 |
-
|
164 |
-
<a href="javascript:void(0);" id="advanced_attributes_0" class="action advanced_attributes"><span>+</span> <?php _e('Advanced', 'wpai_woocommerce_addon_plugin') ?></a>
|
165 |
-
<input type="hidden" value="0" name="is_advanced[]">
|
166 |
-
|
167 |
-
<span class="default_attribute_settings">
|
168 |
-
<span class='in_variations'>
|
169 |
-
<input type="checkbox" name="in_variations[]" id="in_variations_0" checked="checked" style="float: left;" value="1"/>
|
170 |
-
<label for="in_variations_0"><?php _e('In Variations','wpai_woocommerce_addon_plugin');?></label>
|
171 |
-
</span>
|
172 |
-
<span class='is_visible'>
|
173 |
-
<input type="checkbox" name="is_visible[]" id="is_visible_0" checked="checked" style="float: left;" value="1"/>
|
174 |
-
<label for="is_visible_0"><?php _e('Is Visible','wpai_woocommerce_addon_plugin');?></label>
|
175 |
-
</span>
|
176 |
-
<span class='is_taxonomy'>
|
177 |
-
<input type="checkbox" name="is_taxonomy[]" id="is_taxonomy_0" checked="checked" style="float: left;" value="1" class="switcher"/>
|
178 |
-
<label for="is_taxonomy_0"><?php _e('Is Taxonomy','wpai_woocommerce_addon_plugin');?></label>
|
179 |
-
</span>
|
180 |
-
<span class='is_create_taxonomy switcher-target-is_taxonomy_0'>
|
181 |
-
<input type="checkbox" name="create_taxonomy_in_not_exists[]" id="create_taxonomy_in_not_exists_0" checked="checked" style="float: left;" value="1"/>
|
182 |
-
<label for="create_taxonomy_in_not_exists_0"><?php _e('Auto-Create Terms','wpai_woocommerce_addon_plugin');?></label>
|
183 |
-
</span>
|
184 |
-
</span>
|
185 |
-
|
186 |
-
<div class="advanced_attribute_settings">
|
187 |
-
|
188 |
-
<div class="input" style="display:inline-block;">
|
189 |
-
<div class="input">
|
190 |
-
<input type="radio" id="advanced_in_variations_yes_0" class="switcher" name="advanced_in_variations[0]" value="yes" checked="checked"/>
|
191 |
-
<label for="advanced_in_variations_yes_0"><?php _e("In Variations", 'wpai_woocommerce_addon_plugin'); ?></label>
|
192 |
-
</div>
|
193 |
-
<div class="input">
|
194 |
-
<input type="radio" id="advanced_in_variations_no_0" class="switcher" name="advanced_in_variations[0]" value="no"/>
|
195 |
-
<label for="advanced_in_variations_no_0"><?php _e("Not In Variations", 'wpai_woocommerce_addon_plugin'); ?></label>
|
196 |
-
</div>
|
197 |
-
<div class="input wpallimport-radio-field">
|
198 |
-
<input type="radio" id="advanced_in_variations_xpath_0" class="switcher" name="advanced_in_variations[0]" value="xpath"/>
|
199 |
-
<label for="advanced_in_variations_xpath_0"><?php _e('Set with XPath', 'wpai_woocommerce_addon_plugin' )?></label>
|
200 |
-
<span class="wpallimport-clear"></span>
|
201 |
-
<div class="switcher-target-advanced_in_variations_xpath_0 set_with_xpath">
|
202 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
203 |
-
<input type="text" class="smaller-text" name="advanced_in_variations_xpath[0]" value=""/>
|
204 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'yes\', \'no\').', 'wpai_woocommerce_addon_plugin') ?>">?</a>
|
205 |
-
</span>
|
206 |
-
</div>
|
207 |
-
</div>
|
208 |
-
</div>
|
209 |
-
|
210 |
-
<div class="input" style="display:inline-block;">
|
211 |
-
<div class="input">
|
212 |
-
<input type="radio" id="advanced_is_visible_yes_0" class="switcher" name="advanced_is_visible[0]" value="yes" checked="checked"/>
|
213 |
-
<label for="advanced_is_visible_yes_0"><?php _e("Is Visible", 'wpai_woocommerce_addon_plugin'); ?></label>
|
214 |
-
</div>
|
215 |
-
<div class="input">
|
216 |
-
<input type="radio" id="advanced_is_visible_no_0" class="switcher" name="advanced_is_visible[0]" value="no"/>
|
217 |
-
<label for="advanced_is_visible_no_0"><?php _e("Not Visible", 'wpai_woocommerce_addon_plugin'); ?></label>
|
218 |
-
</div>
|
219 |
-
<div class="input wpallimport-radio-field">
|
220 |
-
<input type="radio" id="advanced_is_visible_xpath_0" class="switcher" name="advanced_is_visible[0]" value="xpath"/>
|
221 |
-
<label for="advanced_is_visible_xpath_0"><?php _e('Set with XPath', 'wpai_woocommerce_addon_plugin' )?></label>
|
222 |
-
<span class="wpallimport-clear"></span>
|
223 |
-
<div class="switcher-target-advanced_is_visible_xpath_0 set_with_xpath">
|
224 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
225 |
-
<input type="text" class="smaller-text" name="advanced_is_visible_xpath[0]" value=""/>
|
226 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'yes\', \'no\').', 'wpai_woocommerce_addon_plugin') ?>">?</a>
|
227 |
-
</span>
|
228 |
-
</div>
|
229 |
-
</div>
|
230 |
-
</div>
|
231 |
-
|
232 |
-
<div class="input" style="display:inline-block;">
|
233 |
-
<div class="input">
|
234 |
-
<input type="radio" id="advanced_is_taxonomy_yes_0" class="switcher" name="advanced_is_taxonomy[0]" value="yes" checked="checked"/>
|
235 |
-
<label for="advanced_is_taxonomy_yes_0"><?php _e("Is Taxonomy", 'wpai_woocommerce_addon_plugin'); ?></label>
|
236 |
-
</div>
|
237 |
-
<div class="input">
|
238 |
-
<input type="radio" id="advanced_is_taxonomy_no_0" class="switcher" name="advanced_is_taxonomy[0]" value="no"/>
|
239 |
-
<label for="advanced_is_taxonomy_no_0"><?php _e("Not Taxonomy", 'wpai_woocommerce_addon_plugin'); ?></label>
|
240 |
-
</div>
|
241 |
-
<div class="input wpallimport-radio-field">
|
242 |
-
<input type="radio" id="advanced_is_taxonomy_xpath_0" class="switcher" name="advanced_is_taxonomy[0]" value="xpath"/>
|
243 |
-
<label for="advanced_is_taxonomy_xpath_0"><?php _e('Set with XPath', 'wpai_woocommerce_addon_plugin' )?></label>
|
244 |
-
<span class="wpallimport-clear"></span>
|
245 |
-
<div class="switcher-target-advanced_is_taxonomy_xpath_0 set_with_xpath">
|
246 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
247 |
-
<input type="text" class="smaller-text" name="advanced_is_taxonomy_xpath[0]" value=""/>
|
248 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'yes\', \'no\').', 'wpai_woocommerce_addon_plugin') ?>">?</a>
|
249 |
-
</span>
|
250 |
-
</div>
|
251 |
-
</div>
|
252 |
-
</div>
|
253 |
-
|
254 |
-
<div class="input" style="display:inline-block;">
|
255 |
-
<div class="input">
|
256 |
-
<input type="radio" id="advanced_is_create_terms_yes_0" class="switcher" name="advanced_is_create_terms[0]" value="yes" checked="checked"/>
|
257 |
-
<label for="advanced_is_create_terms_yes_0"><?php _e("Auto-Create Terms", 'wpai_woocommerce_addon_plugin'); ?></label>
|
258 |
-
</div>
|
259 |
-
<div class="input">
|
260 |
-
<input type="radio" id="advanced_is_create_terms_no_0" class="switcher" name="advanced_is_create_terms[0]" value="no"/>
|
261 |
-
<label for="advanced_is_create_terms_no_0"><?php _e("Do Not Create Terms", 'wpai_woocommerce_addon_plugin'); ?></label>
|
262 |
-
</div>
|
263 |
-
<div class="input wpallimport-radio-field">
|
264 |
-
<input type="radio" id="advanced_is_create_terms_xpath_0" class="switcher" name="advanced_is_create_terms[0]" value="xpath"/>
|
265 |
-
<label for="advanced_is_create_terms_xpath_0"><?php _e('Set with XPath', 'wpai_woocommerce_addon_plugin' )?></label>
|
266 |
-
<span class="wpallimport-clear"></span>
|
267 |
-
<div class="switcher-target-advanced_is_create_terms_xpath_0 set_with_xpath">
|
268 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
269 |
-
<input type="text" class="smaller-text" name="advanced_is_create_terms_xpath[0]" value=""/>
|
270 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'yes\', \'no\').', 'wpai_woocommerce_addon_plugin') ?>">?</a>
|
271 |
-
</span>
|
272 |
-
</div>
|
273 |
-
</div>
|
274 |
-
</div>
|
275 |
-
|
276 |
-
</div>
|
277 |
-
|
278 |
-
</div>
|
279 |
-
</td>
|
280 |
-
<td class="action remove"><a href="#remove" style="top: 9px;"></a></td>
|
281 |
-
</tr>
|
282 |
-
<?php endif;?>
|
283 |
-
<tr class="form-field template">
|
284 |
-
<td style="width: 50%;">
|
285 |
-
<input type="text" name="attribute_name[]" value="" class="widefat" style="width:100%;"/>
|
286 |
-
</td>
|
287 |
-
<td style="width: 50%;">
|
288 |
-
<input type="text" name="attribute_value[]" class="widefat" value="" style="width:100%;"/>
|
289 |
-
<span class="wpallimport-clear"></span>
|
290 |
-
<div class="form-field wpallimport-radio-field" style="padding: 0 !important; position: relative; left: -100%; width: 200%;">
|
291 |
-
|
292 |
-
<a href="javascript:void(0);" id="advanced_attributes_0" class="action advanced_attributes"><span>+</span> <?php _e('Advanced', 'wpai_woocommerce_addon_plugin') ?></a>
|
293 |
-
<input type="hidden" value="0" name="is_advanced[]">
|
294 |
-
|
295 |
-
<span class="default_attribute_settings">
|
296 |
-
<span class='in_variations'>
|
297 |
-
<input type="checkbox" name="in_variations[]" checked="checked" style="float: left;" value="1"/>
|
298 |
-
<label for=""><?php _e('In Variations','wpai_woocommerce_addon_plugin');?></label>
|
299 |
-
</span>
|
300 |
-
<span class='is_visible'>
|
301 |
-
<input type="checkbox" name="is_visible[]" checked="checked" style="float: left;" value="1"/>
|
302 |
-
<label for=""><?php _e('Is Visible','wpai_woocommerce_addon_plugin');?></label>
|
303 |
-
</span>
|
304 |
-
<span class='is_taxonomy'>
|
305 |
-
<input type="checkbox" name="is_taxonomy[]" checked="checked" style="float: left;" value="1" class="switcher"/>
|
306 |
-
<label for=""><?php _e('Is Taxonomy','wpai_woocommerce_addon_plugin');?></label>
|
307 |
-
</span>
|
308 |
-
<span class='is_create_taxonomy'>
|
309 |
-
<input type="checkbox" name="create_taxonomy_in_not_exists[]" checked="checked" style="float: left;" value="1"/>
|
310 |
-
<label for=""><?php _e('Auto-Create Terms','wpai_woocommerce_addon_plugin');?></label>
|
311 |
-
</span>
|
312 |
-
</span>
|
313 |
-
|
314 |
-
<div class="advanced_attribute_settings advanced_settings_template">
|
315 |
-
|
316 |
-
<div class="input" style="display:inline-block;">
|
317 |
-
<div class="input">
|
318 |
-
<input type="radio" id="advanced_in_variations_yes_00" class="switcher" name="advanced_in_variations[00]" value="yes" checked="checked"/>
|
319 |
-
<label for="advanced_in_variations_yes_00"><?php _e("In Variations", 'wpai_woocommerce_addon_plugin'); ?></label>
|
320 |
-
</div>
|
321 |
-
<div class="input">
|
322 |
-
<input type="radio" id="advanced_in_variations_no_00" class="switcher" name="advanced_in_variations[00]" value="no"/>
|
323 |
-
<label for="advanced_in_variations_no_00"><?php _e("Not In Variations", 'wpai_woocommerce_addon_plugin'); ?></label>
|
324 |
-
</div>
|
325 |
-
<div class="input wpallimport-radio-field">
|
326 |
-
<input type="radio" id="advanced_in_variations_xpath_00" class="switcher" name="advanced_in_variations[00]" value="xpath"/>
|
327 |
-
<label for="advanced_in_variations_xpath_00"><?php _e('Set with XPath', 'wpai_woocommerce_addon_plugin' )?></label>
|
328 |
-
<span class="wpallimport-clear"></span>
|
329 |
-
<div class="set_with_xpath">
|
330 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
331 |
-
<input type="text" class="smaller-text" name="advanced_in_variations_xpath[00]" value=""/>
|
332 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'yes\', \'no\').', 'wpai_woocommerce_addon_plugin') ?>">?</a>
|
333 |
-
</span>
|
334 |
-
</div>
|
335 |
-
</div>
|
336 |
-
</div>
|
337 |
-
|
338 |
-
<div class="input" style="display:inline-block;">
|
339 |
-
<div class="input">
|
340 |
-
<input type="radio" id="advanced_is_visible_yes_00" class="switcher" name="advanced_is_visible[00]" value="yes" checked="checked"/>
|
341 |
-
<label for="advanced_is_visible_yes_00"><?php _e("Is Visible", 'wpai_woocommerce_addon_plugin'); ?></label>
|
342 |
-
</div>
|
343 |
-
<div class="input">
|
344 |
-
<input type="radio" id="advanced_is_visible_no_00" class="switcher" name="advanced_is_visible[00]" value="no"/>
|
345 |
-
<label for="advanced_is_visible_no_00"><?php _e("Not Visible", 'wpai_woocommerce_addon_plugin'); ?></label>
|
346 |
-
</div>
|
347 |
-
<div class="input wpallimport-radio-field">
|
348 |
-
<input type="radio" id="advanced_is_visible_xpath_00" class="switcher" name="advanced_is_visible[00]" value="xpath"/>
|
349 |
-
<label for="advanced_is_visible_xpath_00"><?php _e('Set with XPath', 'wpai_woocommerce_addon_plugin' )?></label>
|
350 |
-
<span class="wpallimport-clear"></span>
|
351 |
-
<div class="set_with_xpath">
|
352 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
353 |
-
<input type="text" class="smaller-text" name="advanced_is_visible_xpath[00]" value=""/>
|
354 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'yes\', \'no\').', 'wpai_woocommerce_addon_plugin') ?>">?</a>
|
355 |
-
</span>
|
356 |
-
</div>
|
357 |
-
</div>
|
358 |
-
</div>
|
359 |
-
|
360 |
-
<div class="input" style="display:inline-block;">
|
361 |
-
<div class="input">
|
362 |
-
<input type="radio" id="advanced_is_taxonomy_yes_00" class="switcher" name="advanced_is_taxonomy[00]" value="yes" checked="checked"/>
|
363 |
-
<label for="advanced_is_taxonomy_yes_00"><?php _e("Is Taxonomy", 'wpai_woocommerce_addon_plugin'); ?></label>
|
364 |
-
</div>
|
365 |
-
<div class="input">
|
366 |
-
<input type="radio" id="advanced_is_taxonomy_no_00" class="switcher" name="advanced_is_taxonomy[00]" value="no"/>
|
367 |
-
<label for="advanced_is_taxonomy_no_00"><?php _e("Not Taxonomy", 'wpai_woocommerce_addon_plugin'); ?></label>
|
368 |
-
</div>
|
369 |
-
<div class="input wpallimport-radio-field">
|
370 |
-
<input type="radio" id="advanced_is_taxonomy_xpath_00" class="switcher" name="advanced_is_taxonomy[00]" value="xpath"/>
|
371 |
-
<label for="advanced_is_taxonomy_xpath_00"><?php _e('Set with XPath', 'wpai_woocommerce_addon_plugin' )?></label>
|
372 |
-
<span class="wpallimport-clear"></span>
|
373 |
-
<div class="set_with_xpath">
|
374 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
375 |
-
<input type="text" class="smaller-text" name="advanced_is_taxonomy_xpath[00]" value=""/>
|
376 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'yes\', \'no\').', 'wpai_woocommerce_addon_plugin') ?>">?</a>
|
377 |
-
</span>
|
378 |
-
</div>
|
379 |
-
</div>
|
380 |
-
</div>
|
381 |
-
|
382 |
-
<div class="input" style="display:inline-block;">
|
383 |
-
<div class="input">
|
384 |
-
<input type="radio" id="advanced_is_create_terms_yes_00" class="switcher" name="advanced_is_create_terms[00]" value="yes" checked="checked"/>
|
385 |
-
<label for="advanced_is_create_terms_yes_00"><?php _e("Auto-Create Terms", 'wpai_woocommerce_addon_plugin'); ?></label>
|
386 |
-
</div>
|
387 |
-
<div class="input">
|
388 |
-
<input type="radio" id="advanced_is_create_terms_no_00" class="switcher" name="advanced_is_create_terms[00]" value="no"/>
|
389 |
-
<label for="advanced_is_create_terms_no_00"><?php _e("Do Not Create Terms", 'wpai_woocommerce_addon_plugin'); ?></label>
|
390 |
-
</div>
|
391 |
-
<div class="input wpallimport-radio-field">
|
392 |
-
<input type="radio" id="advanced_is_create_terms_xpath_00" class="switcher" name="advanced_is_create_terms[00]" value="xpath"/>
|
393 |
-
<label for="advanced_is_create_terms_xpath_00"><?php _e('Set with XPath', 'wpai_woocommerce_addon_plugin' )?></label>
|
394 |
-
<span class="wpallimport-clear"></span>
|
395 |
-
<div class="set_with_xpath">
|
396 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
397 |
-
<input type="text" class="smaller-text" name="advanced_is_create_terms_xpath[00]" value=""/>
|
398 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'yes\', \'no\').', 'wpai_woocommerce_addon_plugin') ?>">?</a>
|
399 |
-
</span>
|
400 |
-
</div>
|
401 |
-
</div>
|
402 |
-
</div>
|
403 |
-
|
404 |
-
</div>
|
405 |
-
|
406 |
-
</div>
|
407 |
-
</td>
|
408 |
-
<td class="action remove"><a href="#remove" style="top: 9px;"></a></td>
|
409 |
-
</tr>
|
410 |
-
<tr>
|
411 |
-
<td colspan="3"><a href="#add" title="<?php _e('add', 'wpai_woocommerce_addon_plugin')?>" class="action add-new-custom"><?php _e('Add more', 'wpai_woocommerce_addon_plugin') ?></a></td>
|
412 |
-
</tr>
|
413 |
-
</tbody>
|
414 |
-
</table>
|
415 |
-
</div>
|
416 |
-
<div class="options_group show_if_variable">
|
417 |
-
<p class="form-field wpallimport-radio-field" style="padding-left: 10px !important;">
|
418 |
-
<input type="hidden" name="link_all_variations" value="0" />
|
419 |
-
<input type="checkbox" id="link_all_variations" name="link_all_variations" value="1" <?php echo $post['link_all_variations'] ? 'checked="checked"' : '' ?>/>
|
420 |
-
<label style="width: 100px;" for="link_all_variations"><?php _e('Link all variations', 'wpai_woocommerce_addon_plugin') ?></label>
|
421 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('This option will create all possible variations for the presented attributes. Works just like the Link All Variations option inside WooCommerce.', 'wpai_woocommerce_addon_plugin') ?>" style="top:3px;">?</a>
|
422 |
-
</p>
|
423 |
-
</div>
|
424 |
-
</div><!-- End Product Panel -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
views/admin/import/_tabs/_general.php
DELETED
@@ -1,288 +0,0 @@
|
|
1 |
-
<div class="panel woocommerce_options_panel" id="general_product_data">
|
2 |
-
<div class="woo-add-on-free-edition-notice upgrade_template">
|
3 |
-
<a href="https://www.wpallimport.com/checkout/?edd_action=purchase_collection&taxonomy=download_category&terms=14&utm_source=free-plugin&utm_medium=in-plugin&utm_campaign=woocommerce" 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.', 'wpai_woocommerce_addon_plugin');?></a>
|
4 |
-
<p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
|
5 |
-
</div>
|
6 |
-
<div class="options_group hide_if_grouped">
|
7 |
-
<p class="form-field">
|
8 |
-
<label><?php _e("SKU", "wpai_woocommerce_addon_plugin"); ?></label>
|
9 |
-
<input type="text" class="short" name="single_product_sku" style="" value="<?php echo esc_attr($post['single_product_sku']) ?>"/>
|
10 |
-
</p>
|
11 |
-
</div>
|
12 |
-
<div class="options_group show_if_external">
|
13 |
-
<p class="form-field">
|
14 |
-
<label><?php _e("Product URL", "wpai_woocommerce_addon_plugin"); ?></label>
|
15 |
-
<input type="text" class="short" name="single_product_url" value="<?php echo esc_attr($post['single_product_url']) ?>"/>
|
16 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('The external/affiliate link URL to the product.', 'wpai_woocommerce_addon_plugin') ?>">?</a>
|
17 |
-
</p>
|
18 |
-
<p class="form-field">
|
19 |
-
<label><?php _e("Button text", "wpai_woocommerce_addon_plugin"); ?></label>
|
20 |
-
<input type="text" class="short" name="single_product_button_text" value="<?php echo esc_attr($post['single_product_button_text']) ?>"/>
|
21 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('This text will be shown on the button linking to the external product.', 'wpai_woocommerce_addon_plugin') ?>">?</a>
|
22 |
-
</p>
|
23 |
-
</div>
|
24 |
-
<div class="options_group pricing show_if_simple show_if_external show_if_variable">
|
25 |
-
|
26 |
-
<p class="form-field"><i><?php _e('Prices should be presented as you would enter them manually in WooCommerce - with no currency symbol.', 'wpai_woocommerce_addon_plugin'); ?></i></p>
|
27 |
-
|
28 |
-
<p class="form-field">
|
29 |
-
<label><?php printf(__("Regular Price (%s)", "wpai_woocommerce_addon_plugin"), get_woocommerce_currency_symbol()); ?></label>
|
30 |
-
<input type="text" class="short" name="single_product_regular_price" value="<?php echo esc_attr($post['single_product_regular_price']) ?>"/> <strong class="options_group show_if_variable" style="position:relative; top:4px; left:4px;">(<?php _e('required', 'wpai_woocommerce_addon_plugin'); ?>)</strong>
|
31 |
-
</p>
|
32 |
-
<p class="form-field">
|
33 |
-
<label><?php printf(__("Sale Price (%s)", "wpai_woocommerce_addon_plugin"), get_woocommerce_currency_symbol()); ?></label>
|
34 |
-
<input type="text" class="short" name="single_product_sale_price" value="<?php echo esc_attr($post['single_product_sale_price']) ?>"/> <a id="regular_price_shedule" href="javascript:void(0);" <?php if ($post['is_regular_price_shedule']):?>style="display:none;"<?php endif; ?>><?php _e('schedule', 'wpai_woocommerce_addon_plugin');?></a>
|
35 |
-
<input type="hidden" name="is_regular_price_shedule" value="<?php echo esc_attr($post['is_regular_price_shedule']) ?>"/>
|
36 |
-
</p>
|
37 |
-
<p class="form-field" <?php if ( ! $post['is_regular_price_shedule']):?>style="display:none;"<?php endif; ?> id="sale_price_range">
|
38 |
-
<span style="vertical-align:middle">
|
39 |
-
<label><?php _e("Sale Price Dates", "wpai_woocommerce_addon_plugin"); ?></label>
|
40 |
-
<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;"/>
|
41 |
-
<span><?php _e('and', 'wpai_woocommerce_addon_plugin') ?></span>
|
42 |
-
<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;"/>
|
43 |
-
<a id="cancel_regular_price_shedule" href="javascript:void(0);"><?php _e('cancel', "wpai_woocommerce_addon_plugin");?></a>
|
44 |
-
</span>
|
45 |
-
</p>
|
46 |
-
|
47 |
-
<!-- AUTOFIX PRICES -->
|
48 |
-
|
49 |
-
<p class="form-field pmwi_trigger_adjust_prices"> <strong><?php _e('Adjust Prices (mark up, mark down, convert currency)', "wpai_woocommerce_addon_plugin"); ?> <span><?php if (!empty($post['single_product_regular_price_adjust']) or !empty($post['single_product_sale_price_adjust'])):?>-<?php else: ?>+<?php endif; ?></span></strong></p>
|
50 |
-
|
51 |
-
<div class="pmwi_adjust_prices" <?php if (!empty($post['single_product_regular_price_adjust']) or !empty($post['single_product_sale_price_adjust'])):?>style="display:block;"<?php endif; ?>>
|
52 |
-
<p class="form-field">
|
53 |
-
<label><?php printf(__("Regular Price (%s)", "wpai_woocommerce_addon_plugin"), get_woocommerce_currency_symbol()); ?></label>
|
54 |
-
<input type="text" class="short" name="single_product_regular_price_adjust" value="<?php echo esc_attr($post['single_product_regular_price_adjust']) ?>"/>
|
55 |
-
<select name="single_product_regular_price_adjust_type" class="pmwi_adjust_type">
|
56 |
-
<option value="%" <?php echo ($post['single_product_regular_price_adjust_type'] == '%') ? 'selected="selected"' : ''; ?>>%</option>
|
57 |
-
<option value="$" <?php echo ($post['single_product_regular_price_adjust_type'] == '$') ? 'selected="selected"' : ''; ?>><?php echo get_woocommerce_currency_symbol(); ?></option>
|
58 |
-
</select>
|
59 |
-
<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.', 'wpai_woocommerce_addon_plugin') ?>">?</a>
|
60 |
-
<a href="#help" class="wpallimport-help pmwi_reduce_prices_note" title="<?php _e('Enter a negative number to reduce prices.', 'wpai_woocommerce_addon_plugin') ?>">?</a>
|
61 |
-
<span class="wpallimport-clear"></span>
|
62 |
-
</p>
|
63 |
-
|
64 |
-
<p class="form-field">
|
65 |
-
<label><?php printf(__("Sale Price (%s)", "wpai_woocommerce_addon_plugin"), get_woocommerce_currency_symbol()); ?></label>
|
66 |
-
<input type="text" class="short" name="single_product_sale_price_adjust" value="<?php echo esc_attr($post['single_product_sale_price_adjust']) ?>"/>
|
67 |
-
<select name="single_product_sale_price_adjust_type" class="pmwi_adjust_type">
|
68 |
-
<option value="%" <?php echo ($post['single_product_sale_price_adjust_type'] == '%') ? 'selected="selected"' : ''; ?>>%</option>
|
69 |
-
<option value="$" <?php echo ($post['single_product_sale_price_adjust_type'] == '$') ? 'selected="selected"' : ''; ?>><?php echo get_woocommerce_currency_symbol(); ?></option>
|
70 |
-
</select>
|
71 |
-
<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.', 'wpai_woocommerce_addon_plugin') ?>">?</a>
|
72 |
-
<a href="#help" class="wpallimport-help pmwi_reduce_prices_note" title="<?php _e('Enter a negative number to reduce prices.', 'wpai_woocommerce_addon_plugin') ?>">?</a>
|
73 |
-
<span class="wpallimport-clear"></span>
|
74 |
-
</p>
|
75 |
-
</div>
|
76 |
-
|
77 |
-
<br>
|
78 |
-
|
79 |
-
<p class="form-field wpallimport-radio-field">
|
80 |
-
<input type="hidden" name="disable_prepare_price" value="0" />
|
81 |
-
<input type="checkbox" id="disable_prepare_price" name="disable_prepare_price" value="1" <?php echo $post['disable_prepare_price'] ? 'checked="checked"' : '' ?> />
|
82 |
-
<label for="disable_prepare_price" style="width:220px;"><?php _e('Remove currency symbols from price', 'wpai_woocommerce_addon_plugin') ?></label>
|
83 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('WP All Import attempt to remove currency symbols from prices.', 'wpai_woocommerce_addon_plugin') ?>" style="position:relative; top:1px;">?</a>
|
84 |
-
</p>
|
85 |
-
|
86 |
-
<p class="form-field wpallimport-radio-field">
|
87 |
-
<input type="hidden" name="convert_decimal_separator" value="0" />
|
88 |
-
<input type="checkbox" id="convert_decimal_separator" name="convert_decimal_separator" value="1" <?php echo $post['convert_decimal_separator'] ? 'checked="checked"' : '' ?> />
|
89 |
-
<label for="convert_decimal_separator" style="width:220px;"><?php _e('Convert decimal separator to a period', 'wpai_woocommerce_addon_plugin') ?></label>
|
90 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('Prices must be imported using a period as the decimal separator. If you\'d like to change the decimal separator you can do so by editing your WooCommerce settings.', 'wpai_woocommerce_addon_plugin') ?>" style="position:relative; top:1px;">?</a>
|
91 |
-
</p>
|
92 |
-
|
93 |
-
<p class="form-field wpallimport-radio-field">
|
94 |
-
<input type="hidden" name="prepare_price_to_woo_format" value="0" />
|
95 |
-
<input type="checkbox" id="prepare_price_to_woo_format" name="prepare_price_to_woo_format" value="1" <?php echo $post['prepare_price_to_woo_format'] ? 'checked="checked"' : '' ?> />
|
96 |
-
<label for="prepare_price_to_woo_format" style="width:420px;"><?php _e('Attempt to convert incorrectly formatted prices to WooCommerce format', 'wpai_woocommerce_addon_plugin') ?></label>
|
97 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('WP All Import will attempt to correct the formatting of prices presented incorrectly, but this doesn\'t always work. Try unchecking this option if your prices are not appearing correctly, or enter your prices in your import file using the same format you would when entering them in WooCommerce.', 'wpai_woocommerce_addon_plugin') ?>" style="position:relative; top:1px;">?</a>
|
98 |
-
</p>
|
99 |
-
|
100 |
-
<p class="form-field">
|
101 |
-
<a href="javascript:void(0);" class="preview_prices" rel="preview_prices" style="float:left;"><?php _e('Preview Prices', 'wpai_woocommerce_addon_plugin'); ?></a>
|
102 |
-
</p>
|
103 |
-
|
104 |
-
</div>
|
105 |
-
|
106 |
-
<div class="options_group show_if_variable">
|
107 |
-
<p class="form-field">
|
108 |
-
<label><?php _e("Variation Description"); ?></label>
|
109 |
-
<input type="text" class="short" name="single_product_variation_description" value="<?php echo esc_attr($post['single_product_variation_description']) ?>"/>
|
110 |
-
</p>
|
111 |
-
</div>
|
112 |
-
|
113 |
-
<!--div class="options_group show_if_variable">
|
114 |
-
|
115 |
-
<p class="form-field"><?php _e('Variation Enabled','wpai_woocommerce_addon_plugin');?><a href="#help" class="wpallimport-help" title="<?php _e('This option is the same as the Enabled checkbox when editing an individual variation in WooCommerce.', 'wpai_woocommerce_addon_plugin') ?>" style="position:relative; top:0px;">?</a></p>
|
116 |
-
|
117 |
-
<p class="form-field wpallimport-radio-field">
|
118 |
-
<input type="radio" id="variation_enabled_yes" class="switcher" name="is_variation_enabled" value="yes" <?php echo 'yes' == $post['is_variation_enabled'] ? 'checked="checked"': '' ?>/>
|
119 |
-
<label for="variation_enabled_yes"><?php _e("Yes"); ?></label>
|
120 |
-
</p>
|
121 |
-
<p class="form-field wpallimport-radio-field">
|
122 |
-
<input type="radio" id="variation_enabled_no" class="switcher" name="is_variation_enabled" value="no" <?php echo 'no' == $post['is_variation_enabled'] ? 'checked="checked"': '' ?>/>
|
123 |
-
<label for="variation_enabled_no"><?php _e("No"); ?></label>
|
124 |
-
</p>
|
125 |
-
<div class="form-field wpallimport-radio-field">
|
126 |
-
<input type="radio" id="variation_enabled_xpath" class="switcher" name="is_variation_enabled" value="xpath" <?php echo 'xpath' == $post['is_variation_enabled'] ? 'checked="checked"': '' ?>/>
|
127 |
-
<label for="variation_enabled_xpath"><?php _e('Set with XPath', 'wpai_woocommerce_addon_plugin' )?></label>
|
128 |
-
<span class="wpallimport-clear"></span>
|
129 |
-
<div class="switcher-target-variation_enabled_xpath set_with_xpath">
|
130 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
131 |
-
<input type="text" class="smaller-text" name="single_variation_enabled" style="width:300px;" value="<?php echo esc_attr($post['single_variation_enabled']) ?>"/>
|
132 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'yes\', \'no\').', 'wpai_woocommerce_addon_plugin') ?>" style="position:relative; top:2px;">?</a>
|
133 |
-
</span>
|
134 |
-
</div>
|
135 |
-
</div>
|
136 |
-
</div-->
|
137 |
-
|
138 |
-
<div class="options_group">
|
139 |
-
|
140 |
-
<p class="form-field wpallimport-radio-field">
|
141 |
-
<input type="radio" id="is_product_virtual_yes" class="switcher" name="is_product_virtual" value="yes" <?php echo 'yes' == $post['is_product_virtual'] ? 'checked="checked"': '' ?>/>
|
142 |
-
<label for="is_product_virtual_yes"><?php _e("Virtual", "wpai_woocommerce_addon_plugin"); ?></label>
|
143 |
-
</p>
|
144 |
-
<p class="form-field wpallimport-radio-field">
|
145 |
-
<input type="radio" id="is_product_virtual_no" class="switcher" name="is_product_virtual" value="no" <?php echo 'no' == $post['is_product_virtual'] ? 'checked="checked"': '' ?>/>
|
146 |
-
<label for="is_product_virtual_no"><?php _e("Not Virtual", "wpai_woocommerce_addon_plugin"); ?></label>
|
147 |
-
</p>
|
148 |
-
<div class="form-field wpallimport-radio-field">
|
149 |
-
<input type="radio" id="is_product_virtual_xpath" class="switcher" name="is_product_virtual" value="xpath" <?php echo 'xpath' == $post['is_product_virtual'] ? 'checked="checked"': '' ?>/>
|
150 |
-
<label for="is_product_virtual_xpath"><?php _e('Set with XPath', 'wpai_woocommerce_addon_plugin' )?></label>
|
151 |
-
<span class="wpallimport-clear"></span>
|
152 |
-
<div class="switcher-target-is_product_virtual_xpath set_with_xpath">
|
153 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
154 |
-
<input type="text" class="smaller-text" name="single_product_virtual" style="width:300px;" value="<?php echo esc_attr($post['single_product_virtual']) ?>"/>
|
155 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'yes\', \'no\').', 'wpai_woocommerce_addon_plugin') ?>">?</a>
|
156 |
-
</span>
|
157 |
-
</div>
|
158 |
-
</div>
|
159 |
-
|
160 |
-
</div>
|
161 |
-
<div class="options_group">
|
162 |
-
|
163 |
-
<p class="form-field wpallimport-radio-field">
|
164 |
-
<input type="radio" id="is_product_downloadable_yes" class="switcher" name="is_product_downloadable" value="yes" <?php echo 'yes' == $post['is_product_downloadable'] ? 'checked="checked"': '' ?>/>
|
165 |
-
<label for="is_product_downloadable_yes"><?php _e("Downloadable", "wpai_woocommerce_addon_plugin"); ?></label>
|
166 |
-
</p>
|
167 |
-
<p class="form-field wpallimport-radio-field">
|
168 |
-
<input type="radio" id="is_product_downloadable_no" class="switcher" name="is_product_downloadable" value="no" <?php echo 'no' == $post['is_product_downloadable'] ? 'checked="checked"': '' ?>/>
|
169 |
-
<label for="is_product_downloadable_no"><?php _e("Not Downloadable", "wpai_woocommerce_addon_plugin"); ?></label>
|
170 |
-
</p>
|
171 |
-
<div class="form-field wpallimport-radio-field">
|
172 |
-
<input type="radio" id="is_product_downloadable_xpath" class="switcher" name="is_product_downloadable" value="xpath" <?php echo 'xpath' == $post['is_product_downloadable'] ? 'checked="checked"': '' ?>/>
|
173 |
-
<label for="is_product_downloadable_xpath"><?php _e('Set with XPath', 'wpai_woocommerce_addon_plugin' )?></label>
|
174 |
-
<span class="wpallimport-clear"></span>
|
175 |
-
<div class="switcher-target-is_product_downloadable_xpath set_with_xpath">
|
176 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
177 |
-
<input type="text" class="smaller-text" name="single_product_downloadable" style="width:300px;" value="<?php echo esc_attr($post['single_product_downloadable']) ?>"/>
|
178 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'yes\', \'no\').', 'wpai_woocommerce_addon_plugin') ?>" style="position:relative; top:2px;">?</a>
|
179 |
-
</span>
|
180 |
-
</div>
|
181 |
-
</div>
|
182 |
-
</div>
|
183 |
-
|
184 |
-
<div class="options_group show_if_downloadable">
|
185 |
-
<p class="form-field">
|
186 |
-
<label><?php _e("File paths", "wpai_woocommerce_addon_plugin"); ?></label>
|
187 |
-
<input type="text" class="short" name="single_product_files" value="<?php echo esc_attr($post['single_product_files']) ?>" style="margin-right:5px;"/>
|
188 |
-
<input type="text" class="small" name="product_files_delim" value="<?php echo esc_attr($post['product_files_delim']) ?>" style="width:5%; text-align:center;"/>
|
189 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('File paths/URLs, comma separated. The delimiter is used when an XML element contains multiple URLs/paths - i.e. <code>http://files.com/1.doc, http://files.com/2.doc</code>.', 'wpai_woocommerce_addon_plugin') ?>">?</a>
|
190 |
-
</p>
|
191 |
-
<p class="form-field">
|
192 |
-
<label><?php _e("File names", "wpai_woocommerce_addon_plugin"); ?></label>
|
193 |
-
<input type="text" class="short" name="single_product_files_names" value="<?php echo esc_attr($post['single_product_files_names']) ?>" style="margin-right:5px;"/>
|
194 |
-
<input type="text" class="small" name="product_files_names_delim" value="<?php echo esc_attr($post['product_files_names_delim']) ?>" style="width:5%; text-align:center;"/>
|
195 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('File names, comma separated. The delimiter is used when an XML element contains multiple names - i.e. <code>1.doc, 2.doc</code>.', 'wpai_woocommerce_addon_plugin') ?>">?</a>
|
196 |
-
</p>
|
197 |
-
<p class="form-field">
|
198 |
-
<label><?php _e("Download Limit", "wpai_woocommerce_addon_plugin"); ?></label>
|
199 |
-
<input type="text" class="short" placeholder="Unimited" name="single_product_download_limit" value="<?php echo esc_attr($post['single_product_download_limit']) ?>"/>
|
200 |
-
<a href="#help" class="wpallimport-help" title="<?php _e( 'Leave blank for unlimited re-downloads.', 'wpai_woocommerce_addon_plugin' ) ?>">?</a>
|
201 |
-
</p>
|
202 |
-
<p class="form-field">
|
203 |
-
<label><?php _e("Download Expiry", "wpai_woocommerce_addon_plugin"); ?></label>
|
204 |
-
<input type="text" class="short" placeholder="Never" name="single_product_download_expiry" value="<?php echo esc_attr($post['single_product_download_expiry']) ?>"/>
|
205 |
-
<a href="#help" class="wpallimport-help" title="<?php _e( 'Enter the number of days before a download link expires, or leave blank.', 'wpai_woocommerce_addon_plugin' ) ?>">?</a>
|
206 |
-
</p>
|
207 |
-
<p class="form-field">
|
208 |
-
<label><?php _e("Download Type", "wpai_woocommerce_addon_plugin"); ?></label>
|
209 |
-
<input type="text" class="short" placeholder="Standard Product" name="single_product_download_type" value="<?php echo esc_attr($post['single_product_download_type']) ?>"/>
|
210 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'application\', \'music\').', 'wpai_woocommerce_addon_plugin') ?>" style="position:relative; top:2px;">?</a>
|
211 |
-
</p>
|
212 |
-
</div>
|
213 |
-
|
214 |
-
<div class="options_group show_if_simple show_if_external show_if_variable">
|
215 |
-
|
216 |
-
<div class="form-field wpallimport-radio-field">
|
217 |
-
<input type="radio" id="multiple_product_tax_status_yes" class="switcher" name="is_multiple_product_tax_status" value="yes" <?php echo 'no' != $post['is_multiple_product_tax_status'] ? 'checked="checked"': '' ?>/>
|
218 |
-
<label for="multiple_product_tax_status_yes"><?php _e("Tax Status", "wpai_woocommerce_addon_plugin"); ?></label>
|
219 |
-
<span class="wpallimport-clear"></span>
|
220 |
-
<div class="switcher-target-multiple_product_tax_status_yes set_with_xpath">
|
221 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
222 |
-
<select class="select short" name="multiple_product_tax_status">
|
223 |
-
<option value="taxable" <?php echo 'taxable' == $post['multiple_product_tax_status'] ? 'selected="selected"': '' ?>><?php _e('Taxable', 'wpai_woocommerce_addon_plugin');?></option>
|
224 |
-
<option value="shipping" <?php echo 'shipping' == $post['multiple_product_tax_status'] ? 'selected="selected"': '' ?>><?php _e('Shipping only', 'wpai_woocommerce_addon_plugin');?></option>
|
225 |
-
<option value="none" <?php echo 'none' == $post['multiple_product_tax_status'] ? 'selected="selected"': '' ?>><?php _e('None', 'wpai_woocommerce_addon_plugin');?></option>
|
226 |
-
</select>
|
227 |
-
</span>
|
228 |
-
</div>
|
229 |
-
</div>
|
230 |
-
|
231 |
-
<div class="form-field wpallimport-radio-field">
|
232 |
-
<input type="radio" id="multiple_product_tax_status_no" class="switcher" name="is_multiple_product_tax_status" value="no" <?php echo 'no' == $post['is_multiple_product_tax_status'] ? 'checked="checked"': '' ?>/>
|
233 |
-
<label for="multiple_product_tax_status_no"><?php _e('Set tax status with XPath', 'wpai_woocommerce_addon_plugin' ); ?></label>
|
234 |
-
<span class="wpallimport-clear"></span>
|
235 |
-
<div class="switcher-target-multiple_product_tax_status_no set_with_xpath">
|
236 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
237 |
-
<input type="text" class="smaller-text" name="single_product_tax_status" style="width:300px;" value="<?php echo esc_attr($post['single_product_tax_status']) ?>"/>
|
238 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('Value should be the slug for the tax status - \'taxable\', \'shipping\', and \'none\' are the default slugs.', 'wpai_woocommerce_addon_plugin') ?>">?</a>
|
239 |
-
</span>
|
240 |
-
</div>
|
241 |
-
</div>
|
242 |
-
|
243 |
-
</div>
|
244 |
-
<div class="options_group show_if_simple show_if_external show_if_variable">
|
245 |
-
|
246 |
-
<div class="form-field wpallimport-radio-field">
|
247 |
-
<input type="radio" id="multiple_product_tax_class_yes" class="switcher" name="is_multiple_product_tax_class" value="yes" <?php echo 'no' != $post['is_multiple_product_tax_class'] ? 'checked="checked"': '' ?>/>
|
248 |
-
<label for="multiple_product_tax_class_yes"><?php _e("Tax Class", "wpai_woocommerce_addon_plugin"); ?></label>
|
249 |
-
|
250 |
-
<span class="wpallimport-clear"></span>
|
251 |
-
<div class="switcher-target-multiple_product_tax_class_yes set_with_xpath">
|
252 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
253 |
-
<?php
|
254 |
-
$tax_classes = array_filter( array_map( 'trim', explode( "\n", get_option( 'woocommerce_tax_classes' ) ) ) );
|
255 |
-
$classes_options = array();
|
256 |
-
$classes_options[''] = __( 'Standard', 'wpai_woocommerce_addon_plugin' );
|
257 |
-
|
258 |
-
if ( $tax_classes ){
|
259 |
-
foreach ( $tax_classes as $class ){
|
260 |
-
$classes_options[ sanitize_title( $class ) ] = esc_html( $class );
|
261 |
-
}
|
262 |
-
}
|
263 |
-
?>
|
264 |
-
<select class="select short" name="multiple_product_tax_class">
|
265 |
-
<?php foreach ($classes_options as $key => $value):?>
|
266 |
-
<option value="<?php echo $key; ?>" <?php echo selected( esc_attr( $key ), esc_attr( $post['multiple_product_tax_class'] ), false ); ?>><?php echo $value; ?></option>
|
267 |
-
<?php endforeach; ?>
|
268 |
-
</select>
|
269 |
-
</span>
|
270 |
-
</div>
|
271 |
-
</div>
|
272 |
-
|
273 |
-
<div class="form-field wpallimport-radio-field">
|
274 |
-
<input type="radio" id="multiple_product_tax_class_no" class="switcher" name="is_multiple_product_tax_class" value="no" <?php echo 'no' == $post['is_multiple_product_tax_class'] ? 'checked="checked"': '' ?>/>
|
275 |
-
<label for="multiple_product_tax_class_no"><?php _e('Set tax class with XPath', 'wpai_woocommerce_addon_plugin' )?></label>
|
276 |
-
|
277 |
-
<span class="wpallimport-clear"></span>
|
278 |
-
<div class="switcher-target-multiple_product_tax_class_no set_with_xpath">
|
279 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
280 |
-
<input type="text" class="smaller-text" name="single_product_tax_class" style="width:300px;" value="<?php echo esc_attr($post['single_product_tax_class']) ?>"/>
|
281 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('Value should be the slug for the tax class - \'reduced-rate\' and \'zero-rate\', are the default slugs.', 'wpai_woocommerce_addon_plugin') ?>">?</a>
|
282 |
-
</span>
|
283 |
-
</div>
|
284 |
-
</div>
|
285 |
-
|
286 |
-
</div>
|
287 |
-
|
288 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
views/admin/import/_tabs/_inventory.php
DELETED
@@ -1,121 +0,0 @@
|
|
1 |
-
<div class="panel woocommerce_options_panel" id="inventory_product_data" style="display:none;">
|
2 |
-
<div class="woo-add-on-free-edition-notice upgrade_template">
|
3 |
-
<a href="https://www.wpallimport.com/checkout/?edd_action=purchase_collection&taxonomy=download_category&terms=14&utm_source=free-plugin&utm_medium=in-plugin&utm_campaign=woocommerce" 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', 'wpai_woocommerce_addon_plugin');?></a>
|
4 |
-
<p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
|
5 |
-
</div>
|
6 |
-
<div class="options_group show_if_simple show_if_variable">
|
7 |
-
|
8 |
-
<p class="form-field"><?php _e("Manage stock?", "wpai_woocommerce_addon_plugin"); ?></p>
|
9 |
-
|
10 |
-
<p class="form-field wpallimport-radio-field">
|
11 |
-
<input type="radio" id="is_product_manage_stock_yes" class="switcher" name="is_product_manage_stock" value="yes" <?php echo 'yes' == $post['is_product_manage_stock'] ? 'checked="checked"': '' ?>/>
|
12 |
-
<label for="is_product_manage_stock_yes"><?php _e("Yes"); ?></label>
|
13 |
-
</p>
|
14 |
-
<p class="form-field wpallimport-radio-field">
|
15 |
-
<input type="radio" id="is_product_manage_stock_no" class="switcher" name="is_product_manage_stock" value="no" <?php echo 'no' == $post['is_product_manage_stock'] ? 'checked="checked"': '' ?>/>
|
16 |
-
<label for="is_product_manage_stock_no"><?php _e("No"); ?></label>
|
17 |
-
</p>
|
18 |
-
<div class="form-field wpallimport-radio-field">
|
19 |
-
<input type="radio" id="is_product_manage_stock_xpath" class="switcher" name="is_product_manage_stock" value="xpath" <?php echo 'xpath' == $post['is_product_manage_stock'] ? 'checked="checked"': '' ?>/>
|
20 |
-
<label for="is_product_manage_stock_xpath"><?php _e('Set with XPath', 'wpai_woocommerce_addon_plugin' )?></label>
|
21 |
-
<span class="wpallimport-clear"></span>
|
22 |
-
<div class="switcher-target-is_product_manage_stock_xpath set_with_xpath">
|
23 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
24 |
-
<input type="text" class="smaller-text" name="single_product_manage_stock" style="width:300px;" value="<?php echo esc_attr($post['single_product_manage_stock']) ?>"/>
|
25 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'yes\', \'no\').', 'wpai_woocommerce_addon_plugin') ?>" style="position:relative; top:2px;">?</a>
|
26 |
-
</span>
|
27 |
-
</div>
|
28 |
-
</div>
|
29 |
-
|
30 |
-
</div>
|
31 |
-
<div class="options_group stock_fields show_if_simple show_if_variable">
|
32 |
-
<p class="form-field" style="margin-top:0;">
|
33 |
-
<label><?php _e("Stock Qty", "wpai_woocommerce_addon_plugin"); ?></label>
|
34 |
-
<input type="text" class="short" name="single_product_stock_qty" value="<?php echo esc_attr($post['single_product_stock_qty']) ?>"/>
|
35 |
-
</p>
|
36 |
-
</div>
|
37 |
-
<div class="options_group">
|
38 |
-
|
39 |
-
<p class="form-field"><?php _e('Stock status','wpai_woocommerce_addon_plugin');?></p>
|
40 |
-
|
41 |
-
<p class="form-field wpallimport-radio-field">
|
42 |
-
<input type="radio" id="product_stock_status_in_stock" class="switcher" name="product_stock_status" value="instock" <?php echo 'instock' == $post['product_stock_status'] ? 'checked="checked"': '' ?>/>
|
43 |
-
<label for="product_stock_status_in_stock"><?php _e("In stock", "wpai_woocommerce_addon_plugin"); ?></label>
|
44 |
-
</p>
|
45 |
-
<p class="form-field wpallimport-radio-field">
|
46 |
-
<input type="radio" id="product_stock_status_out_of_stock" class="switcher" name="product_stock_status" value="outofstock" <?php echo 'outofstock' == $post['product_stock_status'] ? 'checked="checked"': '' ?>/>
|
47 |
-
<label for="product_stock_status_out_of_stock"><?php _e("Out of stock", "wpai_woocommerce_addon_plugin"); ?></label>
|
48 |
-
</p>
|
49 |
-
<p class="form-field wpallimport-radio-field">
|
50 |
-
<input type="radio" id="product_stock_status_automatically" class="switcher" name="product_stock_status" value="auto" <?php echo 'auto' == $post['product_stock_status'] ? 'checked="checked"': '' ?>/>
|
51 |
-
<label for="product_stock_status_automatically" style="width:105px;"><?php _e("Set automatically", "wpai_woocommerce_addon_plugin"); ?></label>
|
52 |
-
<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.', 'wpai_woocommerce_addon_plugin') ?>" style="position:relative; top:2px;">?</a>
|
53 |
-
</p>
|
54 |
-
<div class="form-field wpallimport-radio-field">
|
55 |
-
<input type="radio" id="product_stock_status_xpath" class="switcher" name="product_stock_status" value="xpath" <?php echo 'xpath' == $post['product_stock_status'] ? 'checked="checked"': '' ?>/>
|
56 |
-
<label for="product_stock_status_xpath"><?php _e('Set with XPath', 'wpai_woocommerce_addon_plugin' )?></label>
|
57 |
-
<span class="wpallimport-clear"></span>
|
58 |
-
<div class="switcher-target-product_stock_status_xpath set_with_xpath">
|
59 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
60 |
-
<input type="text" class="smaller-text" name="single_product_stock_status" style="width:300px;" value="<?php echo esc_attr($post['single_product_stock_status']) ?>"/>
|
61 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'instock\', \'outofstock\').', 'wpai_woocommerce_addon_plugin') ?>" style="position:relative; top:2px;">?</a>
|
62 |
-
</span>
|
63 |
-
</div>
|
64 |
-
</div>
|
65 |
-
|
66 |
-
</div>
|
67 |
-
|
68 |
-
<div class="options_group show_if_simple show_if_variable">
|
69 |
-
|
70 |
-
<p class="form-field"><?php _e('Allow Backorders?','wpai_woocommerce_addon_plugin');?></p>
|
71 |
-
|
72 |
-
<p class="form-field wpallimport-radio-field">
|
73 |
-
<input type="radio" id="product_allow_backorders_no" class="switcher" name="product_allow_backorders" value="no" <?php echo 'no' == $post['product_allow_backorders'] ? 'checked="checked"': '' ?>/>
|
74 |
-
<label for="product_allow_backorders_no"><?php _e("Do not allow", "wpai_woocommerce_addon_plugin"); ?></label>
|
75 |
-
</p>
|
76 |
-
<p class="form-field wpallimport-radio-field">
|
77 |
-
<input type="radio" id="product_allow_backorders_notify" class="switcher" name="product_allow_backorders" value="notify" <?php echo 'notify' == $post['product_allow_backorders'] ? 'checked="checked"': '' ?>/>
|
78 |
-
<label for="product_allow_backorders_notify"><?php _e("Allow, but notify customer", "wpai_woocommerce_addon_plugin"); ?></label>
|
79 |
-
</p>
|
80 |
-
<p class="form-field wpallimport-radio-field">
|
81 |
-
<input type="radio" id="product_allow_backorders_yes" class="switcher" name="product_allow_backorders" value="yes" <?php echo 'yes' == $post['product_allow_backorders'] ? 'checked="checked"': '' ?>/>
|
82 |
-
<label for="product_allow_backorders_yes"><?php _e("Allow", "wpai_woocommerce_addon_plugin"); ?></label>
|
83 |
-
</p>
|
84 |
-
<div class="form-field wpallimport-radio-field">
|
85 |
-
<input type="radio" id="product_allow_backorders_xpath" class="switcher" name="product_allow_backorders" value="xpath" <?php echo 'xpath' == $post['product_allow_backorders'] ? 'checked="checked"': '' ?>/>
|
86 |
-
<label for="product_allow_backorders_xpath"><?php _e('Set with XPath', 'wpai_woocommerce_addon_plugin' )?></label>
|
87 |
-
<span class="wpallimport-clear"></span>
|
88 |
-
<div class="switcher-target-product_allow_backorders_xpath set_with_xpath">
|
89 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
90 |
-
<input type="text" class="smaller-text" name="single_product_allow_backorders" style="width:300px;" value="<?php echo esc_attr($post['single_product_allow_backorders']) ?>"/>
|
91 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'no\', \'notify\', \'yes\').', 'wpai_woocommerce_addon_plugin') ?>" style="position:relative; top:2px;">?</a>
|
92 |
-
</span>
|
93 |
-
</div>
|
94 |
-
</div>
|
95 |
-
|
96 |
-
</div>
|
97 |
-
<div class="options_group show_if_simple show_if_variable">
|
98 |
-
|
99 |
-
<p class="form-field"><?php _e('Sold Individually?','wpai_woocommerce_addon_plugin');?></p>
|
100 |
-
|
101 |
-
<p class="form-field wpallimport-radio-field">
|
102 |
-
<input type="radio" id="product_sold_individually_yes" class="switcher" name="product_sold_individually" value="yes" <?php echo 'yes' == $post['product_sold_individually'] ? 'checked="checked"': '' ?>/>
|
103 |
-
<label for="product_sold_individually_yes"><?php _e("Yes"); ?></label>
|
104 |
-
</p>
|
105 |
-
<p class="form-field wpallimport-radio-field">
|
106 |
-
<input type="radio" id="product_sold_individually_no" class="switcher" name="product_sold_individually" value="no" <?php echo 'no' == $post['product_sold_individually'] ? 'checked="checked"': '' ?>/>
|
107 |
-
<label for="product_sold_individually_no"><?php _e("No"); ?></label>
|
108 |
-
</p>
|
109 |
-
<div class="form-field wpallimport-radio-field">
|
110 |
-
<input type="radio" id="product_sold_individually_xpath" class="switcher" name="product_sold_individually" value="xpath" <?php echo 'xpath' == $post['product_sold_individually'] ? 'checked="checked"': '' ?>/>
|
111 |
-
<label for="product_sold_individually_xpath"><?php _e('Set with XPath', 'wpai_woocommerce_addon_plugin' )?></label>
|
112 |
-
<span class="wpallimport-clear"></span>
|
113 |
-
<div class="switcher-target-product_sold_individually_xpath set_with_xpath">
|
114 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
115 |
-
<input type="text" class="smaller-text" name="single_product_sold_individually" style="width:300px;" value="<?php echo esc_attr($post['single_product_sold_individually']) ?>"/>
|
116 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'yes\', \'no\').', 'wpai_woocommerce_addon_plugin') ?>" style="position:relative; top:2px;">?</a>
|
117 |
-
</span>
|
118 |
-
</div>
|
119 |
-
</div>
|
120 |
-
</div>
|
121 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
views/admin/import/_tabs/_linked_product.php
DELETED
@@ -1,103 +0,0 @@
|
|
1 |
-
<div class="panel woocommerce_options_panel" id="linked_product_data" style="display:none;">
|
2 |
-
<div class="woo-add-on-free-edition-notice upgrade_template">
|
3 |
-
<a href="https://www.wpallimport.com/checkout/?edd_action=purchase_collection&taxonomy=download_category&terms=14&utm_source=free-plugin&utm_medium=in-plugin&utm_campaign=woocommerce" 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', 'wpai_woocommerce_addon_plugin');?></a>
|
4 |
-
<p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
|
5 |
-
</div>
|
6 |
-
<div class="options_group">
|
7 |
-
<p class="form-field">
|
8 |
-
<label><?php _e("Up-Sells", "wpai_woocommerce_addon_plugin"); ?></label>
|
9 |
-
<input type="text" class="" name="single_product_up_sells" style="" value="<?php echo esc_attr($post['single_product_up_sells']) ?>"/>
|
10 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('Products can be matched by SKU, ID, or Title, and must be comma separated.', 'wpai_woocommerce_addon_plugin'); ?>">?</a>
|
11 |
-
</p>
|
12 |
-
<p class="form-field">
|
13 |
-
<label><?php _e("Cross-Sells", "wpai_woocommerce_addon_plugin"); ?></label>
|
14 |
-
<input type="text" class="" name="single_product_cross_sells" value="<?php echo esc_attr($post['single_product_cross_sells']) ?>"/>
|
15 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('Products can be matched by SKU, ID, or Title, and must be comma separated.', 'wpai_woocommerce_addon_plugin'); ?>">?</a>
|
16 |
-
</p>
|
17 |
-
</div> <!-- End options group -->
|
18 |
-
<div class="options_group grouping show_if_simple show_if_external">
|
19 |
-
<?php
|
20 |
-
$post_parents = array();
|
21 |
-
$post_parents[''] = __( 'Choose a grouped product…', 'wpai_woocommerce_addon_plugin' );
|
22 |
-
|
23 |
-
$posts_in = array_unique( (array) get_objects_in_term( get_term_by( 'slug', 'grouped', 'product_type' )->term_id, 'product_type' ) );
|
24 |
-
if ( sizeof( $posts_in ) > 0 ) {
|
25 |
-
$posts_in = array_slice($posts_in, 0, 100);
|
26 |
-
$args = array(
|
27 |
-
'post_type' => 'product',
|
28 |
-
'post_status' => 'any',
|
29 |
-
'numberposts' => 100,
|
30 |
-
'orderby' => 'title',
|
31 |
-
'order' => 'asc',
|
32 |
-
'post_parent' => 0,
|
33 |
-
'include' => $posts_in,
|
34 |
-
);
|
35 |
-
$grouped_products = get_posts( $args );
|
36 |
-
|
37 |
-
if ( $grouped_products ) {
|
38 |
-
foreach ( $grouped_products as $product ) {
|
39 |
-
$post_parents[ $product->ID ] = $product->post_title;
|
40 |
-
}
|
41 |
-
}
|
42 |
-
}
|
43 |
-
?>
|
44 |
-
|
45 |
-
<div class="form-field wpallimport-radio-field">
|
46 |
-
<input type="radio" id="multiple_grouping_product_yes" class="switcher" name="is_multiple_grouping_product" value="yes" <?php echo 'no' != $post['is_multiple_grouping_product'] ? 'checked="checked"': '' ?>/>
|
47 |
-
<label for="multiple_grouping_product_yes"><?php _e("Grouping", "wpai_woocommerce_addon_plugin"); ?></label>
|
48 |
-
<span class="wpallimport-clear"></span>
|
49 |
-
<div class="switcher-target-multiple_grouping_product_yes set_with_xpath">
|
50 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
51 |
-
<select name="multiple_grouping_product">
|
52 |
-
<?php
|
53 |
-
foreach ($post_parents as $parent_id => $parent_title) {
|
54 |
-
?>
|
55 |
-
<option value="<?php echo $parent_id; ?>" <?php if ($parent_id == $post['multiple_grouping_product']):?>selected="selected"<?php endif;?>><?php echo $parent_title;?></option>
|
56 |
-
<?php
|
57 |
-
}
|
58 |
-
?>
|
59 |
-
</select>
|
60 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('Set this option to make this product part of a grouped product.', 'wpai_woocommerce_addon_plugin'); ?>">?</a>
|
61 |
-
</span>
|
62 |
-
</div>
|
63 |
-
</div>
|
64 |
-
|
65 |
-
<p class="form-field wpallimport-radio-field">
|
66 |
-
<input type="radio" id="multiple_grouping_product_no" class="switcher" name="is_multiple_grouping_product" value="no" <?php echo 'no' == $post['is_multiple_grouping_product'] ? 'checked="checked"': '' ?>/>
|
67 |
-
<label for="multiple_grouping_product_no" style="width: 200px;"><?php _e('Manual Grouped Product Matching', 'wpai_woocommerce_addon_plugin' )?></label>
|
68 |
-
<a href="#help" class="wpallimport-help" sstyle="top:2px;" title="<?php _e('Product will be assigned as the child of an already created product matching the specified criteria.', 'wpai_woocommerce_addon_plugin'); ?>">?</a>
|
69 |
-
</p>
|
70 |
-
|
71 |
-
<div class="switcher-target-multiple_grouping_product_no set_with_xpath" style="padding-left: 20px;">
|
72 |
-
|
73 |
-
<div class="form-field wpallimport-radio-field">
|
74 |
-
<input type="radio" id="duplicate_indicator_xpath_grouping" class="switcher" name="grouping_indicator" value="xpath" <?php echo 'xpath' == $post['grouping_indicator'] ? 'checked="checked"': '' ?>/>
|
75 |
-
<label for="duplicate_indicator_xpath_grouping"><?php _e('Match by Post Title', 'wpai_woocommerce_addon_plugin' )?></label>
|
76 |
-
<span class="wpallimport-clear"></span>
|
77 |
-
<div class="switcher-target-duplicate_indicator_xpath_grouping set_with_xpath" style="vertical-align:middle">
|
78 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
79 |
-
<input type="text" name="single_grouping_product" value="<?php echo esc_attr($post['single_grouping_product']); ?>" style="float:none; margin:1px; " />
|
80 |
-
</span>
|
81 |
-
</div>
|
82 |
-
</div>
|
83 |
-
|
84 |
-
<div class="form-field wpallimport-radio-field">
|
85 |
-
<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"': '' ?>/>
|
86 |
-
<label for="duplicate_indicator_custom_field_grouping"><?php _e('Match by Custom Field', 'wpai_woocommerce_addon_plugin' )?></label><br>
|
87 |
-
<span class="wpallimport-clear"></span>
|
88 |
-
<div class="switcher-target-duplicate_indicator_custom_field_grouping set_with_xpath" style="padding-left:40px;">
|
89 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
90 |
-
<label style="width: 80px;"><?php _e('Name', 'wpai_woocommerce_addon_plugin') ?></label>
|
91 |
-
<input type="text" name="custom_grouping_indicator_name" value="<?php echo esc_attr($post['custom_grouping_indicator_name']) ?>" style="float:none; margin:1px;" />
|
92 |
-
|
93 |
-
<span class="wpallimport-clear"></span>
|
94 |
-
|
95 |
-
<label style="width: 80px;"><?php _e('Value', 'wpai_woocommerce_addon_plugin') ?></label>
|
96 |
-
<input type="text" name="custom_grouping_indicator_value" value="<?php echo esc_attr($post['custom_grouping_indicator_value']) ?>" style="float:none; margin:1px;" />
|
97 |
-
</span>
|
98 |
-
</div>
|
99 |
-
</div>
|
100 |
-
</div>
|
101 |
-
|
102 |
-
</div>
|
103 |
-
</div><!-- End Product Panel -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
views/admin/import/_tabs/_options.php
DELETED
@@ -1,32 +0,0 @@
|
|
1 |
-
<div class="panel woocommerce_options_panel" id="add_on_options" style="display:none;">
|
2 |
-
<div class="woo-add-on-free-edition-notice upgrade_template">
|
3 |
-
<a href="https://www.wpallimport.com/checkout/?edd_action=purchase_collection&taxonomy=download_category&terms=14&utm_source=free-plugin&utm_medium=in-plugin&utm_campaign=woocommerce" 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', 'wpai_woocommerce_addon_plugin');?></a>
|
4 |
-
<p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
|
5 |
-
</div>
|
6 |
-
<div class="options_group">
|
7 |
-
|
8 |
-
<p class="form-field"><?php _e('Import options','wpai_woocommerce_addon_plugin');?></p>
|
9 |
-
|
10 |
-
<?php if ( "new" == $post['wizard_type']): ?>
|
11 |
-
<p class="form-field wpallimport-radio-field">
|
12 |
-
<input type="hidden" name="missing_records_stock_status" value="0" />
|
13 |
-
<input type="checkbox" id="missing_records_stock_status" name="missing_records_stock_status" value="1" <?php echo $post['missing_records_stock_status'] ? 'checked="checked"' : '' ?> />
|
14 |
-
<label for="missing_records_stock_status"><?php _e('Set out of stock status for missing records', 'wpai_woocommerce_addon_plugin') ?></label>
|
15 |
-
<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.', 'wpai_woocommerce_addon_plugin') ?>" style="position:relative; top:-2px;">?</a>
|
16 |
-
</p>
|
17 |
-
<?php endif; ?>
|
18 |
-
<p class="form-field wpallimport-radio-field">
|
19 |
-
<input type="hidden" name="disable_auto_sku_generation" value="0" />
|
20 |
-
<input type="checkbox" id="disable_auto_sku_generation" name="disable_auto_sku_generation" value="1" <?php echo $post['disable_auto_sku_generation'] ? 'checked="checked"' : '' ?> />
|
21 |
-
<label for="disable_auto_sku_generation"><?php _e('Disable auto SKU generation', 'wpai_woocommerce_addon_plugin') ?></label>
|
22 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('Plugin will NOT automaticaly generate the SKU for each product based on md5 algorithm, if SKU option is empty.', 'wpai_woocommerce_addon_plugin') ?>" style="position:relative; top:-2px;">?</a>
|
23 |
-
</p>
|
24 |
-
<p class="form-field wpallimport-radio-field">
|
25 |
-
<input type="hidden" name="disable_sku_matching" value="0" />
|
26 |
-
<input type="checkbox" id="disable_sku_matching" name="disable_sku_matching" value="1" <?php echo $post['disable_sku_matching'] ? 'checked="checked"' : '' ?> />
|
27 |
-
<label for="disable_sku_matching"><?php _e('Don\'t check for duplicate SKUs', 'wpai_woocommerce_addon_plugin') ?></label>
|
28 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('Each product should have a unique SKU. If this box is checked, WP All Import won\'t check for duplicate SKUs, which speeds up the import process. Make sure the SKU for each of your products is unique. If this box is unchecked, WP All Import will import products with duplicate SKUs with a blank SKU.', 'wpai_woocommerce_addon_plugin') ?>" style="position:relative; top:-2px;">?</a>
|
29 |
-
</p>
|
30 |
-
|
31 |
-
</div>
|
32 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
views/admin/import/_tabs/_shipping.php
DELETED
@@ -1,58 +0,0 @@
|
|
1 |
-
<div class="panel woocommerce_options_panel" id="shipping_product_data" style="display:none;">
|
2 |
-
<div class="woo-add-on-free-edition-notice upgrade_template">
|
3 |
-
<a href="https://www.wpallimport.com/checkout/?edd_action=purchase_collection&taxonomy=download_category&terms=14&utm_source=free-plugin&utm_medium=in-plugin&utm_campaign=woocommerce" 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', 'wpai_woocommerce_addon_plugin');?></a>
|
4 |
-
<p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
|
5 |
-
</div>
|
6 |
-
<div class="options_group">
|
7 |
-
<p class="form-field">
|
8 |
-
<label><?php printf(__("Weight (%s)", 'wpai_woocommerce_addon_plugin'), get_option('woocommerce_weight_unit')); ?></label>
|
9 |
-
<input type="text" class="short" placeholder="0.00" name="single_product_weight" style="" value="<?php echo esc_attr($post['single_product_weight']) ?>"/>
|
10 |
-
</p>
|
11 |
-
<p class="form-field">
|
12 |
-
<label><?php printf(__("Dimensions (%s)", "wpai_woocommerce_addon_plugin"), get_option( 'woocommerce_dimension_unit' )); ?></label>
|
13 |
-
<input type="text" class="short" placeholder="<?php _e('Length','wpai_woocommerce_addon_plugin');?>" name="single_product_length" style="margin-right:5px;" value="<?php echo esc_attr($post['single_product_length']) ?>"/>
|
14 |
-
<input type="text" class="short" placeholder="<?php _e('Width','wpai_woocommerce_addon_plugin');?>" name="single_product_width" style="margin-right:5px;" value="<?php echo esc_attr($post['single_product_width']) ?>"/>
|
15 |
-
<input type="text" class="short" placeholder="<?php _e('Height','wpai_woocommerce_addon_plugin');?>" name="single_product_height" style="" value="<?php echo esc_attr($post['single_product_height']) ?>"/>
|
16 |
-
</p>
|
17 |
-
</div> <!-- End options group -->
|
18 |
-
|
19 |
-
<div class="options_group">
|
20 |
-
|
21 |
-
<div class="form-field wpallimport-radio-field">
|
22 |
-
<input type="radio" id="multiple_product_shipping_class_yes" class="switcher" name="is_multiple_product_shipping_class" value="yes" <?php echo 'no' != $post['is_multiple_product_shipping_class'] ? 'checked="checked"': '' ?>/>
|
23 |
-
<label for="multiple_product_shipping_class_yes"><?php _e("Shipping Class", "wpai_woocommerce_addon_plugin"); ?></label>
|
24 |
-
<span class="wpallimport-clear"></span>
|
25 |
-
<div class="switcher-target-multiple_product_shipping_class_yes set_with_xpath">
|
26 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
27 |
-
<?php
|
28 |
-
|
29 |
-
$args = array(
|
30 |
-
'taxonomy' => 'product_shipping_class',
|
31 |
-
'hide_empty' => 0,
|
32 |
-
'show_option_none' => __( 'No shipping class', 'wpai_woocommerce_addon_plugin' ),
|
33 |
-
'name' => 'multiple_product_shipping_class',
|
34 |
-
'id' => 'multiple_product_shipping_class',
|
35 |
-
'selected' => ( ! empty($post['multiple_product_shipping_class']) and $post['multiple_product_shipping_class'] > 0 ) ? $post['multiple_product_shipping_class'] : '',
|
36 |
-
'class' => 'select short'
|
37 |
-
);
|
38 |
-
|
39 |
-
wp_dropdown_categories( $args );
|
40 |
-
?>
|
41 |
-
</span>
|
42 |
-
</div>
|
43 |
-
</div>
|
44 |
-
|
45 |
-
<div class="form-field wpallimport-radio-field">
|
46 |
-
<input type="radio" id="multiple_product_shipping_class_no" class="switcher" name="is_multiple_product_shipping_class" value="no" <?php echo 'no' == $post['is_multiple_product_shipping_class'] ? 'checked="checked"': '' ?>/>
|
47 |
-
<label for="multiple_product_shipping_class_no" style="width: 350px;"><?php _e('Set product shipping class with XPath', 'wpai_woocommerce_addon_plugin' )?></label>
|
48 |
-
<span class="wpallimport-clear"></span>
|
49 |
-
<div class="switcher-target-multiple_product_shipping_class_no set_with_xpath">
|
50 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
51 |
-
<input type="text" class="smaller-text" name="single_product_shipping_class" style="width:300px;" value="<?php echo esc_attr($post['single_product_shipping_class']) ?>"/>
|
52 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('Value should be the slug for the shipping class - \'taxable\', \'shipping\' and \'none\' are the default slugs.', 'wpai_woocommerce_addon_plugin') ?>">?</a>
|
53 |
-
</span>
|
54 |
-
</div>
|
55 |
-
</div>
|
56 |
-
|
57 |
-
</div> <!-- End options group -->
|
58 |
-
</div> <!-- End Product Panel -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
views/admin/import/_tabs/_variations.php
DELETED
@@ -1,780 +0,0 @@
|
|
1 |
-
<div class="panel woocommerce_options_panel" id="variable_product_options" style="display:none;">
|
2 |
-
<div class="woo-add-on-free-edition-notice upgrade_template">
|
3 |
-
<a href="https://www.wpallimport.com/checkout/?edd_action=purchase_collection&taxonomy=download_category&terms=14&utm_source=free-plugin&utm_medium=in-plugin&utm_campaign=woocommerce" 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', 'wpai_woocommerce_addon_plugin');?></a>
|
4 |
-
<p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_import_plugin'); ?></p>
|
5 |
-
</div>
|
6 |
-
<div class="options_group" style="padding-bottom:0px;">
|
7 |
-
|
8 |
-
<p class="form-field wpallimport-radio-field">
|
9 |
-
<input type="radio" id="auto_matching_parent" class="switcher" name="matching_parent" value="auto" <?php echo 'auto' == $post['matching_parent'] ? 'checked="checked"': '' ?>/>
|
10 |
-
<label for="auto_matching_parent" style="width:95%"><?php _e('All my variable products have SKUs or some other unique identifier. Each variation is linked to its parent with its parent\'s SKU or other unique identifier.', 'wpai_woocommerce_addon_plugin' )?></label>
|
11 |
-
</p>
|
12 |
-
<div class="switcher-target-auto_matching_parent" style="padding-left:25px;">
|
13 |
-
<p class="form-field">
|
14 |
-
<label style="width:195px; padding-top:3px;"><?php _e("SKU element for parent", "wpai_woocommerce_addon_plugin"); ?></label>
|
15 |
-
<input type="text" class="short" placeholder="" name="single_product_id" value="<?php echo esc_attr($post['single_product_id']) ?>"/>
|
16 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('SKU column in the below example.', 'wpai_woocommerce_addon_plugin') ?>" style="position:relative;">?</a>
|
17 |
-
</p>
|
18 |
-
<p class="form-field">
|
19 |
-
<label style="width:195px; padding-top:3px;"><?php _e("Parent SKU element for variation", "wpai_woocommerce_addon_plugin"); ?></label>
|
20 |
-
<input type="text" class="short" placeholder="" name="single_product_parent_id" value="<?php echo esc_attr($post['single_product_parent_id']) ?>"/>
|
21 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('Parent SKU column in the below example.', 'wpai_woocommerce_addon_plugin') ?>" style="position:relative;">?</a>
|
22 |
-
</p>
|
23 |
-
<p class="form-field">
|
24 |
-
<strong><?php _e("Example Data For Use With This Option","wpai_woocommerce_addon_plugin");?> </strong> - <a href="http://www.wpallimport.com/wp-content/uploads/2014/10/data-example-1.csv" tatger="_blank"><?php _e("download","wpai_woocommerce_addon_plugin");?></a>
|
25 |
-
<span class="wpallimport-clear"></span>
|
26 |
-
<img src="<?php echo PMWI_ROOT_URL; ?>/static/img/data-example-1.png"/>
|
27 |
-
</p>
|
28 |
-
</div>
|
29 |
-
|
30 |
-
<div class="wpallimport-clear" style="margin-top:5px;"></div>
|
31 |
-
|
32 |
-
<p class="form-field wpallimport-radio-field">
|
33 |
-
<input type="radio" id="auto_matching_parent_first_is_parent_id" class="switcher" name="matching_parent" value="first_is_parent_id" <?php echo 'first_is_parent_id' == $post['matching_parent'] ? 'checked="checked"': '' ?> style="float:left;"/>
|
34 |
-
<label for="auto_matching_parent_first_is_parent_id" style="width:95%"><?php _e('All products with variations are grouped with a unique identifier that is the same for each variation and unique for each product.', 'wpai_woocommerce_addon_plugin' )?></label>
|
35 |
-
</p>
|
36 |
-
|
37 |
-
<div class="switcher-target-auto_matching_parent_first_is_parent_id" style="padding-left:25px;">
|
38 |
-
<p class="form-field">
|
39 |
-
<label style="width:105px; padding-top: 3px;"><?php _e("Unique Identifier", "wpai_woocommerce_addon_plugin"); ?></label>
|
40 |
-
<input type="text" class="short" placeholder="" name="single_product_id_first_is_parent_id" value="<?php echo esc_attr($post['single_product_id_first_is_parent_id']) ?>"/>
|
41 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('Group ID column in the below example.', 'wpai_woocommerce_addon_plugin') ?>" style="position:relative;">?</a>
|
42 |
-
</p>
|
43 |
-
<p class="form-field">
|
44 |
-
<strong><?php _e("Example Data For Use With This Option","wpai_woocommerce_addon_plugin");?> </strong> - <a href="http://www.wpallimport.com/wp-content/uploads/2014/10/data-example-2.csv" tatger="_blank"><?php _e("download","wpai_woocommerce_addon_plugin");?></a>
|
45 |
-
<span class="wpallimport-clear"></span>
|
46 |
-
<img src="<?php echo PMWI_ROOT_URL; ?>/static/img/data-example-2.png"/>
|
47 |
-
</p>
|
48 |
-
</div>
|
49 |
-
|
50 |
-
<div class="wpallimport-clear" style="margin-top:5px;"></div>
|
51 |
-
|
52 |
-
<p class="form-field wpallimport-radio-field">
|
53 |
-
<input type="radio" id="auto_matching_parent_first_is_parent_title" class="switcher" name="matching_parent" value="first_is_parent_title" <?php echo 'first_is_parent_title' == $post['matching_parent'] ? 'checked="checked"': '' ?> style="float:left;"/>
|
54 |
-
<label for="auto_matching_parent_first_is_parent_title" style="width:95%"><?php _e('All variations for a particular product have the same title as the parent product.', 'wpai_woocommerce_addon_plugin' )?></label>
|
55 |
-
</p>
|
56 |
-
|
57 |
-
<div class="switcher-target-auto_matching_parent_first_is_parent_title" style="padding-left:25px;">
|
58 |
-
<p class="form-field">
|
59 |
-
<label style="width:85px; padding-top: 3px;"><?php _e("Product Title", "wpai_woocommerce_addon_plugin"); ?></label>
|
60 |
-
<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']) : ''); ?>"/>
|
61 |
-
</p>
|
62 |
-
<p class="form-field">
|
63 |
-
<strong><?php _e("Example Data For Use With This Option","wpai_woocommerce_addon_plugin");?> </strong> - <a href="http://www.wpallimport.com/wp-content/uploads/2014/10/data-example-3.csv" tatger="_blank"><?php _e("download","wpai_woocommerce_addon_plugin");?></a>
|
64 |
-
<span class="wpallimport-clear"></span>
|
65 |
-
<img src="<?php echo PMWI_ROOT_URL; ?>/static/img/data-example-3.png"/>
|
66 |
-
</p>
|
67 |
-
</div>
|
68 |
-
|
69 |
-
<div class="wpallimport-clear" style="margin-top:5px;"></div>
|
70 |
-
|
71 |
-
<p class="form-field wpallimport-radio-field">
|
72 |
-
<input type="radio" id="auto_matching_parent_first_is_variation" class="switcher" name="matching_parent" value="first_is_variation" <?php echo 'first_is_variation' == $post['matching_parent'] ? 'checked="checked"': '' ?> style="float:left;"/>
|
73 |
-
<label for="auto_matching_parent_first_is_variation" style="width:95%"><?php _e('All variations for a particular product have the same title. There are no parent products.', 'wpai_woocommerce_addon_plugin' )?></label>
|
74 |
-
</p>
|
75 |
-
<div class="switcher-target-auto_matching_parent_first_is_variation" style="padding-left:25px;">
|
76 |
-
<p class="form-field">
|
77 |
-
<label style="width:85px; padding-top: 3px;"><?php _e("Product Title"); ?></label>
|
78 |
-
<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']) : ''); ?>"/>
|
79 |
-
</p>
|
80 |
-
<p class="form-field">
|
81 |
-
<strong><?php _e("Example Data For Use With This Option","wpai_woocommerce_addon_plugin");?> </strong> - <a href="http://www.wpallimport.com/wp-content/uploads/2014/10/data-example-4.csv" tatger="_blank"><?php _e("download","wpai_woocommerce_addon_plugin");?></a>
|
82 |
-
<span class="wpallimport-clear"></span>
|
83 |
-
<img src="<?php echo PMWI_ROOT_URL; ?>/static/img/data-example-4.png"/>
|
84 |
-
</p>
|
85 |
-
</div>
|
86 |
-
|
87 |
-
<div class="wpallimport-clear" style="margin-top:5px;"></div>
|
88 |
-
|
89 |
-
<p class="form-field wpallimport-radio-field">
|
90 |
-
<input type="radio" id="xml_matching_parent" class="switcher" name="matching_parent" value="xml" <?php echo 'xml' == $post['matching_parent'] ? 'checked="checked"': '' ?> style="float:left;"/>
|
91 |
-
<label for="xml_matching_parent" style="width:350px;"><?php _e('I\'m importing XML and my variations are child XML elements', 'wpai_woocommerce_addon_plugin' )?> </label>
|
92 |
-
</p>
|
93 |
-
|
94 |
-
<div class="switcher-target-xml_matching_parent" style="padding-left:25px; position:relative;">
|
95 |
-
|
96 |
-
<div class="input">
|
97 |
-
|
98 |
-
<p class="form-field"><a href="http://youtu.be/F1NX4po0dsc" target="_blank"><?php _e("Video Example", "wpai_woocommerce_addon_plugin");?></a></p>
|
99 |
-
|
100 |
-
<p class="form-field">
|
101 |
-
<label style="width:150px;"><?php _e("Variations XPath", "wpai_woocommerce_addon_plugin"); ?></label>
|
102 |
-
<input type="text" class="short" placeholder="" id="variations_xpath" name="variations_xpath" value="<?php echo esc_attr($post['variations_xpath']) ?>" style="width:370px !important;"/> <a href="javascript:void(0);" id="toggle_xml_tree"><?php _e("Open XML Tree","wpai_woocommerce_addon_plugin"); ?></a>
|
103 |
-
<div class="wpallimport-clear"></div>
|
104 |
-
<span id="variations_console"></span>
|
105 |
-
</p>
|
106 |
-
|
107 |
-
<div style="margin-right:2%;">
|
108 |
-
|
109 |
-
<!--div class="options_group">
|
110 |
-
<p class="form-field wpallimport-radio-field">
|
111 |
-
<label style="border-right:none;" for="_variable_virtual"><?php _e('Virtual', 'wpai_woocommerce_addon_plugin');?> </label>
|
112 |
-
<input type="checkbox" name="_variable_virtual" id="_variable_virtual" style="position:relative; top:2px; margin-left:5px;" <?php echo ($post['_variable_virtual']) ? 'checked="checked"' : ''; ?>>
|
113 |
-
</p>
|
114 |
-
<p class="form-field wpallimport-radio-field">
|
115 |
-
<label for="_variable_downloadable" class="show_if_simple"><?php _e('Downloadable','wpai_woocommerce_addon_plugin');?></label>
|
116 |
-
<input type="checkbox" name="_variable_downloadable" id="_variable_downloadable" style="position:relative; top:2px; margin-left:5px;" <?php echo ($post['_variable_downloadable']) ? 'checked="checked"' : ''; ?>>
|
117 |
-
</p>
|
118 |
-
</div-->
|
119 |
-
|
120 |
-
<div class="options_group">
|
121 |
-
<p class="form-field">
|
122 |
-
<label style="width:150px;"><?php _e('SKU','wpai_woocommerce_addon_plugin');?></label>
|
123 |
-
<input type="text" value="<?php echo esc_attr($post['variable_sku']) ?>" style="" name="variable_sku" class="short">
|
124 |
-
<span class="use_parent">
|
125 |
-
<input type="hidden" name="variable_sku_add_parent" value="0"/>
|
126 |
-
<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"' : ''; ?>>
|
127 |
-
<label style="width: 160px;" for="variable_sku_add_parent"><?php _e("Add value to the parent SKU","wpai_woocommerce_addon_plugin"); ?></label>
|
128 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('Enable this checkbox to combine SKU from parent and variation products.', 'wpai_woocommerce_addon_plugin') ?>" style="position:relative; top:2px;">?</a>
|
129 |
-
</span>
|
130 |
-
</p>
|
131 |
-
<p class="form-field">
|
132 |
-
<label style="width:150px;"><?php _e('Image','wpai_woocommerce_addon_plugin');?></label>
|
133 |
-
<input type="text" value="<?php echo esc_attr($post['variable_image']) ?>" style="" name="variable_image" class="short">
|
134 |
-
<span class="use_parent">
|
135 |
-
<input type="hidden" name="variable_image_use_parent" value="0"/>
|
136 |
-
<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"' : ''; ?>>
|
137 |
-
<label for="variable_image_use_parent" style="top:0px;"><?php _e("XPath Is From Parent","wpai_woocommerce_addon_plugin"); ?></label>
|
138 |
-
</span>
|
139 |
-
</p>
|
140 |
-
<p class="form-field">
|
141 |
-
<label style="width:150px;"><?php _e('Variation Description','wpai_woocommerce_addon_plugin');?></label>
|
142 |
-
<input type="text" value="<?php echo esc_attr($post['variable_description']) ?>" style="" name="variable_description" class="short">
|
143 |
-
<span class="use_parent">
|
144 |
-
<input type="hidden" name="variable_description_use_parent" value="0"/>
|
145 |
-
<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"' : ''; ?>>
|
146 |
-
<label for="variable_description_use_parent" style="top:0px;"><?php _e("XPath Is From Parent","wpai_woocommerce_addon_plugin"); ?></label>
|
147 |
-
</span>
|
148 |
-
</p>
|
149 |
-
</div>
|
150 |
-
|
151 |
-
<div class="options_group">
|
152 |
-
<p class="form-field wpallimport-radio-field">
|
153 |
-
<label><?php _e("Manage stock?"); ?></label>
|
154 |
-
</p>
|
155 |
-
<p class="form-field wpallimport-radio-field">
|
156 |
-
<input type="radio" id="is_variable_product_manage_stock_yes" class="switcher" name="is_variable_product_manage_stock" value="yes" <?php echo 'yes' == $post['is_variable_product_manage_stock'] ? 'checked="checked"': '' ?>/>
|
157 |
-
<label for="is_variable_product_manage_stock_yes"><?php _e("Yes"); ?></label>
|
158 |
-
</p>
|
159 |
-
<p class="form-field wpallimport-radio-field">
|
160 |
-
<input type="radio" id="is_variable_product_manage_stock_no" class="switcher" name="is_variable_product_manage_stock" value="no" <?php echo 'no' == $post['is_variable_product_manage_stock'] ? 'checked="checked"': '' ?>/>
|
161 |
-
<label for="is_variable_product_manage_stock_no"><?php _e("No"); ?></label>
|
162 |
-
</p>
|
163 |
-
<div class="form-field wpallimport-radio-field">
|
164 |
-
<input type="radio" id="is_variable_product_manage_stock_xpath" class="switcher" name="is_variable_product_manage_stock" value="xpath" <?php echo 'xpath' == $post['is_variable_product_manage_stock'] ? 'checked="checked"': '' ?>/>
|
165 |
-
<label for="is_variable_product_manage_stock_xpath"><?php _e('Set with XPath', 'wpai_woocommerce_addon_plugin' )?></label>
|
166 |
-
<span class="wpallimport-clear"></span>
|
167 |
-
<div class="switcher-target-is_variable_product_manage_stock_xpath set_with_xpath" style="width:390px;">
|
168 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
169 |
-
<input type="text" class="smaller-text" name="single_variable_product_manage_stock" style="width:345px;" value="<?php echo esc_attr($post['single_variable_product_manage_stock']) ?>"/>
|
170 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'yes\', \'no\').', 'wpai_woocommerce_addon_plugin') ?>" style="position:relative; top:2px;">?</a>
|
171 |
-
<span class="use_parent" style="float:right; top: 2px;">
|
172 |
-
<input type="hidden" name="single_variable_product_manage_stock_use_parent" value="0"/>
|
173 |
-
<input type="checkbox" name="single_variable_product_manage_stock_use_parent" id="single_variable_product_manage_stock_use_parent" style="position:relative; top:1px; margin-right:5px; float: left;" <?php echo ($post['single_variable_product_manage_stock_use_parent']) ? 'checked="checked"' : ''; ?>>
|
174 |
-
<label for="single_variable_product_manage_stock_use_parent" style="top:3px;"><?php _e("XPath Is From Parent","wpai_woocommerce_addon_plugin"); ?></label>
|
175 |
-
</span>
|
176 |
-
</span>
|
177 |
-
</div>
|
178 |
-
</div>
|
179 |
-
</div>
|
180 |
-
|
181 |
-
<div class="options_group variable_stock_fields">
|
182 |
-
<p class="form-field">
|
183 |
-
<label style="width:150px;"><?php _e('Stock Qty', 'wpai_woocommerce_addon_plugin');?></label>
|
184 |
-
<input type="text" value="<?php echo esc_attr($post['variable_stock']) ?>" style="" name="variable_stock" class="short">
|
185 |
-
<span class="use_parent">
|
186 |
-
<input type="hidden" name="variable_stock_use_parent" value="0"/>
|
187 |
-
<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"' : ''; ?>>
|
188 |
-
<label for="variable_stock_use_parent" style="width:120px;"><?php _e("XPath Is From Parent","wpai_woocommerce_addon_plugin"); ?></label>
|
189 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('Enable this checkbox to determine XPath from parent element.', 'wpai_woocommerce_addon_plugin') ?>" style="position:relative; top:2px;">?</a>
|
190 |
-
</span>
|
191 |
-
</p>
|
192 |
-
</div>
|
193 |
-
|
194 |
-
<div class="options_group">
|
195 |
-
<p class="form-field wpallimport-radio-field">
|
196 |
-
<label><?php _e("Stock status"); ?></label>
|
197 |
-
</p>
|
198 |
-
<p class="form-field wpallimport-radio-field">
|
199 |
-
<input type="radio" id="variable_stock_status_in_stock" class="switcher" name="variable_stock_status" value="instock" <?php echo 'instock' == $post['variable_stock_status'] ? 'checked="checked"': '' ?>/>
|
200 |
-
<label for="variable_stock_status_in_stock"><?php _e("In stock"); ?></label>
|
201 |
-
</p>
|
202 |
-
<p class="form-field wpallimport-radio-field">
|
203 |
-
<input type="radio" id="variable_stock_status_out_of_stock" class="switcher" name="variable_stock_status" value="outofstock" <?php echo 'outofstock' == $post['variable_stock_status'] ? 'checked="checked"': '' ?>/>
|
204 |
-
<label for="variable_stock_status_out_of_stock"><?php _e("Out of stock"); ?></label>
|
205 |
-
</p>
|
206 |
-
<p class="form-field wpallimport-radio-field">
|
207 |
-
<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"': '' ?>/>
|
208 |
-
<label for="variable_stock_status_auto" style="width:100px;"><?php _e("Set automatically"); ?></label>
|
209 |
-
<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.', 'wpai_woocommerce_addon_plugin') ?>" style="position:relative; top:3px;">?</a>
|
210 |
-
</p>
|
211 |
-
<div class="form-field wpallimport-radio-field">
|
212 |
-
<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"': '' ?>/>
|
213 |
-
<label for="variable_stock_status_xpath"><?php _e('Set with XPath', 'wpai_woocommerce_addon_plugin' )?></label>
|
214 |
-
<span class="wpallimport-clear"></span>
|
215 |
-
<div class="switcher-target-variable_stock_status_xpath set_with_xpath" style="width:390px;">
|
216 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
217 |
-
<input type="text" class="smaller-text" name="single_variable_stock_status" style="width:345px;" value="<?php echo esc_attr($post['single_variable_stock_status']) ?>"/>
|
218 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'instock\', \'outofstock\').', 'wpai_woocommerce_addon_plugin') ?>" style="position:relative; top:2px;">?</a>
|
219 |
-
</span>
|
220 |
-
</div>
|
221 |
-
</div>
|
222 |
-
</div>
|
223 |
-
|
224 |
-
<div class="options_group">
|
225 |
-
<p class="form-field">
|
226 |
-
<label style="width:150px;"><?php _e('Regular Price','wpai_woocommerce_addon_plugin');?> (<?php echo get_woocommerce_currency_symbol(); ?>)</label>
|
227 |
-
<input type="text" value="<?php echo esc_attr($post['variable_regular_price']) ?>" style="" name="variable_regular_price" class="short">
|
228 |
-
<span class="use_parent">
|
229 |
-
<input type="hidden" name="variable_regular_price_use_parent" value="0"/>
|
230 |
-
<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"' : ''; ?>>
|
231 |
-
<label for="variable_regular_price_use_parent" style="top:1px; position: relative;"><?php _e("XPath Is From Parent","wpai_woocommerce_addon_plugin"); ?></label>
|
232 |
-
</span>
|
233 |
-
</p>
|
234 |
-
<p class="form-field">
|
235 |
-
<label style="width:150px;"><?php _e('Sale Price','wpai_woocommerce_addon_plugin');?> (<?php echo get_woocommerce_currency_symbol(); ?>)</label>
|
236 |
-
<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>
|
237 |
-
<input type="text" value="<?php echo esc_attr($post['variable_sale_price']) ?>" style="" name="variable_sale_price" class="short">
|
238 |
-
<input type="hidden" name="is_variable_sale_price_shedule" value="<?php echo esc_attr($post['is_variable_sale_price_shedule']) ?>"/>
|
239 |
-
<span class="use_parent">
|
240 |
-
<input type="hidden" name="variable_sale_price_use_parent" value="0"/>
|
241 |
-
<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"' : ''; ?>>
|
242 |
-
<label for="variable_sale_price_use_parent"><?php _e("XPath Is From Parent","wpai_woocommerce_addon_plugin"); ?></label>
|
243 |
-
</span>
|
244 |
-
</p>
|
245 |
-
<?php if ( class_exists('woocommerce_wholesale_pricing') ):?>
|
246 |
-
<p class="form-field">
|
247 |
-
<label style="width:150px;"><?php _e("Wholesale Price (".get_woocommerce_currency_symbol().")"); ?></label>
|
248 |
-
<input type="text" class="short" name="variable_whosale_price" value="<?php echo esc_attr($post['variable_whosale_price']) ?>"/>
|
249 |
-
<span class="use_parent">
|
250 |
-
<input type="hidden" name="variable_whosale_price_use_parent" value="0"/>
|
251 |
-
<input type="checkbox" name="variable_whosale_price_use_parent" id="variable_whosale_price_use_parent" style="position:relative; top:1px; margin-left:5px; margin-right:5px;" <?php echo ($post['variable_whosale_price_use_parent']) ? 'checked="checked"' : ''; ?>>
|
252 |
-
<label for="variable_whosale_price_use_parent"><?php _e("XPath Is From Parent","wpai_woocommerce_addon_plugin"); ?></label>
|
253 |
-
</span>
|
254 |
-
</p>
|
255 |
-
<?php endif; ?>
|
256 |
-
</div>
|
257 |
-
|
258 |
-
<div class="options_group" <?php if ( ! $post['is_variable_sale_price_shedule']):?>style="display:none;"<?php endif; ?> id="variable_sale_price_range">
|
259 |
-
<p class="form-field">
|
260 |
-
<span style="vertical-align:middle">
|
261 |
-
<label style="width:150px;"><?php _e("Variable Sale Price Dates", "wpai_woocommerce_addon_plugin"); ?></label>
|
262 |
-
<span class="use_parent">
|
263 |
-
<input type="hidden" name="variable_sale_dates_use_parent" value="0"/>
|
264 |
-
<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"' : ''; ?>>
|
265 |
-
<label for="variable_sale_dates_use_parent"><?php _e("XPath Is From Parent","wpai_woocommerce_addon_plugin"); ?></label>
|
266 |
-
</span>
|
267 |
-
<br>
|
268 |
-
<input type="text" class="datepicker" name="variable_sale_price_dates_from" value="<?php echo esc_attr($post['variable_sale_price_dates_from']) ?>" style="float:none;"/>
|
269 |
-
<?php _e('and', 'wpai_woocommerce_addon_plugin') ?>
|
270 |
-
<input type="text" class="datepicker" name="variable_sale_price_dates_to" value="<?php echo esc_attr($post['variable_sale_price_dates_to']) ?>" style="float:none;"/>
|
271 |
-
<a id="cancel_variable_regular_price_shedule" href="javascript:void(0);"><?php _e('cancel');?></a>
|
272 |
-
</span>
|
273 |
-
</p>
|
274 |
-
</div>
|
275 |
-
|
276 |
-
<div class="options_group" id="variable_virtual">
|
277 |
-
|
278 |
-
<p class="form-field wpallimport-radio-field">
|
279 |
-
<input type="radio" id="is_variable_product_virtual_yes" class="switcher" name="is_variable_product_virtual" value="yes" <?php echo 'yes' == $post['is_variable_product_virtual'] ? 'checked="checked"': '' ?>/>
|
280 |
-
<label for="is_variable_product_virtual_yes"><?php _e("Virtual"); ?></label>
|
281 |
-
</p>
|
282 |
-
<p class="form-field wpallimport-radio-field">
|
283 |
-
<input type="radio" id="is_variable_product_virtual_no" class="switcher" name="is_variable_product_virtual" value="no" <?php echo 'no' == $post['is_variable_product_virtual'] ? 'checked="checked"': '' ?>/>
|
284 |
-
<label for="is_variable_product_virtual_no"><?php _e("Not Virtual"); ?></label>
|
285 |
-
</p>
|
286 |
-
<div class="form-field wpallimport-radio-field">
|
287 |
-
<input type="radio" id="is_variable_product_virtual_xpath" class="switcher" name="is_variable_product_virtual" value="xpath" <?php echo 'xpath' == $post['is_variable_product_virtual'] ? 'checked="checked"': '' ?>/>
|
288 |
-
<label for="is_variable_product_virtual_xpath"><?php _e('Set with XPath', 'wpai_woocommerce_addon_plugin' )?></label>
|
289 |
-
<span class="wpallimport-clear"></span>
|
290 |
-
<div class="switcher-target-is_variable_product_virtual_xpath set_with_xpath" style="width:390px;">
|
291 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
292 |
-
<input type="text" class="smaller-text" name="single_variable_product_virtual" style="width:300px;" value="<?php echo esc_attr($post['single_variable_product_virtual']) ?>"/>
|
293 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'yes\', \'no\').', 'wpai_woocommerce_addon_plugin') ?>" style="position:relative; top:2px;">?</a>
|
294 |
-
<span class="use_parent" style="float:right; top: 2px;">
|
295 |
-
<input type="hidden" name="single_variable_product_virtual_use_parent" value="0"/>
|
296 |
-
<input type="checkbox" name="single_variable_product_virtual_use_parent" id="single_variable_product_virtual_use_parent" style="position:relative; top:1px; margin-right:5px; float: left;" <?php echo ($post['single_variable_product_virtual_use_parent']) ? 'checked="checked"' : ''; ?>>
|
297 |
-
<label for="single_variable_product_virtual_use_parent" style="top:3px;"><?php _e("XPath Is From Parent","wpai_woocommerce_addon_plugin"); ?></label>
|
298 |
-
</span>
|
299 |
-
</span>
|
300 |
-
</div>
|
301 |
-
</div>
|
302 |
-
</div>
|
303 |
-
|
304 |
-
<div class="options_group" id="variable_dimensions">
|
305 |
-
<p class="form-field">
|
306 |
-
<label style="width:150px;"><?php _e('Weight','wpai_woocommerce_addon_plugin');?></label>
|
307 |
-
<input type="text" placeholder="0.00" value="<?php echo esc_attr($post['variable_weight']) ?>" style="" name="variable_weight" class="short">
|
308 |
-
<span class="use_parent">
|
309 |
-
<input type="hidden" name="variable_weight_use_parent" value="0"/>
|
310 |
-
<input type="checkbox" name="variable_weight_use_parent" id="variable_weight_use_parent" style="position:relative; top:1px; margin-left:5px; margin-right:5px;" <?php echo ($post['variable_weight_use_parent']) ? 'checked="checked"' : ''; ?>>
|
311 |
-
<label for="variable_weight_use_parent"><?php _e("XPath Is From Parent","wpai_woocommerce_addon_plugin"); ?></label>
|
312 |
-
</span>
|
313 |
-
</p>
|
314 |
-
<p class="form-field">
|
315 |
-
<label for"product_length"=""><?php _e('Dimensions (L×W×H)','wpai_woocommerce_addon_plugin');?></label>
|
316 |
-
<span class="use_parent">
|
317 |
-
<input type="hidden" name="variable_dimensions_use_parent" value="0"/>
|
318 |
-
<input type="checkbox" name="variable_dimensions_use_parent" id="variable_dimensions_use_parent" style="position:relative; top:1px; margin-left:5px; margin-right:5px;" <?php echo ($post['variable_dimensions_use_parent']) ? 'checked="checked"' : ''; ?>>
|
319 |
-
<label for="variable_dimensions_use_parent"><?php _e("XPath Is From Parent","wpai_woocommerce_addon_plugin"); ?></label>
|
320 |
-
</span>
|
321 |
-
<br>
|
322 |
-
<input type="text" placeholder="0" value="<?php echo esc_attr($post['variable_length']) ?>" name="variable_length" class="short" style="margin-right:5px;">
|
323 |
-
<input type="text" placeholder="0" value="<?php echo esc_attr($post['variable_width']) ?>" name="variable_width" class="short" style="margin-right:5px;">
|
324 |
-
<input type="text" placeholder="0" value="<?php echo esc_attr($post['variable_height']) ?>" style="" name="variable_height" class="short">
|
325 |
-
</p>
|
326 |
-
</div>
|
327 |
-
|
328 |
-
<div class="options_group">
|
329 |
-
|
330 |
-
<!-- Shipping class -->
|
331 |
-
<div class="form-field wpallimport-radio-field">
|
332 |
-
<input type="radio" id="multiple_variable_product_shipping_class_yes" class="switcher" name="is_multiple_variable_product_shipping_class" value="yes" <?php echo 'no' != $post['is_multiple_variable_product_shipping_class'] ? 'checked="checked"': '' ?>/>
|
333 |
-
<label for="multiple_variable_product_shipping_class_yes" style="width:150px;"><?php _e("Shipping Class"); ?></label>
|
334 |
-
<span class="wpallimport-clear"></span>
|
335 |
-
<div class="switcher-target-multiple_variable_product_shipping_class_yes set_with_xpath">
|
336 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
337 |
-
<?php
|
338 |
-
$classes = get_the_terms( 0, 'product_shipping_class' );
|
339 |
-
if ( $classes && ! is_wp_error( $classes ) ) $current_shipping_class = current($classes)->term_id; else $current_shipping_class = '';
|
340 |
-
|
341 |
-
$args = array(
|
342 |
-
'taxonomy' => 'product_shipping_class',
|
343 |
-
'hide_empty' => 0,
|
344 |
-
'show_option_none' => __( 'No shipping class', 'wpai_woocommerce_addon_plugin' ),
|
345 |
-
'name' => 'multiple_variable_product_shipping_class',
|
346 |
-
'id' => 'multiple_variable_product_shipping_class',
|
347 |
-
'selected' => (!empty($post['multiple_variable_product_shipping_class'])) ? $post['multiple_variable_product_shipping_class'] : $current_shipping_class,
|
348 |
-
'class' => 'select short'
|
349 |
-
);
|
350 |
-
|
351 |
-
wp_dropdown_categories( $args );
|
352 |
-
?>
|
353 |
-
</span>
|
354 |
-
</div>
|
355 |
-
</div>
|
356 |
-
<!-- Shipping class -->
|
357 |
-
<div class="form-field wpallimport-radio-field">
|
358 |
-
<input type="radio" id="multiple_variable_product_shipping_class_no" class="switcher" name="is_multiple_variable_product_shipping_class" value="no" <?php echo 'no' == $post['is_multiple_variable_product_shipping_class'] ? 'checked="checked"': '' ?>/>
|
359 |
-
<label for="multiple_variable_product_shipping_class_no" style="width:300px;"><?php _e('Set product shipping class with XPath', 'wpai_woocommerce_addon_plugin' )?></label>
|
360 |
-
<span class="wpallimport-clear"></span>
|
361 |
-
<div class="switcher-target-multiple_variable_product_shipping_class_no set_with_xpath">
|
362 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
363 |
-
<input type="text" class="smaller-text" name="single_variable_product_shipping_class" style="width:300px;" value="<?php echo esc_attr($post['single_variable_product_shipping_class']) ?>"/>
|
364 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'taxable\', \'shipping\', \'none\').', 'wpai_woocommerce_addon_plugin') ?>" style="position: relative; top: -10px;">?</a>
|
365 |
-
<span class="use_parent">
|
366 |
-
<input type="hidden" name="single_variable_product_shipping_class_use_parent" value="0"/>
|
367 |
-
<input type="checkbox" name="single_variable_product_shipping_class_use_parent" id="single_variable_product_shipping_class_use_parent" style="position:relative; top:2px; margin-left:5px; margin-right:5px;" <?php echo ($post['single_variable_product_shipping_class_use_parent']) ? 'checked="checked"' : ''; ?>>
|
368 |
-
<label for="single_variable_product_shipping_class_use_parent" style="top:2px; position: relative;"><?php _e("XPath Is From Parent","wpai_woocommerce_addon_plugin"); ?></label>
|
369 |
-
</span>
|
370 |
-
</span>
|
371 |
-
</div>
|
372 |
-
</div>
|
373 |
-
</div>
|
374 |
-
|
375 |
-
<div class="options_group">
|
376 |
-
<!-- Tax class -->
|
377 |
-
<div class="form-field wpallimport-radio-field">
|
378 |
-
<input type="radio" id="multiple_variable_product_tax_class_yes" class="switcher" name="is_multiple_variable_product_tax_class" value="yes" <?php echo 'no' != $post['is_multiple_variable_product_tax_class'] ? 'checked="checked"': '' ?>/>
|
379 |
-
<label for="multiple_variable_product_tax_class_yes" style="width:150px;"><?php _e("Tax Class", "wpai_woocommerce_addon_plugin"); ?></label>
|
380 |
-
<span class="wpallimport-clear"></span>
|
381 |
-
<div class="switcher-target-multiple_variable_product_tax_class_yes set_with_xpath">
|
382 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
383 |
-
<?php
|
384 |
-
$tax_classes = array_filter( array_map( 'trim', explode( "\n", get_option( 'woocommerce_tax_classes' ) ) ) );
|
385 |
-
$classes_options = array();
|
386 |
-
$classes_options[''] = __( 'Standard', 'wpai_woocommerce_addon_plugin' );
|
387 |
-
if ( $tax_classes )
|
388 |
-
foreach ( $tax_classes as $class )
|
389 |
-
$classes_options[ sanitize_title( $class ) ] = esc_html( $class );
|
390 |
-
?>
|
391 |
-
<select class="select short" name="multiple_variable_product_tax_class">
|
392 |
-
<option value="parent" <?php echo 'parent' == $post['multiple_variable_product_tax_class'] ? 'selected="selected"': '' ?>><?php _e('Same as parent', 'wpai_woocommerce_addon_plugin');?></option>
|
393 |
-
<?php foreach ($classes_options as $key => $value):?>
|
394 |
-
<option value="<?php echo $key; ?>" <?php echo $key == $post['multiple_variable_product_tax_class'] ? 'selected="selected"': '' ?>><?php echo $value; ?></option>
|
395 |
-
<?php endforeach; ?>
|
396 |
-
</select>
|
397 |
-
</span>
|
398 |
-
</div>
|
399 |
-
</div>
|
400 |
-
<!-- Tax class -->
|
401 |
-
<div class="form-field wpallimport-radio-field">
|
402 |
-
<input type="radio" id="multiple_variable_product_tax_class_no" class="switcher" name="is_multiple_variable_product_tax_class" value="no" <?php echo 'no' == $post['is_multiple_variable_product_tax_class'] ? 'checked="checked"': '' ?>/>
|
403 |
-
<label for="multiple_variable_product_tax_class_no" style="width: 300px;"><?php _e('Set product tax class with XPath', 'wpai_woocommerce_addon_plugin' )?></label>
|
404 |
-
<span class="wpallimport-clear"></span>
|
405 |
-
<div class="switcher-target-multiple_variable_product_tax_class_no set_with_xpath">
|
406 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
407 |
-
<input type="text" class="smaller-text" name="single_variable_product_tax_class" style="width:300px;" value="<?php echo esc_attr($post['single_variable_product_tax_class']) ?>"/>
|
408 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'reduced-rate\', \'zero-rate\').', 'wpai_woocommerce_addon_plugin') ?>" style="position: relative; top:-10px;">?</a>
|
409 |
-
<span class="use_parent">
|
410 |
-
<input type="hidden" name="single_variable_product_tax_class_use_parent" value="0"/>
|
411 |
-
<input type="checkbox" name="single_variable_product_tax_class_use_parent" id="single_variable_product_tax_class_use_parent" style="position:relative; top:2px; margin-left:5px; margin-right:5px;" <?php echo ($post['single_variable_product_tax_class_use_parent']) ? 'checked="checked"' : ''; ?>>
|
412 |
-
<label for="single_variable_product_tax_class_use_parent" style="top:1px; position: relative;"><?php _e("XPath Is From Parent","wpai_woocommerce_addon_plugin"); ?></label>
|
413 |
-
</span>
|
414 |
-
</span>
|
415 |
-
</div>
|
416 |
-
</div>
|
417 |
-
|
418 |
-
</div>
|
419 |
-
|
420 |
-
<!-- Downloadable -->
|
421 |
-
<div class="options_group">
|
422 |
-
<p class="form-field wpallimport-radio-field">
|
423 |
-
<input type="radio" id="is_variable_product_downloadable_yes" class="switcher" name="is_variable_product_downloadable" value="yes" <?php echo 'yes' == $post['is_variable_product_downloadable'] ? 'checked="checked"': '' ?>/>
|
424 |
-
<label for="is_variable_product_downloadable_yes"><?php _e("Downloadable"); ?></label>
|
425 |
-
</p>
|
426 |
-
<p class="form-field wpallimport-radio-field">
|
427 |
-
<input type="radio" id="is_variable_product_downloadable_no" class="switcher" name="is_variable_product_downloadable" value="no" <?php echo 'no' == $post['is_variable_product_downloadable'] ? 'checked="checked"': '' ?>/>
|
428 |
-
<label for="is_variable_product_downloadable_no"><?php _e("Not Downloadable"); ?></label>
|
429 |
-
</p>
|
430 |
-
<div class="form-field wpallimport-radio-field">
|
431 |
-
<input type="radio" id="is_variable_product_downloadable_xpath" class="switcher" name="is_variable_product_downloadable" value="xpath" <?php echo 'xpath' == $post['is_variable_product_downloadable'] ? 'checked="checked"': '' ?>/>
|
432 |
-
<label for="is_variable_product_downloadable_xpath"><?php _e('Set with XPath', 'wpai_woocommerce_addon_plugin' )?></label>
|
433 |
-
<span class="wpallimport-clear"></span>
|
434 |
-
<div class="switcher-target-is_variable_product_downloadable_xpath set_with_xpath" style="width:390px;">
|
435 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
436 |
-
<input type="text" class="smaller-text" name="single_variable_product_downloadable" style="width:345px;" value="<?php echo esc_attr($post['single_variable_product_downloadable']) ?>"/>
|
437 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'yes\', \'no\').', 'wpai_woocommerce_addon_plugin') ?>" style="position:relative; top:2px;">?</a>
|
438 |
-
<span class="use_parent" style="float:right; top: 2px;">
|
439 |
-
<input type="hidden" name="single_variable_product_downloadable_use_parent" value="0"/>
|
440 |
-
<input type="checkbox" name="single_variable_product_downloadable_use_parent" id="single_variable_product_downloadable_use_parent" style="position:relative; top:1px; margin-right:5px; float: left;" <?php echo ($post['single_variable_product_downloadable_use_parent']) ? 'checked="checked"' : ''; ?>>
|
441 |
-
<label for="single_variable_product_downloadable_use_parent" style="top:3px;"><?php _e("XPath Is From Parent","wpai_woocommerce_addon_plugin"); ?></label>
|
442 |
-
</span>
|
443 |
-
</span>
|
444 |
-
</div>
|
445 |
-
</div>
|
446 |
-
</div>
|
447 |
-
|
448 |
-
<div class="options_group variable_downloadable">
|
449 |
-
<p class="form-field">
|
450 |
-
<label style="width:150px;"><?php _e('File paths','wpai_woocommerce_addon_plugin');?></label>
|
451 |
-
<input type="text" value="<?php echo esc_attr($post['variable_file_paths']) ?>" name="variable_file_paths" class="short" style="width:60% !important;">
|
452 |
-
<input type="text" class="small" name="variable_product_files_delim" value="<?php echo esc_attr($post['variable_product_files_delim']) ?>" style="width:5% !important;text-align:center; margin-left:5px;"/>
|
453 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('File paths/URLs, comma separated. The delimiter option uses when xml element contains few paths/URLs (http://files.com/1.doc, http://files.com/2.doc).', 'wpai_woocommerce_addon_plugin') ?>">?</a>
|
454 |
-
</p>
|
455 |
-
<p class="form-field">
|
456 |
-
<label style="width:150px;"><?php _e("File names"); ?></label>
|
457 |
-
<input type="text" class="short" name="variable_file_names" value="<?php echo esc_attr($post['variable_file_names']) ?>" style="width:60% !important;"/>
|
458 |
-
<input type="text" class="small" name="variable_product_files_names_delim" value="<?php echo esc_attr($post['variable_product_files_names_delim']) ?>" style="width:5% !important;text-align:center; margin-left:5px;"/>
|
459 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('File names, comma separated. The delimiter is used when an XML element contains multiple names - i.e. <code>1.doc, 2.doc</code>.', 'wpai_woocommerce_addon_plugin') ?>">?</a>
|
460 |
-
</p>
|
461 |
-
<p class="form-field">
|
462 |
-
<label style="width:150px;"><?php _e('Download Limit','wpai_woocommerce_addon_plugin');?></label>
|
463 |
-
<input type="text" value="<?php echo esc_attr($post['variable_download_limit']) ?>" style="" name="variable_download_limit" class="short">
|
464 |
-
<span class="use_parent">
|
465 |
-
<input type="hidden" name="variable_download_limit_use_parent" value="0"/>
|
466 |
-
<input type="checkbox" name="variable_download_limit_use_parent" id="variable_download_limit_use_parent" style="margin-left:5px; margin-right:5px;" <?php echo ($post['variable_download_limit_use_parent']) ? 'checked="checked"' : ''; ?>>
|
467 |
-
<label for="variable_download_limit_use_parent"><?php _e("XPath Is From Parent","wpai_woocommerce_addon_plugin");?></label>
|
468 |
-
</span>
|
469 |
-
</p>
|
470 |
-
<p class="form-field">
|
471 |
-
<label style="width:150px;"><?php _e('Download Expiry','wpai_woocommerce_addon_plugin');?></label>
|
472 |
-
<input type="text" value="<?php echo esc_attr($post['variable_download_expiry']) ?>" style="" name="variable_download_expiry" class="short">
|
473 |
-
<span class="use_parent">
|
474 |
-
<input type="hidden" name="variable_download_expiry_use_parent" value="0"/>
|
475 |
-
<input type="checkbox" name="variable_download_expiry_use_parent" id="variable_download_expiry_use_parent" style="margin-left:5px; margin-right:5px;" <?php echo ($post['variable_download_expiry_use_parent']) ? 'checked="checked"' : ''; ?>>
|
476 |
-
<label for="variable_download_expiry_use_parent"><?php _e("XPath Is From Parent","wpai_woocommerce_addon_plugin");?></label>
|
477 |
-
</span>
|
478 |
-
</p>
|
479 |
-
</div>
|
480 |
-
|
481 |
-
<div class="options_group">
|
482 |
-
|
483 |
-
<label style="width:150px; padding-left:0px;"><?php _e('Variation Enabled','wpai_woocommerce_addon_plugin'); ?></label>
|
484 |
-
|
485 |
-
<span class="wpallimport-clear"></span>
|
486 |
-
|
487 |
-
<p class="form-field wpallimport-radio-field">
|
488 |
-
<input type="radio" id="variable_product_enabled_yes" class="switcher" name="is_variable_product_enabled" value="yes" <?php echo 'yes' == $post['is_variable_product_enabled'] ? 'checked="checked"': '' ?>/>
|
489 |
-
<label for="variable_product_enabled_yes"><?php _e("Yes"); ?></label>
|
490 |
-
</p>
|
491 |
-
<p class="form-field wpallimport-radio-field">
|
492 |
-
<input type="radio" id="variable_product_enabled_no" class="switcher" name="is_variable_product_enabled" value="no" <?php echo 'no' == $post['is_variable_product_enabled'] ? 'checked="checked"': '' ?>/>
|
493 |
-
<label for="variable_product_enabled_no"><?php _e("No"); ?></label>
|
494 |
-
</p>
|
495 |
-
<div class="form-field wpallimport-radio-field">
|
496 |
-
<input type="radio" id="variable_product_enabled_xpath" class="switcher" name="is_variable_product_enabled" value="xpath" <?php echo 'xpath' == $post['is_variable_product_enabled'] ? 'checked="checked"': '' ?>/>
|
497 |
-
<label for="variable_product_enabled_xpath"><?php _e('Set with XPath', 'wpai_woocommerce_addon_plugin' )?></label>
|
498 |
-
<span class="wpallimport-clear"></span>
|
499 |
-
<div class="switcher-target-variable_product_enabled_xpath set_with_xpath">
|
500 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
501 |
-
<input type="text" class="smaller-text" name="single_variable_product_enabled" style="width:300px; " value="<?php echo esc_attr($post['single_variable_product_enabled']) ?>"/>
|
502 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'yes\', \'no\').', 'wpai_woocommerce_addon_plugin') ?>" style="position:relative; top:2px;">?</a>
|
503 |
-
</span>
|
504 |
-
</div>
|
505 |
-
</div>
|
506 |
-
|
507 |
-
</div>
|
508 |
-
|
509 |
-
<div class="options_group variation_attributes">
|
510 |
-
|
511 |
-
<label style="width:150px; padding-left:0px;"><?php _e('Variation Attributes','wpai_woocommerce_addon_plugin');?></label>
|
512 |
-
|
513 |
-
<span class="wpallimport-clear"></span>
|
514 |
-
|
515 |
-
<div class="input">
|
516 |
-
<table class="form-table custom-params" style="max-width:95%;">
|
517 |
-
<thead>
|
518 |
-
<tr>
|
519 |
-
<td><?php _e('Name', 'wpai_woocommerce_addon_plugin') ?></td>
|
520 |
-
<td><?php _e('Values', 'wpai_woocommerce_addon_plugin') ?></td>
|
521 |
-
<td></td>
|
522 |
-
</tr>
|
523 |
-
</thead>
|
524 |
-
<tbody>
|
525 |
-
<?php if ( ! empty($post['variable_attribute_name'][0])):?>
|
526 |
-
<?php foreach ($post['variable_attribute_name'] as $i => $name): if ("" == $name) continue; ?>
|
527 |
-
<tr class="form-field">
|
528 |
-
<td style="width: 50%;">
|
529 |
-
<input type="text" class="widefat" name="variable_attribute_name[]" value="<?php echo esc_attr($name) ?>" style="width:95% !important;"/>
|
530 |
-
</td>
|
531 |
-
<td style="width: 50%;">
|
532 |
-
<input type="text" class="widefat" name="variable_attribute_value[]" value="<?php echo esc_attr($post['variable_attribute_value'][$i]); ?>" style="width: 100% !important;"/>
|
533 |
-
|
534 |
-
<span class="wpallimport-clear"></span>
|
535 |
-
<p class="form-field wpallimport-radio-field" style="padding: 0 !important; position: relative; left: -100%; width: 200%;">
|
536 |
-
<span class='in_variations' style="margin-left:0px;">
|
537 |
-
<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"/>
|
538 |
-
<label for="variable_in_variations_<?php echo $i; ?>"><?php _e('In Variations','wpai_woocommerce_addon_plugin');?></label>
|
539 |
-
</span>
|
540 |
-
|
541 |
-
<span class='is_visible'>
|
542 |
-
<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"/>
|
543 |
-
<label for="variable_is_visible_<?php echo $i; ?>"><?php _e('Is Visible','wpai_woocommerce_addon_plugin');?></label>
|
544 |
-
</span>
|
545 |
-
|
546 |
-
<span class='is_taxonomy'>
|
547 |
-
<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"/>
|
548 |
-
<label for="variable_is_taxonomy_<?php echo $i; ?>"><?php _e('Taxonomy','wpai_woocommerce_addon_plugin');?></label>
|
549 |
-
</span>
|
550 |
-
|
551 |
-
<span class='is_create_taxonomy'>
|
552 |
-
<input type="checkbox" name="variable_create_taxonomy_in_not_exists[]" id="variable_create_taxonomy_in_not_exists_<?php echo $i;?>" <?php echo ($post['variable_create_taxonomy_in_not_exists'][$i]) ? 'checked="checked"' : ''; ?> style="float:left;" value="1"/>
|
553 |
-
<label for="variable_create_taxonomy_in_not_exists_<?php echo $i; ?>"><?php _e('Auto-Create Terms','wpai_woocommerce_addon_plugin');?></label>
|
554 |
-
</span>
|
555 |
-
</p>
|
556 |
-
</td>
|
557 |
-
<td class="action remove"><a href="#remove" style="top: 9px;"></a></td>
|
558 |
-
</tr>
|
559 |
-
<?php endforeach ?>
|
560 |
-
<?php else: ?>
|
561 |
-
<tr class="form-field">
|
562 |
-
<td style="width: 50%;">
|
563 |
-
<input type="text" name="variable_attribute_name[]" value="" style="width:95% !important;"/>
|
564 |
-
</td>
|
565 |
-
<td style="width: 50%;">
|
566 |
-
<input type="text" class="widefat" name="variable_attribute_value[]" value="" style="width: 100% !important;"/>
|
567 |
-
|
568 |
-
<span class="wpallimport-clear"></span>
|
569 |
-
<p class="form-field wpallimport-radio-field" style="padding: 0 !important; position: relative; left: -100%; width: 200%;">
|
570 |
-
<span class='in_variations' style="margin-left:0px;">
|
571 |
-
<input type="checkbox" name="variable_in_variations[]" id="variable_in_variations_0" checked="checked" style="float: left;" value="1"/>
|
572 |
-
<label for="variable_in_variations_0"><?php _e('In Variations','wpai_woocommerce_addon_plugin');?></label>
|
573 |
-
</span>
|
574 |
-
<span class='is_visible'>
|
575 |
-
<input type="checkbox" name="variable_is_visible[]" id="variable_is_visible_0" checked="checked" style="float:left;" value="1"/>
|
576 |
-
<label for="variable_is_visible_0"><?php _e('Is Visible','wpai_woocommerce_addon_plugin');?></label>
|
577 |
-
</span>
|
578 |
-
<span class='is_taxonomy'>
|
579 |
-
<input type="checkbox" name="variable_is_taxonomy[]" id="variable_is_taxonomy_0" checked="checked" style="float:left;" value="1"/>
|
580 |
-
<label for="variable_is_taxonomy_0"><?php _e('Taxonomy','wpai_woocommerce_addon_plugin');?></label>
|
581 |
-
</span>
|
582 |
-
<span class='is_create_taxonomy'>
|
583 |
-
<input type="checkbox" name="variable_create_taxonomy_in_not_exists[]" id="variable_create_taxonomy_in_not_exists_0" checked="checked" style="float:left;" value="1"/>
|
584 |
-
<label for="variable_create_taxonomy_in_not_exists_0"><?php _e('Auto-Create Terms','wpai_woocommerce_addon_plugin');?></label>
|
585 |
-
</span>
|
586 |
-
</p>
|
587 |
-
</td>
|
588 |
-
<td class="action remove"><a href="#remove" style="top: 9px;"></a></td>
|
589 |
-
</tr>
|
590 |
-
<?php endif;?>
|
591 |
-
<tr class="form-field template">
|
592 |
-
<td style="width: 50%;">
|
593 |
-
<input type="text" name="variable_attribute_name[]" value="" style="width:95% !important;"/>
|
594 |
-
</td>
|
595 |
-
<td style="width: 50%;">
|
596 |
-
<input type="text" class="widefat" name="variable_attribute_value[]" value="" style="width: 100% !important;"/>
|
597 |
-
|
598 |
-
<span class="wpallimport-clear"></span>
|
599 |
-
<p class="form-field wpallimport-radio-field" style="padding: 0 !important; position: relative; left: -100%; width: 200%;">
|
600 |
-
<span class='in_variations' style="margin-left:0px;">
|
601 |
-
<input type="checkbox" name="variable_in_variations[]" checked="checked" style="float: left;" value="1"/>
|
602 |
-
<label for=""><?php _e('In Variations','wpai_woocommerce_addon_plugin');?></label>
|
603 |
-
</span>
|
604 |
-
<span class='is_visible'>
|
605 |
-
<input type="checkbox" name="variable_is_visible[]" checked="checked" style="float: left;" value="1"/>
|
606 |
-
<label for=""><?php _e('Is Visible','wpai_woocommerce_addon_plugin');?></label>
|
607 |
-
</span>
|
608 |
-
<span class='is_taxonomy'>
|
609 |
-
<input type="checkbox" name="variable_is_taxonomy[]" checked="checked" style="float: left;" value="1"/>
|
610 |
-
<label for=""><?php _e('Taxonomy','wpai_woocommerce_addon_plugin');?></label>
|
611 |
-
</span>
|
612 |
-
<span class='is_create_taxonomy'>
|
613 |
-
<input type="checkbox" name="variable_create_taxonomy_in_not_exists[]" checked="checked" style="float: left;" value="1"/>
|
614 |
-
<label for=""><?php _e('Auto-Create Terms','wpai_woocommerce_addon_plugin');?></label>
|
615 |
-
</span>
|
616 |
-
</p>
|
617 |
-
</td>
|
618 |
-
<td class="action remove"><a href="#remove" style="top: 9px;"></a></td>
|
619 |
-
</tr>
|
620 |
-
<tr>
|
621 |
-
<td colspan="3"><a href="#add" title="<?php _e('add', 'wpai_woocommerce_addon_plugin')?>" class="action add-new-custom"><?php _e('Add more', 'wpai_woocommerce_addon_plugin') ?></a></td>
|
622 |
-
</tr>
|
623 |
-
</tbody>
|
624 |
-
</table>
|
625 |
-
</div>
|
626 |
-
</div>
|
627 |
-
</div>
|
628 |
-
<div id="variations_tag" class="options_group show_if_variable">
|
629 |
-
<a href="javascript:void(0)" id="close_xml_tree"></a>
|
630 |
-
<div class="variations_tree">
|
631 |
-
<div id="variations_xml">
|
632 |
-
<div class="variations_tag">
|
633 |
-
<input type="hidden" name="variations_tagno" value="<?php echo (!empty($tagno)) ? $tagno : 0; ?>" />
|
634 |
-
<div class="title">
|
635 |
-
<?php printf(__('No matching elements found for XPath expression specified', 'wpai_woocommerce_addon_plugin'), (!empty($tagno)) ? $tagno : 0, (!empty($variation_list_count)) ? $variation_list_count : 0); ?>
|
636 |
-
</div>
|
637 |
-
<div class="clear"></div>
|
638 |
-
<div class="xml resetable"></div>
|
639 |
-
</div>
|
640 |
-
</div>
|
641 |
-
</div>
|
642 |
-
</div>
|
643 |
-
</div>
|
644 |
-
</div>
|
645 |
-
|
646 |
-
<div class="clear" style="margin-top:5px;"></div>
|
647 |
-
|
648 |
-
</div>
|
649 |
-
|
650 |
-
<div class="options_group variations_are_not_child_elements">
|
651 |
-
<p class="form-field wpallimport-radio-field">
|
652 |
-
<label><?php _e("Manage stock?"); ?></label>
|
653 |
-
</p>
|
654 |
-
<p class="form-field wpallimport-radio-field">
|
655 |
-
<input type="radio" id="is_variation_product_manage_stock_yes" class="switcher" name="is_variation_product_manage_stock" value="yes" <?php echo 'yes' == $post['is_variation_product_manage_stock'] ? 'checked="checked"': '' ?>/>
|
656 |
-
<label for="is_variation_product_manage_stock_yes"><?php _e("Yes"); ?></label>
|
657 |
-
</p>
|
658 |
-
<p class="form-field wpallimport-radio-field">
|
659 |
-
<input type="radio" id="is_variation_product_manage_stock_no" class="switcher" name="is_variation_product_manage_stock" value="no" <?php echo 'no' == $post['is_variation_product_manage_stock'] ? 'checked="checked"': '' ?>/>
|
660 |
-
<label for="is_variation_product_manage_stock_no"><?php _e("No"); ?></label>
|
661 |
-
</p>
|
662 |
-
<div class="form-field wpallimport-radio-field">
|
663 |
-
<input type="radio" id="is_variation_product_manage_stock_xpath" class="switcher" name="is_variation_product_manage_stock" value="xpath" <?php echo 'xpath' == $post['is_variation_product_manage_stock'] ? 'checked="checked"': '' ?>/>
|
664 |
-
<label for="is_variation_product_manage_stock_xpath"><?php _e('Set with XPath', 'wpai_woocommerce_addon_plugin' )?></label>
|
665 |
-
<span class="wpallimport-clear"></span>
|
666 |
-
<div class="switcher-target-is_variation_product_manage_stock_xpath set_with_xpath" style="width:390px;">
|
667 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
668 |
-
<input type="text" class="smaller-text" name="single_variation_product_manage_stock" style="width:345px;" value="<?php echo esc_attr($post['single_variation_product_manage_stock']) ?>"/>
|
669 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'yes\', \'no\').', 'wpai_woocommerce_addon_plugin') ?>" style="position:relative; top:2px;">?</a>
|
670 |
-
</span>
|
671 |
-
</div>
|
672 |
-
</div>
|
673 |
-
</div>
|
674 |
-
|
675 |
-
<div class="options_group variation_stock_fields variations_are_not_child_elements">
|
676 |
-
<p class="form-field">
|
677 |
-
<label style="width:150px;"><?php _e('Stock Qty', 'wpai_woocommerce_addon_plugin');?></label>
|
678 |
-
<input type="text" value="<?php echo esc_attr($post['variation_stock']) ?>" style="" name="variation_stock" class="short">
|
679 |
-
</p>
|
680 |
-
</div>
|
681 |
-
|
682 |
-
<div class="options_group variations_are_not_child_elements">
|
683 |
-
<p class="form-field wpallimport-radio-field">
|
684 |
-
<label><?php _e("Stock status"); ?></label>
|
685 |
-
</p>
|
686 |
-
<p class="form-field wpallimport-radio-field">
|
687 |
-
<input type="radio" id="variation_stock_status_in_stock" class="switcher" name="variation_stock_status" value="instock" <?php echo 'instock' == $post['variation_stock_status'] ? 'checked="checked"': '' ?>/>
|
688 |
-
<label for="variation_stock_status_in_stock"><?php _e("In stock"); ?></label>
|
689 |
-
</p>
|
690 |
-
<p class="form-field wpallimport-radio-field">
|
691 |
-
<input type="radio" id="variation_stock_status_out_of_stock" class="switcher" name="variation_stock_status" value="outofstock" <?php echo 'outofstock' == $post['variation_stock_status'] ? 'checked="checked"': '' ?>/>
|
692 |
-
<label for="variation_stock_status_out_of_stock"><?php _e("Out of stock"); ?></label>
|
693 |
-
</p>
|
694 |
-
<p class="form-field wpallimport-radio-field">
|
695 |
-
<input type="radio" id="variation_stock_status_auto" class="switcher" name="variation_stock_status" value="auto" <?php echo 'auto' == $post['variation_stock_status'] ? 'checked="checked"': '' ?>/>
|
696 |
-
<label for="variation_stock_status_auto" style="width:100px;"><?php _e("Set automatically"); ?></label>
|
697 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('Set the stock status to In Stock for positive Stock Qty values, and Out Of Stock if Stock Qty is 0 or blank.', 'wpai_woocommerce_addon_plugin') ?>" style="position:relative; top:3px;">?</a>
|
698 |
-
</p>
|
699 |
-
<div class="form-field wpallimport-radio-field">
|
700 |
-
<input type="radio" id="variation_stock_status_xpath" class="switcher" name="variation_stock_status" value="xpath" <?php echo 'xpath' == $post['variation_stock_status'] ? 'checked="checked"': '' ?>/>
|
701 |
-
<label for="variation_stock_status_xpath"><?php _e('Set with XPath', 'wpai_woocommerce_addon_plugin' )?></label>
|
702 |
-
<span class="wpallimport-clear"></span>
|
703 |
-
<div class="switcher-target-variation_stock_status_xpath set_with_xpath" style="width:390px;">
|
704 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
705 |
-
<input type="text" class="smaller-text" name="single_variation_stock_status" style="width:345px;" value="<?php echo esc_attr($post['single_variation_stock_status']) ?>"/>
|
706 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'instock\', \'outofstock\').', 'wpai_woocommerce_addon_plugin') ?>" style="position:relative; top:2px;">?</a>
|
707 |
-
</span>
|
708 |
-
</div>
|
709 |
-
</div>
|
710 |
-
</div>
|
711 |
-
|
712 |
-
<div class="options_group">
|
713 |
-
|
714 |
-
<p class="form-field"><?php _e('Variation Enabled','wpai_woocommerce_addon_plugin');?><a href="#help" class="wpallimport-help" title="<?php _e('This option is the same as the Enabled checkbox when editing an individual variation in WooCommerce.', 'wpai_woocommerce_addon_plugin') ?>" style="position:relative; top:0px;">?</a></p>
|
715 |
-
|
716 |
-
<p class="form-field wpallimport-radio-field">
|
717 |
-
<input type="radio" id="product_enabled_yes" class="switcher" name="is_product_enabled" value="yes" <?php echo 'yes' == $post['is_product_enabled'] ? 'checked="checked"': '' ?>/>
|
718 |
-
<label for="product_enabled_yes"><?php _e("Yes"); ?></label>
|
719 |
-
</p>
|
720 |
-
<p class="form-field wpallimport-radio-field">
|
721 |
-
<input type="radio" id="product_enabled_no" class="switcher" name="is_product_enabled" value="no" <?php echo 'no' == $post['is_product_enabled'] ? 'checked="checked"': '' ?>/>
|
722 |
-
<label for="product_enabled_no"><?php _e("No"); ?></label>
|
723 |
-
</p>
|
724 |
-
<div class="form-field wpallimport-radio-field">
|
725 |
-
<input type="radio" id="product_enabled_xpath" class="switcher" name="is_product_enabled" value="xpath" <?php echo 'xpath' == $post['is_product_enabled'] ? 'checked="checked"': '' ?>/>
|
726 |
-
<label for="product_enabled_xpath"><?php _e('Set with XPath', 'wpai_woocommerce_addon_plugin' )?></label>
|
727 |
-
<span class="wpallimport-clear"></span>
|
728 |
-
<div class="switcher-target-product_enabled_xpath set_with_xpath">
|
729 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
730 |
-
<input type="text" class="smaller-text" name="single_product_enabled" style="width:300px;" value="<?php echo esc_attr($post['single_product_enabled']) ?>"/>
|
731 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'yes\', \'no\').', 'wpai_woocommerce_addon_plugin') ?>" style="position:relative; top:2px;">?</a>
|
732 |
-
</span>
|
733 |
-
</div>
|
734 |
-
</div>
|
735 |
-
</div>
|
736 |
-
|
737 |
-
<div class="options_group">
|
738 |
-
|
739 |
-
<div class="clear"></div>
|
740 |
-
|
741 |
-
<p class="form-field wpallimport-radio-field">
|
742 |
-
<input type="radio" id="set_default_yes" class="switcher" name="is_default_attributes" value="1" <?php echo $post['is_default_attributes'] ? 'checked="checked"': '' ?>/>
|
743 |
-
<label for="set_default_yes" style="width: 400px;"><?php _e("Set the default selection in the attributes dropdowns.", 'wpai_woocommerce_addon_plugin'); ?></label>
|
744 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('The attributes for the first variation will be automatically selected on the frontend.', 'wpai_woocommerce_addon_plugin') ?>" style="position:relative; top:2px;">?</a>
|
745 |
-
</p>
|
746 |
-
<div class="switcher-target-set_default_yes set_with_xpath" style="padding-left:17px;">
|
747 |
-
<p class="form-field wpallimport-radio-field">
|
748 |
-
<input type="radio" id="set_default_first" name="default_attributes_type" value="first" <?php echo ($post['default_attributes_type'] == 'first') ? 'checked="checked"': '' ?>/>
|
749 |
-
<label for="set_default_first" style="width: 90%;"><?php _e("Set first variation as the default selection.", "wpai_woocommerce_addon_plugin"); ?></label>
|
750 |
-
</p>
|
751 |
-
<p class="form-field wpallimport-radio-field">
|
752 |
-
<input type="radio" id="set_default_instock" name="default_attributes_type" value="instock" <?php echo ($post['default_attributes_type'] == 'instock') ? 'checked="checked"': '' ?>/>
|
753 |
-
<label for="set_default_instock" style="width: 90%;"><?php _e("Set first in stock variation as the default selection.", "wpai_woocommerce_addon_plugin"); ?></label>
|
754 |
-
</p>
|
755 |
-
</div>
|
756 |
-
<p class="form-field wpallimport-radio-field">
|
757 |
-
<input type="radio" id="set_default_no" class="switcher" name="is_default_attributes" value="0" <?php echo ! $post['is_default_attributes'] ? 'checked="checked"': '' ?>/>
|
758 |
-
<label for="set_default_no" style="width: 90%;"><?php _e("Do not set default selections for the dropdowns.", "wpai_woocommerce_addon_plugin"); ?></label>
|
759 |
-
</p>
|
760 |
-
|
761 |
-
<p class="form-field wpallimport-radio-field">
|
762 |
-
<input type="hidden" name="make_simple_product" value="0" />
|
763 |
-
<input type="checkbox" id="make_simple_product" name="make_simple_product" value="1" <?php echo $post['make_simple_product'] ? 'checked="checked"' : '' ?> />
|
764 |
-
<label for="make_simple_product" style="width:340px;"><?php _e('Create products with no variations as simple products.', 'wpai_woocommerce_addon_plugin') ?></label>
|
765 |
-
</p>
|
766 |
-
<p class="form-field wpallimport-radio-field">
|
767 |
-
<input type="hidden" name="put_variation_image_to_gallery" value="0" />
|
768 |
-
<input type="checkbox" id="put_variation_image_to_gallery" name="put_variation_image_to_gallery" value="1" <?php echo $post['put_variation_image_to_gallery'] ? 'checked="checked"' : '' ?> />
|
769 |
-
<label for="put_variation_image_to_gallery" style="width:340px;"><?php _e('Save variation image to the gallery.', 'wpai_woocommerce_addon_plugin') ?></label>
|
770 |
-
</p>
|
771 |
-
<p class="form-field wpallimport-radio-field set_parent_stock_option" style="display:none;">
|
772 |
-
<input type="hidden" name="set_parent_stock" value="0" />
|
773 |
-
<input type="checkbox" id="set_parent_stock" name="set_parent_stock" value="1" <?php echo $post['set_parent_stock'] ? 'checked="checked"' : '' ?> />
|
774 |
-
<label for="set_parent_stock" style="width: 435px;"><?php _e('Set _stock value for parent product to the _stock value for the first variation.', 'wpai_woocommerce_addon_plugin') ?></label>
|
775 |
-
<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).', 'wpai_woocommerce_addon_plugin') ?>" style="position:relative; top:1px;">?</a>
|
776 |
-
</p>
|
777 |
-
|
778 |
-
</div>
|
779 |
-
|
780 |
-
</div><!-- End Product Panel -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
views/admin/import/index.php
DELETED
@@ -1,126 +0,0 @@
|
|
1 |
-
<div class="wpallimport-collapsed closed">
|
2 |
-
<div class="wpallimport-content-section">
|
3 |
-
<div class="wpallimport-collapsed-header">
|
4 |
-
<h3><?php _e('WooCommerce Add-On','wpai_woocommerce_addon_plugin');?></h3>
|
5 |
-
</div>
|
6 |
-
<div class="wpallimport-collapsed-content" style="padding:0;">
|
7 |
-
<div class="wpallimport-collapsed-content-inner">
|
8 |
-
<table class="form-table" style="max-width:none;">
|
9 |
-
<tr>
|
10 |
-
<td colspan="3">
|
11 |
-
<div class="postbox " id="woocommerce-product-data">
|
12 |
-
<h3 class="hndle" style="margin-top:0;">
|
13 |
-
<span>
|
14 |
-
<div class="main_choise" style="padding:0px; margin-right:0px;">
|
15 |
-
<input type="radio" id="multiple_product_type_yes" class="switcher" name="is_multiple_product_type" value="yes" checked="checked" />
|
16 |
-
<label for="multiple_product_type_yes"><?php _e('Product Type', 'wpai_woocommerce_addon_plugin' )?></label>
|
17 |
-
</div>
|
18 |
-
<div class="switcher-target-multiple_product_type_yes" style="float:left;">
|
19 |
-
<div class="input">
|
20 |
-
<select name="multiple_product_type" id="product-type">
|
21 |
-
<optgroup label="Product Type">
|
22 |
-
<option value="simple" selected="selected"><?php _e('Simple product', 'wpai_woocommerce_addon_plugin');?></option>
|
23 |
-
<option value="grouped"><?php _e('Grouped product','wpai_woocommerce_addon_plugin');?></option>
|
24 |
-
<option value="external"><?php _e('External/Affiliate product','wpai_woocommerce_addon_plugin');?></option>
|
25 |
-
<option value="variable"><?php _e('Variable product','wpai_woocommerce_addon_plugin');?></option>
|
26 |
-
</optgroup>
|
27 |
-
</select>
|
28 |
-
</div>
|
29 |
-
</div>
|
30 |
-
<div class="main_choise" style="padding:0px; margin-left:40px;">
|
31 |
-
<input type="radio" id="multiple_product_type_no" class="switcher" name="is_multiple_product_type" value="no" disabled="disabled"/>
|
32 |
-
<label for="multiple_product_type_no"><?php _e('Set Product Type With XPath', 'wpai_woocommerce_addon_plugin' )?></label>
|
33 |
-
</div>
|
34 |
-
<div class="switcher-target-multiple_product_type_no" style="float:left;">
|
35 |
-
<div class="input">
|
36 |
-
<input type="text" class="smaller-text" name="single_product_type" style="width:300px;" value="<?php echo esc_attr($post['single_product_type']) ?>"/>
|
37 |
-
<a href="#help" class="wpallimport-help" style="top: -1px;" title="<?php _e('The value of presented XPath should be one of the following: (\'simple\', \'grouped\', \'external\', \'variable\').', 'wpai_woocommerce_addon_plugin') ?>">?</a>
|
38 |
-
</div>
|
39 |
-
</div>
|
40 |
-
<!--div style="float:right;">
|
41 |
-
<label class="show_if_simple" for="_virtual" style="border-right:none;">
|
42 |
-
<input type="hidden" name="_virtual" value="0"/>
|
43 |
-
<?php _e('Virtual','wpai_woocommerce_addon_plugin');?>: <input type="checkbox" id="_virtual" name="_virtual" <?php echo ($post['_virtual']) ? 'checked="checked"' : ''; ?>>
|
44 |
-
</label>
|
45 |
-
<label class="show_if_simple" for="_downloadable">
|
46 |
-
<input type="hidden" name="_downloadable" value="0"/>
|
47 |
-
<?php _e('Downloadable','wpai_woocommerce_addon_plugin');?>: <input type="checkbox" id="_downloadable" name="_downloadable" <?php echo ($post['_downloadable']) ? 'checked="checked"' : ''; ?>>
|
48 |
-
</label>
|
49 |
-
</div-->
|
50 |
-
</span>
|
51 |
-
</h3>
|
52 |
-
<div class="clear"></div>
|
53 |
-
<div class="inside">
|
54 |
-
<div class="panel-wrap product_data">
|
55 |
-
|
56 |
-
<ul style="" class="product_data_tabs wc-tabs">
|
57 |
-
|
58 |
-
<li class="general_options hide_if_grouped active"><a href="javascript:void(0);" rel="general_product_data"><?php _e('General','wpai_woocommerce_addon_plugin');?></a></li>
|
59 |
-
|
60 |
-
<li class="inventory_tab show_if_simple show_if_variable show_if_grouped inventory_options" style="display: block;"><a href="javascript:void(0);" rel="inventory_product_data"><?php _e('Inventory', 'wpai_woocommerce_addon_plugin');?></a></li>
|
61 |
-
|
62 |
-
<li class="shipping_tab shipping_options hide_if_grouped hide_if_external"><a href="javascript:void(0);" rel="shipping_product_data"><?php _e('Shipping', 'wpai_woocommerce_addon_plugin');?></a></li>
|
63 |
-
|
64 |
-
<li class="linked_product_tab linked_product_options"><a href="javascript:void(0);" rel="linked_product_data"><?php _e('Linked Products', 'wpai_woocommerce_addon_plugin');?></a></li>
|
65 |
-
|
66 |
-
<li class="attributes_tab attribute_options"><a href="javascript:void(0);" rel="woocommerce_attributes"><?php _e('Attributes','wpai_woocommerce_addon_plugin');?></a></li>
|
67 |
-
|
68 |
-
<li class="advanced_tab advanced_options"><a href="javascript:void(0);" rel="advanced_product_data"><?php _e('Advanced','wpai_woocommerce_addon_plugin');?></a></li>
|
69 |
-
|
70 |
-
<li class="variations_tab show_if_variable variation_options"><a title="Variations for variable products are defined here." href="javascript:void(0);" rel="variable_product_options"><?php _e('Variations','wpai_woocommerce_addon_plugin');?></a></li>
|
71 |
-
|
72 |
-
<li class="options_tab advanced_options"><a title="Variations for variable products are defined here." href="javascript:void(0);" rel="add_on_options"><?php _e('Add-On Options', 'wpai_woocommerce_addon_plugin');?></a></li>
|
73 |
-
|
74 |
-
<?php //do_action('pmwi_tab_header'); ?>
|
75 |
-
|
76 |
-
</ul>
|
77 |
-
|
78 |
-
<!-- GENERAL -->
|
79 |
-
|
80 |
-
<?php include( '_tabs/_general.php' ); ?>
|
81 |
-
|
82 |
-
<!-- INVENTORY -->
|
83 |
-
|
84 |
-
<?php include( '_tabs/_inventory.php' ); ?>
|
85 |
-
|
86 |
-
<!-- SHIPPING -->
|
87 |
-
|
88 |
-
<?php include( '_tabs/_shipping.php' ); ?>
|
89 |
-
|
90 |
-
<!-- LINKED PRODUCT -->
|
91 |
-
|
92 |
-
<?php include( '_tabs/_linked_product.php' ); ?>
|
93 |
-
|
94 |
-
<!-- ATTRIBUTES -->
|
95 |
-
|
96 |
-
<?php include( '_tabs/_attributes.php' ); ?>
|
97 |
-
|
98 |
-
<!-- ADVANCED -->
|
99 |
-
|
100 |
-
<?php include( '_tabs/_advanced.php' ); ?>
|
101 |
-
|
102 |
-
<!-- VARIATIONS -->
|
103 |
-
|
104 |
-
<?php include( '_tabs/_variations.php' ); ?>
|
105 |
-
|
106 |
-
<!-- ADDITIONAL TABS -->
|
107 |
-
|
108 |
-
<?php do_action('pmwi_tab_content'); ?>
|
109 |
-
|
110 |
-
<!-- OPTIONS -->
|
111 |
-
|
112 |
-
<?php include( '_tabs/_options.php' ); ?>
|
113 |
-
|
114 |
-
</div>
|
115 |
-
</div>
|
116 |
-
</div>
|
117 |
-
|
118 |
-
<div class="clear"></div>
|
119 |
-
|
120 |
-
</td>
|
121 |
-
</tr>
|
122 |
-
</table>
|
123 |
-
</div>
|
124 |
-
</div>
|
125 |
-
</div>
|
126 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
views/admin/import/product/_tabs/_advanced.php
CHANGED
@@ -1,7 +1,7 @@
|
|
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=purchase_collection&taxonomy=download_category&terms=14&utm_source=import-wooco-products-addon-free&utm_medium=upgrade-notice&utm_campaign=import-variable-wooco-products" target="_blank" class="upgrade_woo_link"><?php _e('Upgrade to the Pro edition of WP All Import and the WooCommerce Add-On to
|
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; ?>
|
@@ -18,6 +18,35 @@
|
|
18 |
</p>
|
19 |
</div>
|
20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
<div class="options_group reviews">
|
22 |
|
23 |
<p class="form-field"><?php _e('Enable reviews',PMWI_Plugin::TEXT_DOMAIN);?></p>
|
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=purchase_collection&taxonomy=download_category&terms=14&utm_source=import-wooco-products-addon-free&utm_medium=upgrade-notice&utm_campaign=import-variable-wooco-products" 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; ?>
|
18 |
</p>
|
19 |
</div>
|
20 |
|
21 |
+
<div class="options_group show_if_subscription show_if_variable_subscription">
|
22 |
+
<div class="form-field wpallimport-radio-field">
|
23 |
+
<input type="radio" id="multiple_product_subscription_limit_yes" class="switcher" name="is_multiple_product_subscription_limit" value="yes" <?php echo 'no' != $post['is_multiple_product_subscription_limit'] ? 'checked="checked"': '' ?>/>
|
24 |
+
<label for="multiple_product_subscription_limit_yes"><?php _e("Subscription Limit", PMWI_Plugin::TEXT_DOMAIN); ?></label>
|
25 |
+
<span class="wpallimport-clear"></span>
|
26 |
+
<div class="switcher-target-multiple_product_subscription_limit_yes set_with_xpath">
|
27 |
+
<span class="wpallimport-slide-content" style="padding-left:0;">
|
28 |
+
<select class="select short" name="multiple_product_subscription_limit">
|
29 |
+
<option value="no" <?php echo 'no' == $post['multiple_product_subscription_limit'] ? 'selected="selected"': '' ?>><?php _e('No', PMWI_Plugin::TEXT_DOMAIN);?></option>
|
30 |
+
<option value="active" <?php echo 'active' == $post['multiple_product_subscription_limit'] ? 'selected="selected"': '' ?>><?php _e('Active', PMWI_Plugin::TEXT_DOMAIN);?></option>
|
31 |
+
<option value="any" <?php echo 'any' == $post['multiple_product_subscription_limit'] ? 'selected="selected"': '' ?>><?php _e('Any', PMWI_Plugin::TEXT_DOMAIN);?></option>
|
32 |
+
</select>
|
33 |
+
</span>
|
34 |
+
</div>
|
35 |
+
</div>
|
36 |
+
|
37 |
+
<div class="form-field wpallimport-radio-field">
|
38 |
+
<input type="radio" id="multiple_product_subscription_limit_no" class="switcher" name="is_multiple_product_subscription_limit" value="no" <?php echo 'no' == $post['is_multiple_product_subscription_limit'] ? 'checked="checked"': '' ?>/>
|
39 |
+
<label for="multiple_product_subscription_limit_no"><?php _e('Set with XPath', PMWI_Plugin::TEXT_DOMAIN ); ?></label>
|
40 |
+
<span class="wpallimport-clear"></span>
|
41 |
+
<div class="switcher-target-multiple_product_subscription_limit_no set_with_xpath">
|
42 |
+
<span class="wpallimport-slide-content" style="padding-left:0;">
|
43 |
+
<input type="text" class="smaller-text" name="single_product_subscription_limit" style="width:300px;" value="<?php echo esc_attr($post['single_product_subscription_limit']) ?>"/>
|
44 |
+
<a href="#help" class="wpallimport-help" title="<?php _e('Value should be the slug for the tax status - \'no\', \'active\', and \'any\' are the default slugs.', PMWI_Plugin::TEXT_DOMAIN) ?>">?</a>
|
45 |
+
</span>
|
46 |
+
</div>
|
47 |
+
</div>
|
48 |
+
</div>
|
49 |
+
|
50 |
<div class="options_group reviews">
|
51 |
|
52 |
<p class="form-field"><?php _e('Enable reviews',PMWI_Plugin::TEXT_DOMAIN);?></p>
|
views/admin/import/product/_tabs/_attributes.php
CHANGED
@@ -2,7 +2,7 @@
|
|
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=purchase_collection&taxonomy=download_category&terms=14&utm_source=import-wooco-products-addon-free&utm_medium=upgrade-notice&utm_campaign=import-variable-wooco-products" target="_blank" class="upgrade_woo_link"><?php _e('Upgrade to the Pro edition of WP All Import and the WooCommerce Add-On to
|
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>
|
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=purchase_collection&taxonomy=download_category&terms=14&utm_source=import-wooco-products-addon-free&utm_medium=upgrade-notice&utm_campaign=import-variable-wooco-products" 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>
|
views/admin/import/product/_tabs/_general.php
CHANGED
@@ -1,7 +1,7 @@
|
|
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=purchase_collection&taxonomy=download_category&terms=14&utm_source=import-wooco-products-addon-free&utm_medium=upgrade-notice&utm_campaign=import-variable-wooco-products" 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
|
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; ?>
|
@@ -11,7 +11,10 @@
|
|
11 |
<input type="text" class="short" name="single_product_sku" style="" value="<?php echo esc_attr($post['single_product_sku']) ?>"/>
|
12 |
</p>
|
13 |
</div>
|
14 |
-
|
|
|
|
|
|
|
15 |
<p class="form-field">
|
16 |
<label><?php _e("Product URL", PMWI_Plugin::TEXT_DOMAIN); ?></label>
|
17 |
<input type="text" class="short" name="single_product_url" value="<?php echo esc_attr($post['single_product_url']) ?>"/>
|
@@ -24,11 +27,12 @@
|
|
24 |
</p>
|
25 |
</div>
|
26 |
<div class="options_group pricing show_if_simple show_if_external show_if_variable">
|
27 |
-
|
28 |
<p class="form-field">
|
29 |
<label><?php printf(__("Regular Price (%s)", PMWI_Plugin::TEXT_DOMAIN), get_woocommerce_currency_symbol()); ?></label>
|
30 |
<input type="text" class="short" name="single_product_regular_price" value="<?php echo esc_attr($post['single_product_regular_price']) ?>"/> <strong class="options_group show_if_variable" style="position:relative; top:4px; left:4px;">(<?php _e('required', PMWI_Plugin::TEXT_DOMAIN); ?>)</strong>
|
31 |
</p>
|
|
|
|
|
32 |
<p class="form-field">
|
33 |
<label><?php printf(__("Sale Price (%s)", PMWI_Plugin::TEXT_DOMAIN), get_woocommerce_currency_symbol()); ?></label>
|
34 |
<input type="text" class="short" name="single_product_sale_price" value="<?php echo esc_attr($post['single_product_sale_price']) ?>"/> <a id="regular_price_shedule" href="javascript:void(0);" <?php if ($post['is_regular_price_shedule']):?>style="display:none;"<?php endif; ?>><?php _e('schedule', PMWI_Plugin::TEXT_DOMAIN);?></a>
|
@@ -102,39 +106,14 @@
|
|
102 |
|
103 |
</div>
|
104 |
|
105 |
-
<div class="options_group show_if_variable">
|
106 |
<p class="form-field">
|
107 |
<label><?php _e("Variation Description"); ?></label>
|
108 |
<input type="text" class="short" name="single_product_variation_description" value="<?php echo esc_attr($post['single_product_variation_description']) ?>"/>
|
109 |
</p>
|
110 |
</div>
|
111 |
|
112 |
-
|
113 |
-
|
114 |
-
<p class="form-field"><?php _e('Variation Enabled',PMWI_Plugin::TEXT_DOMAIN);?><a href="#help" class="wpallimport-help" title="<?php _e('This option is the same as the Enabled checkbox when editing an individual variation in WooCommerce.', PMWI_Plugin::TEXT_DOMAIN) ?>" style="position:relative; top:0px;">?</a></p>
|
115 |
-
|
116 |
-
<p class="form-field wpallimport-radio-field">
|
117 |
-
<input type="radio" id="variation_enabled_yes" class="switcher" name="is_variation_enabled" value="yes" <?php echo 'yes' == $post['is_variation_enabled'] ? 'checked="checked"': '' ?>/>
|
118 |
-
<label for="variation_enabled_yes"><?php _e("Yes"); ?></label>
|
119 |
-
</p>
|
120 |
-
<p class="form-field wpallimport-radio-field">
|
121 |
-
<input type="radio" id="variation_enabled_no" class="switcher" name="is_variation_enabled" value="no" <?php echo 'no' == $post['is_variation_enabled'] ? 'checked="checked"': '' ?>/>
|
122 |
-
<label for="variation_enabled_no"><?php _e("No"); ?></label>
|
123 |
-
</p>
|
124 |
-
<div class="form-field wpallimport-radio-field">
|
125 |
-
<input type="radio" id="variation_enabled_xpath" class="switcher" name="is_variation_enabled" value="xpath" <?php echo 'xpath' == $post['is_variation_enabled'] ? 'checked="checked"': '' ?>/>
|
126 |
-
<label for="variation_enabled_xpath"><?php _e('Set with XPath', PMWI_Plugin::TEXT_DOMAIN )?></label>
|
127 |
-
<span class="wpallimport-clear"></span>
|
128 |
-
<div class="switcher-target-variation_enabled_xpath set_with_xpath">
|
129 |
-
<span class="wpallimport-slide-content" style="padding-left:0;">
|
130 |
-
<input type="text" class="smaller-text" name="single_variation_enabled" style="width:300px;" value="<?php echo esc_attr($post['single_variation_enabled']) ?>"/>
|
131 |
-
<a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'yes\', \'no\').', PMWI_Plugin::TEXT_DOMAIN) ?>" style="position:relative; top:2px;">?</a>
|
132 |
-
</span>
|
133 |
-
</div>
|
134 |
-
</div>
|
135 |
-
</div-->
|
136 |
-
|
137 |
-
<div class="options_group show_if_simple show_if_external show_if_variable">
|
138 |
|
139 |
<p class="form-field wpallimport-radio-field">
|
140 |
<input type="radio" id="is_product_virtual_yes" class="switcher" name="is_product_virtual" value="yes" <?php echo 'yes' == $post['is_product_virtual'] ? 'checked="checked"': '' ?>/>
|
@@ -157,7 +136,7 @@
|
|
157 |
</div>
|
158 |
|
159 |
</div>
|
160 |
-
<div class="options_group show_if_simple show_if_external show_if_variable">
|
161 |
|
162 |
<p class="form-field wpallimport-radio-field">
|
163 |
<input type="radio" id="is_product_downloadable_yes" class="switcher" name="is_product_downloadable" value="yes" <?php echo 'yes' == $post['is_product_downloadable'] ? 'checked="checked"': '' ?>/>
|
@@ -210,7 +189,7 @@
|
|
210 |
</p>
|
211 |
</div>
|
212 |
|
213 |
-
<div class="options_group show_if_simple show_if_external show_if_variable">
|
214 |
|
215 |
<div class="form-field wpallimport-radio-field">
|
216 |
<input type="radio" id="multiple_product_tax_status_yes" class="switcher" name="is_multiple_product_tax_status" value="yes" <?php echo 'no' != $post['is_multiple_product_tax_status'] ? 'checked="checked"': '' ?>/>
|
@@ -240,7 +219,7 @@
|
|
240 |
</div>
|
241 |
|
242 |
</div>
|
243 |
-
<div class="options_group show_if_simple show_if_external show_if_variable">
|
244 |
|
245 |
<div class="form-field wpallimport-radio-field">
|
246 |
<input type="radio" id="multiple_product_tax_class_yes" class="switcher" name="is_multiple_product_tax_class" value="yes" <?php echo 'no' != $post['is_multiple_product_tax_class'] ? 'checked="checked"': '' ?>/>
|
@@ -250,7 +229,7 @@
|
|
250 |
<div class="switcher-target-multiple_product_tax_class_yes set_with_xpath">
|
251 |
<span class="wpallimport-slide-content" style="padding-left:0;">
|
252 |
<?php
|
253 |
-
$tax_classes =
|
254 |
$classes_options = array();
|
255 |
$classes_options[''] = __( 'Standard', PMWI_Plugin::TEXT_DOMAIN );
|
256 |
|
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=purchase_collection&taxonomy=download_category&terms=14&utm_source=import-wooco-products-addon-free&utm_medium=upgrade-notice&utm_campaign=import-variable-wooco-products" 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; ?>
|
11 |
<input type="text" class="short" name="single_product_sku" style="" value="<?php echo esc_attr($post['single_product_sku']) ?>"/>
|
12 |
</p>
|
13 |
</div>
|
14 |
+
<?php if (class_exists('WC_Subscriptions')): ?>
|
15 |
+
<?php include('subscriptions/_simple_subscription.php'); ?>
|
16 |
+
<?php endif; ?>
|
17 |
+
<div class="options_group show_if_external">
|
18 |
<p class="form-field">
|
19 |
<label><?php _e("Product URL", PMWI_Plugin::TEXT_DOMAIN); ?></label>
|
20 |
<input type="text" class="short" name="single_product_url" value="<?php echo esc_attr($post['single_product_url']) ?>"/>
|
27 |
</p>
|
28 |
</div>
|
29 |
<div class="options_group pricing show_if_simple show_if_external show_if_variable">
|
|
|
30 |
<p class="form-field">
|
31 |
<label><?php printf(__("Regular Price (%s)", PMWI_Plugin::TEXT_DOMAIN), get_woocommerce_currency_symbol()); ?></label>
|
32 |
<input type="text" class="short" name="single_product_regular_price" value="<?php echo esc_attr($post['single_product_regular_price']) ?>"/> <strong class="options_group show_if_variable" style="position:relative; top:4px; left:4px;">(<?php _e('required', PMWI_Plugin::TEXT_DOMAIN); ?>)</strong>
|
33 |
</p>
|
34 |
+
</div>
|
35 |
+
<div class="options_group pricing show_if_simple show_if_external show_if_variable show_if_subscription show_if_variable_subscription">
|
36 |
<p class="form-field">
|
37 |
<label><?php printf(__("Sale Price (%s)", PMWI_Plugin::TEXT_DOMAIN), get_woocommerce_currency_symbol()); ?></label>
|
38 |
<input type="text" class="short" name="single_product_sale_price" value="<?php echo esc_attr($post['single_product_sale_price']) ?>"/> <a id="regular_price_shedule" href="javascript:void(0);" <?php if ($post['is_regular_price_shedule']):?>style="display:none;"<?php endif; ?>><?php _e('schedule', PMWI_Plugin::TEXT_DOMAIN);?></a>
|
106 |
|
107 |
</div>
|
108 |
|
109 |
+
<div class="options_group show_if_variable show_if_variable_subscription">
|
110 |
<p class="form-field">
|
111 |
<label><?php _e("Variation Description"); ?></label>
|
112 |
<input type="text" class="short" name="single_product_variation_description" value="<?php echo esc_attr($post['single_product_variation_description']) ?>"/>
|
113 |
</p>
|
114 |
</div>
|
115 |
|
116 |
+
<div class="options_group show_if_simple show_if_external show_if_variable show_if_subscription show_if_variable_subscription">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
|
118 |
<p class="form-field wpallimport-radio-field">
|
119 |
<input type="radio" id="is_product_virtual_yes" class="switcher" name="is_product_virtual" value="yes" <?php echo 'yes' == $post['is_product_virtual'] ? 'checked="checked"': '' ?>/>
|
136 |
</div>
|
137 |
|
138 |
</div>
|
139 |
+
<div class="options_group show_if_simple show_if_external show_if_variable show_if_subscription show_if_variable_subscription">
|
140 |
|
141 |
<p class="form-field wpallimport-radio-field">
|
142 |
<input type="radio" id="is_product_downloadable_yes" class="switcher" name="is_product_downloadable" value="yes" <?php echo 'yes' == $post['is_product_downloadable'] ? 'checked="checked"': '' ?>/>
|
189 |
</p>
|
190 |
</div>
|
191 |
|
192 |
+
<div class="options_group show_if_simple show_if_external show_if_variable show_if_subscription show_if_variable_subscription">
|
193 |
|
194 |
<div class="form-field wpallimport-radio-field">
|
195 |
<input type="radio" id="multiple_product_tax_status_yes" class="switcher" name="is_multiple_product_tax_status" value="yes" <?php echo 'no' != $post['is_multiple_product_tax_status'] ? 'checked="checked"': '' ?>/>
|
219 |
</div>
|
220 |
|
221 |
</div>
|
222 |
+
<div class="options_group show_if_simple show_if_external show_if_variable show_if_subscription show_if_variable_subscription">
|
223 |
|
224 |
<div class="form-field wpallimport-radio-field">
|
225 |
<input type="radio" id="multiple_product_tax_class_yes" class="switcher" name="is_multiple_product_tax_class" value="yes" <?php echo 'no' != $post['is_multiple_product_tax_class'] ? 'checked="checked"': '' ?>/>
|
229 |
<div class="switcher-target-multiple_product_tax_class_yes set_with_xpath">
|
230 |
<span class="wpallimport-slide-content" style="padding-left:0;">
|
231 |
<?php
|
232 |
+
$tax_classes = \WC_Tax::get_tax_classes();
|
233 |
$classes_options = array();
|
234 |
$classes_options[''] = __( 'Standard', PMWI_Plugin::TEXT_DOMAIN );
|
235 |
|
views/admin/import/product/_tabs/_inventory.php
CHANGED
@@ -6,9 +6,7 @@
|
|
6 |
</div>
|
7 |
<?php endif; ?>
|
8 |
<div class="options_group show_if_simple show_if_variable">
|
9 |
-
|
10 |
<p class="form-field"><?php _e("Manage stock?", PMWI_Plugin::TEXT_DOMAIN); ?></p>
|
11 |
-
|
12 |
<p class="form-field wpallimport-radio-field">
|
13 |
<input type="radio" id="is_product_manage_stock_yes" class="switcher" name="is_product_manage_stock" value="yes" <?php echo 'yes' == $post['is_product_manage_stock'] ? 'checked="checked"': '' ?>/>
|
14 |
<label for="is_product_manage_stock_yes"><?php _e("Yes"); ?></label>
|
@@ -30,7 +28,7 @@
|
|
30 |
</div>
|
31 |
|
32 |
</div>
|
33 |
-
<div class="options_group stock_fields show_if_simple show_if_variable">
|
34 |
<p class="form-field" style="margin-top:0;">
|
35 |
<label><?php _e("Stock Qty", PMWI_Plugin::TEXT_DOMAIN); ?></label>
|
36 |
<input type="text" class="short" name="single_product_stock_qty" value="<?php echo esc_attr($post['single_product_stock_qty']) ?>"/>
|
@@ -71,7 +69,7 @@
|
|
71 |
|
72 |
</div>
|
73 |
|
74 |
-
<div class="options_group show_if_simple show_if_variable">
|
75 |
|
76 |
<p class="form-field"><?php _e('Allow Backorders?',PMWI_Plugin::TEXT_DOMAIN);?></p>
|
77 |
|
@@ -100,7 +98,7 @@
|
|
100 |
</div>
|
101 |
|
102 |
</div>
|
103 |
-
<div class="options_group show_if_simple show_if_variable">
|
104 |
|
105 |
<p class="form-field"><?php _e('Sold Individually?',PMWI_Plugin::TEXT_DOMAIN);?></p>
|
106 |
|
6 |
</div>
|
7 |
<?php endif; ?>
|
8 |
<div class="options_group show_if_simple show_if_variable">
|
|
|
9 |
<p class="form-field"><?php _e("Manage stock?", PMWI_Plugin::TEXT_DOMAIN); ?></p>
|
|
|
10 |
<p class="form-field wpallimport-radio-field">
|
11 |
<input type="radio" id="is_product_manage_stock_yes" class="switcher" name="is_product_manage_stock" value="yes" <?php echo 'yes' == $post['is_product_manage_stock'] ? 'checked="checked"': '' ?>/>
|
12 |
<label for="is_product_manage_stock_yes"><?php _e("Yes"); ?></label>
|
28 |
</div>
|
29 |
|
30 |
</div>
|
31 |
+
<div class="options_group stock_fields show_if_simple show_if_variable show_if_subscription">
|
32 |
<p class="form-field" style="margin-top:0;">
|
33 |
<label><?php _e("Stock Qty", PMWI_Plugin::TEXT_DOMAIN); ?></label>
|
34 |
<input type="text" class="short" name="single_product_stock_qty" value="<?php echo esc_attr($post['single_product_stock_qty']) ?>"/>
|
69 |
|
70 |
</div>
|
71 |
|
72 |
+
<div class="options_group show_if_simple show_if_variable show_if_subscription">
|
73 |
|
74 |
<p class="form-field"><?php _e('Allow Backorders?',PMWI_Plugin::TEXT_DOMAIN);?></p>
|
75 |
|
98 |
</div>
|
99 |
|
100 |
</div>
|
101 |
+
<div class="options_group show_if_simple show_if_variable show_if_subscription">
|
102 |
|
103 |
<p class="form-field"><?php _e('Sold Individually?',PMWI_Plugin::TEXT_DOMAIN);?></p>
|
104 |
|
views/admin/import/product/_tabs/_variations.php
CHANGED
@@ -423,7 +423,7 @@
|
|
423 |
<div class="switcher-target-multiple_variable_product_tax_class_yes set_with_xpath">
|
424 |
<span class="wpallimport-slide-content" style="padding-left:0;">
|
425 |
<?php
|
426 |
-
$tax_classes =
|
427 |
$classes_options = array();
|
428 |
$classes_options[''] = __( 'Standard', PMWI_Plugin::TEXT_DOMAIN );
|
429 |
if ( $tax_classes )
|
423 |
<div class="switcher-target-multiple_variable_product_tax_class_yes set_with_xpath">
|
424 |
<span class="wpallimport-slide-content" style="padding-left:0;">
|
425 |
<?php
|
426 |
+
$tax_classes = \WC_Tax::get_tax_classes();
|
427 |
$classes_options = array();
|
428 |
$classes_options[''] = __( 'Standard', PMWI_Plugin::TEXT_DOMAIN );
|
429 |
if ( $tax_classes )
|
views/admin/import/product/_tabs/subscriptions/_simple_subscription.php
ADDED
@@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="options_group show_if_subscription show_if_variable_subscription">
|
2 |
+
<p class="form-field">
|
3 |
+
<label><?php printf(__("Subscription price (%s)", PMWI_Plugin::TEXT_DOMAIN), get_woocommerce_currency_symbol()); ?></label>
|
4 |
+
<input type="text" class="short" name="single_product_subscription_price" value="<?php echo esc_attr($post['single_product_subscription_price']) ?>"/> <strong class="options_group" style="position:relative; top:4px; left:4px;">(<?php _e('required', PMWI_Plugin::TEXT_DOMAIN); ?>)</strong>
|
5 |
+
</p>
|
6 |
+
<span class="wpallimport-clear"></span>
|
7 |
+
<div class="subscription-billing-settings">
|
8 |
+
<p class="form-field woocommerce-group-label"><?php _e("Billing interval", PMWI_Plugin::TEXT_DOMAIN); ?><a href="#help" class="wpallimport-help" style="top: 0;" title="<?php _e('Set how much time between each renewal for recurring billing schedules.', PMWI_Plugin::TEXT_DOMAIN) ?>">?</a></p>
|
9 |
+
<div class="subscription-billing-interval">
|
10 |
+
<div class="form-field wpallimport-radio-field">
|
11 |
+
<input type="radio" id="multiple_product_subscription_period_interval_yes" class="switcher" name="is_multiple_product_subscription_period_interval" value="yes" <?php echo 'no' != $post['is_multiple_product_subscription_period_interval'] ? 'checked="checked"': '' ?>/>
|
12 |
+
<select class="select short" name="multiple_product_subscription_period_interval">
|
13 |
+
<?php foreach ( wcs_get_subscription_period_interval_strings() as $value => $label ) { ?>
|
14 |
+
<option value="<?php echo esc_attr( $value ); ?>" <?php selected( $value, $post['multiple_product_subscription_period_interval'], true ) ?>><?php echo esc_html( $label ); ?></option>
|
15 |
+
<?php } ?>
|
16 |
+
</select>
|
17 |
+
</div>
|
18 |
+
<span class="wpallimport-clear"></span>
|
19 |
+
<div class="form-field wpallimport-radio-field">
|
20 |
+
<input type="radio" id="multiple_product_subscription_period_interval_no" class="switcher" name="is_multiple_product_subscription_period_interval" value="no" <?php echo 'no' == $post['is_multiple_product_subscription_period_interval'] ? 'checked="checked"': '' ?>/>
|
21 |
+
<label for="multiple_product_subscription_period_interval_no"><?php _e('Set with XPath', PMWI_Plugin::TEXT_DOMAIN ); ?><a href="#help" class="wpallimport-help" style="top: 0;" title="<?php _e('Return a number from 1 to 6.', PMWI_Plugin::TEXT_DOMAIN) ?>">?</a></label>
|
22 |
+
<span class="wpallimport-clear"></span>
|
23 |
+
<div class="switcher-target-multiple_product_subscription_period_interval_no set_with_xpath">
|
24 |
+
<span class="wpallimport-slide-content" style="padding-left:0;">
|
25 |
+
<input type="text" class="smaller-text" name="single_product_subscription_period_interval" style="max-width:300px;" value="<?php echo esc_attr($post['single_product_subscription_period_interval']) ?>"/>
|
26 |
+
</span>
|
27 |
+
</div>
|
28 |
+
</div>
|
29 |
+
</div>
|
30 |
+
<div class="subscription-billing-period">
|
31 |
+
<div class="form-field wpallimport-radio-field">
|
32 |
+
<input type="radio" id="multiple_product_subscription_period_yes" class="switcher" name="is_multiple_product_subscription_period" value="yes" <?php echo 'no' != $post['is_multiple_product_subscription_period'] ? 'checked="checked"': '' ?>/>
|
33 |
+
<select class="select short" name="multiple_product_subscription_period">
|
34 |
+
<?php foreach ( wcs_get_subscription_period_strings() as $value => $label ) { ?>
|
35 |
+
<option value="<?php echo esc_attr( $value ); ?>" <?php selected( $value, $post['multiple_product_subscription_period'], true ) ?>><?php echo esc_html( $label ); ?></option>
|
36 |
+
<?php } ?>
|
37 |
+
</select>
|
38 |
+
</div>
|
39 |
+
<span class="wpallimport-clear"></span>
|
40 |
+
<div class="form-field wpallimport-radio-field">
|
41 |
+
<input type="radio" id="multiple_product_subscription_period_no" class="switcher" name="is_multiple_product_subscription_period" value="no" <?php echo 'no' == $post['is_multiple_product_subscription_period'] ? 'checked="checked"': '' ?>/>
|
42 |
+
<label for="multiple_product_subscription_period_no"><?php _e('Set with XPath', PMWI_Plugin::TEXT_DOMAIN ); ?><a href="#help" class="wpallimport-help" style="top: 0;" title="<?php _e('Return one of the following: day, week, month, year.', PMWI_Plugin::TEXT_DOMAIN) ?>">?</a></label>
|
43 |
+
<span class="wpallimport-clear"></span>
|
44 |
+
<div class="switcher-target-multiple_product_subscription_period_no set_with_xpath">
|
45 |
+
<span class="wpallimport-slide-content" style="padding-left:0;">
|
46 |
+
<input type="text" class="smaller-text" name="single_product_subscription_period" style="max-width:300px;" value="<?php echo esc_attr($post['single_product_subscription_period']) ?>"/>
|
47 |
+
</span>
|
48 |
+
</div>
|
49 |
+
</div>
|
50 |
+
</div>
|
51 |
+
</div>
|
52 |
+
<span class="wpallimport-clear"></span>
|
53 |
+
<div class="subscription-expiration">
|
54 |
+
<p class="form-field woocommerce-group-label"><?php _e("Expire after", PMWI_Plugin::TEXT_DOMAIN); ?><a href="#help" class="wpallimport-help" style="top: 0;" title="<?php _e('Automatically expire the subscription after this length of time. This length is in addition to any free trial or amount of time provided before a synchronised first renewal date.', PMWI_Plugin::TEXT_DOMAIN) ?>">?</a></p>
|
55 |
+
<div class="form-field wpallimport-radio-field">
|
56 |
+
<input type="radio" id="multiple_product_subscription_length_yes" class="switcher" name="is_multiple_product_subscription_length" value="yes" <?php echo 'no' != $post['is_multiple_product_subscription_length'] ? 'checked="checked"': '' ?>/>
|
57 |
+
<?php $intervals = wcs_get_subscription_ranges( $post['multiple_product_subscription_length'] ); ?>
|
58 |
+
<?php foreach ( $intervals as $group => $options ) { ?>
|
59 |
+
<select class="subscription_length-<?php echo $group;?>" style="display: none;">
|
60 |
+
<option value="0" <?php selected( 0, $post['multiple_product_subscription_length'], true ) ?>><?php _e('Never expire', PMWI_Plugin::TEXT_DOMAIN); ?></option>
|
61 |
+
<?php foreach ( $options as $value => $label ) { ?>
|
62 |
+
<?php if (!empty($value)): ?>
|
63 |
+
<option value="<?php echo $group . '-' . esc_attr( $value ); ?>" <?php selected( $value, $post['multiple_product_subscription_length'], true ) ?>><?php echo esc_html( $label ); ?></option>
|
64 |
+
<?php endif; ?>
|
65 |
+
<?php } ?>
|
66 |
+
</select>
|
67 |
+
<?php } ?>
|
68 |
+
<select class="subscription_length-xpath" style="display: none;">
|
69 |
+
<option value="0" <?php selected( 0, $post['multiple_product_subscription_length'], true ) ?>><?php _e('Never expire', PMWI_Plugin::TEXT_DOMAIN); ?></option>
|
70 |
+
<?php foreach ( $intervals as $group => $options ) { ?>
|
71 |
+
<optgroup label="<?php echo $group;?>">
|
72 |
+
<?php foreach ( $options as $value => $label ) { ?>
|
73 |
+
<?php if (!empty($value)): ?>
|
74 |
+
<option value="<?php echo $group . '-' . esc_attr( $value ); ?>" <?php selected( $value, $post['multiple_product_subscription_length'], true ) ?>><?php echo esc_html( $label ); ?></option>
|
75 |
+
<?php endif; ?>
|
76 |
+
<?php } ?>
|
77 |
+
</optgroup>
|
78 |
+
<?php } ?>
|
79 |
+
</select>
|
80 |
+
<select class="select short" name="multiple_product_subscription_length">
|
81 |
+
<option value="0" <?php selected( 0, $post['multiple_product_subscription_length'], true ) ?>><?php _e('Never expire', PMWI_Plugin::TEXT_DOMAIN); ?></option>
|
82 |
+
<?php foreach ( $intervals as $group => $options ) { ?>
|
83 |
+
<optgroup label="<?php echo $group;?>">
|
84 |
+
<?php foreach ( $options as $value => $label ) { ?>
|
85 |
+
<?php if (!empty($value)): ?>
|
86 |
+
<option value="<?php echo $group . '-' . esc_attr( $value ); ?>" <?php selected( $value, $post['multiple_product_subscription_length'], true ) ?>><?php echo esc_html( $label ); ?></option>
|
87 |
+
<?php endif; ?>
|
88 |
+
<?php } ?>
|
89 |
+
</optgroup>
|
90 |
+
<?php } ?>
|
91 |
+
</select>
|
92 |
+
</div>
|
93 |
+
<span class="wpallimport-clear"></span>
|
94 |
+
<div class="form-field wpallimport-radio-field">
|
95 |
+
<input type="radio" id="multiple_product_subscription_length_no" class="switcher" name="is_multiple_product_subscription_length" value="no" <?php echo 'no' == $post['is_multiple_product_subscription_length'] ? 'checked="checked"': '' ?>/>
|
96 |
+
<label for="multiple_product_subscription_length_no"><?php _e('Set with XPath', PMWI_Plugin::TEXT_DOMAIN ); ?><a href="#help" class="wpallimport-help" style="top: 0;" title="<?php _e('Return a value matching one of the options in the pulldown: 1 week, 2 months, etc. Use 0 for \'Never expire\'. <br><br>The period interval must match the values chosen for the billing interval. So if the subscription renews every week, it must expire after a given number of weeks.', PMWI_Plugin::TEXT_DOMAIN) ?>">?</a></label>
|
97 |
+
<span class="wpallimport-clear"></span>
|
98 |
+
<div class="switcher-target-multiple_product_subscription_length_no set_with_xpath">
|
99 |
+
<span class="wpallimport-slide-content" style="padding-left:0;">
|
100 |
+
<input type="text" class="smaller-text" name="single_product_subscription_length" style="max-width:300px;" value="<?php echo esc_attr($post['single_product_subscription_length']) ?>"/>
|
101 |
+
</span>
|
102 |
+
</div>
|
103 |
+
</div>
|
104 |
+
</div>
|
105 |
+
<hr>
|
106 |
+
<p class="form-field">
|
107 |
+
<label><?php printf(__("Sign-up fee (%s)", PMWI_Plugin::TEXT_DOMAIN), get_woocommerce_currency_symbol()); ?></label>
|
108 |
+
<input type="text" class="short" name="single_product_subscription_sign_up_fee" value="<?php echo esc_attr($post['single_product_subscription_sign_up_fee']) ?>"/>
|
109 |
+
</p>
|
110 |
+
<span class="wpallimport-clear"></span>
|
111 |
+
<div class="subscription-trial">
|
112 |
+
<p class="form-field woocommerce-group-label"><?php _e("Free trial", PMWI_Plugin::TEXT_DOMAIN); ?><a href="#help" class="wpallimport-help" style="top: 0;" title="<?php _e('An optional period of time to wait before charging the first recurring payment. Any sign up fee will still be charged at the outset of the subscription. The trial period can not exceed: 90 days, 52 weeks, 24 months or 5 years.', PMWI_Plugin::TEXT_DOMAIN) ?>">?</a></p>
|
113 |
+
<div class="form-field wpallimport-radio-field">
|
114 |
+
<input type="radio" id="multiple_product_subscription_trial_period_yes" class="switcher" name="is_multiple_product_subscription_trial_period" value="yes" <?php echo 'no' != $post['is_multiple_product_subscription_trial_period'] ? 'checked="checked"': '' ?>/>
|
115 |
+
|
116 |
+
<select class="select short" name="multiple_product_subscription_trial_period">
|
117 |
+
<option value="0" <?php selected( 0, $post['multiple_product_subscription_trial_period'], true ) ?>><?php _e('No free trial', PMWI_Plugin::TEXT_DOMAIN); ?></option>
|
118 |
+
<?php foreach ( $intervals as $group => $options ) { ?>
|
119 |
+
<optgroup label="<?php echo $group;?>">
|
120 |
+
<?php foreach ( $options as $value => $label ) { ?>
|
121 |
+
<?php if (!empty($value)): ?>
|
122 |
+
<option value="<?php echo $group . '-' . esc_attr( $value ); ?>" <?php selected( $group . '-' . esc_attr( $value ), $post['multiple_product_subscription_trial_period'], true ) ?>><?php echo esc_html( $label ); ?></option>
|
123 |
+
<?php endif; ?>
|
124 |
+
<?php } ?>
|
125 |
+
</optgroup>
|
126 |
+
<?php } ?>
|
127 |
+
</select>
|
128 |
+
</div>
|
129 |
+
<span class="wpallimport-clear"></span>
|
130 |
+
<div class="form-field wpallimport-radio-field">
|
131 |
+
<input type="radio" id="multiple_product_subscription_trial_period_no" class="switcher" name="is_multiple_product_subscription_trial_period" value="no" <?php echo 'no' == $post['is_multiple_product_subscription_trial_period'] ? 'checked="checked"': '' ?>/>
|
132 |
+
<label for="multiple_product_subscription_trial_period_no"><?php _e('Set with XPath', PMWI_Plugin::TEXT_DOMAIN ); ?><a href="#help" class="wpallimport-help" style="top: 0;" title="<?php _e('Return a value matching one of the options in the pulldown: 1 week, 2 months, etc.', PMWI_Plugin::TEXT_DOMAIN) ?>">?</a></label>
|
133 |
+
<span class="wpallimport-clear"></span>
|
134 |
+
<div class="switcher-target-multiple_product_subscription_trial_period_no set_with_xpath">
|
135 |
+
<span class="wpallimport-slide-content" style="padding-left:0;">
|
136 |
+
<input type="text" class="smaller-text" name="single_product_subscription_trial_period" style="max-width:300px;" value="<?php echo esc_attr($post['single_product_subscription_trial_period']) ?>"/>
|
137 |
+
</span>
|
138 |
+
</div>
|
139 |
+
</div>
|
140 |
+
</div>
|
141 |
+
</div>
|
views/admin/import/product/index.php
CHANGED
@@ -18,12 +18,16 @@
|
|
18 |
<div class="switcher-target-multiple_product_type_yes" style="float:left;">
|
19 |
<div class="input">
|
20 |
<?php
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
|
|
|
|
|
|
|
|
27 |
?>
|
28 |
<select name="multiple_product_type" id="product-type">
|
29 |
<optgroup label="Product Type">
|
@@ -54,7 +58,7 @@
|
|
54 |
|
55 |
<li class="general_options active"><a href="javascript:void(0);" rel="general_product_data"><?php _e('General',PMWI_Plugin::TEXT_DOMAIN);?></a></li>
|
56 |
|
57 |
-
<li class="inventory_tab show_if_simple show_if_variable show_if_grouped inventory_options" style="display: block;"><a href="javascript:void(0);" rel="inventory_product_data"><?php _e('Inventory', PMWI_Plugin::TEXT_DOMAIN);?></a></li>
|
58 |
|
59 |
<li class="shipping_tab shipping_options hide_if_grouped hide_if_external"><a href="javascript:void(0);" rel="shipping_product_data"><?php _e('Shipping', PMWI_Plugin::TEXT_DOMAIN);?></a></li>
|
60 |
|
@@ -64,7 +68,7 @@
|
|
64 |
|
65 |
<li class="advanced_tab advanced_options"><a href="javascript:void(0);" rel="advanced_product_data"><?php _e('Advanced',PMWI_Plugin::TEXT_DOMAIN);?></a></li>
|
66 |
|
67 |
-
<li class="variations_tab show_if_variable variation_options"><a title="Variations for variable products are defined here." href="javascript:void(0);" rel="variable_product_options"><?php _e('Variations',PMWI_Plugin::TEXT_DOMAIN);?></a></li>
|
68 |
|
69 |
<li class="options_tab advanced_options"><a title="Variations for variable products are defined here." href="javascript:void(0);" rel="add_on_options"><?php _e('Add-On Options', PMWI_Plugin::TEXT_DOMAIN);?></a></li>
|
70 |
|
18 |
<div class="switcher-target-multiple_product_type_yes" style="float:left;">
|
19 |
<div class="input">
|
20 |
<?php
|
21 |
+
$product_types = array(
|
22 |
+
'simple' => __( 'Simple product', PMWI_Plugin::TEXT_DOMAIN ),
|
23 |
+
'grouped' => __( 'Grouped product', PMWI_Plugin::TEXT_DOMAIN ),
|
24 |
+
'external' => __( 'External/Affiliate product', PMWI_Plugin::TEXT_DOMAIN ),
|
25 |
+
'variable' => __( 'Variable product', PMWI_Plugin::TEXT_DOMAIN )
|
26 |
+
);
|
27 |
+
$product_type_selector = apply_filters( 'product_type_selector', $product_types, false );
|
28 |
+
if (isset($product_type_selector['variable-subscription'])) {
|
29 |
+
unset($product_type_selector['variable-subscription']);
|
30 |
+
}
|
31 |
?>
|
32 |
<select name="multiple_product_type" id="product-type">
|
33 |
<optgroup label="Product Type">
|
58 |
|
59 |
<li class="general_options active"><a href="javascript:void(0);" rel="general_product_data"><?php _e('General',PMWI_Plugin::TEXT_DOMAIN);?></a></li>
|
60 |
|
61 |
+
<li class="inventory_tab show_if_simple show_if_variable show_if_grouped show_if_subscription show_if_variable_subscription inventory_options" style="display: block;"><a href="javascript:void(0);" rel="inventory_product_data"><?php _e('Inventory', PMWI_Plugin::TEXT_DOMAIN);?></a></li>
|
62 |
|
63 |
<li class="shipping_tab shipping_options hide_if_grouped hide_if_external"><a href="javascript:void(0);" rel="shipping_product_data"><?php _e('Shipping', PMWI_Plugin::TEXT_DOMAIN);?></a></li>
|
64 |
|
68 |
|
69 |
<li class="advanced_tab advanced_options"><a href="javascript:void(0);" rel="advanced_product_data"><?php _e('Advanced',PMWI_Plugin::TEXT_DOMAIN);?></a></li>
|
70 |
|
71 |
+
<li class="variations_tab show_if_variable show_if_variable_subscription variation_options"><a title="Variations for variable products are defined here." href="javascript:void(0);" rel="variable_product_options"><?php _e('Variations',PMWI_Plugin::TEXT_DOMAIN);?></a></li>
|
72 |
|
73 |
<li class="options_tab advanced_options"><a title="Variations for variable products are defined here." href="javascript:void(0);" rel="add_on_options"><?php _e('Add-On Options', PMWI_Plugin::TEXT_DOMAIN);?></a></li>
|
74 |
|
views/admin/import/shop_order/_tabs/_order_item_products.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
<?php
|
19 |
foreach ($post['pmwi_order']['products'] as $i => $product):
|
20 |
|
21 |
-
$product += array('sku' => '', 'qty' => '', 'price_per_unit' => '', 'tax_rates' => array());
|
22 |
|
23 |
if (empty($product['sku'])) continue;
|
24 |
?>
|
@@ -26,21 +26,25 @@
|
|
26 |
<tr>
|
27 |
<td colspan="2">
|
28 |
<div style="float:left; width:50%;">
|
29 |
-
<label><?php _e('Product
|
30 |
-
<input type="text" class="short rad4" name="pmwi_order[products][<?php echo $i; ?>][
|
31 |
</div>
|
32 |
<div style="float:right; width:50%;">
|
33 |
<label><?php _e('Quantity', PMWI_Plugin::TEXT_DOMAIN); ?></label>
|
34 |
<input type="text" class="short rad4" name="pmwi_order[products][<?php echo $i; ?>][qty]" value="<?php echo esc_attr($product['qty']) ?>" style="width:95%;"/>
|
35 |
</div>
|
36 |
<div class="wpallimport-clear"></div>
|
|
|
|
|
|
|
|
|
37 |
<div style="float:right; width:50%;">
|
38 |
<label><?php _e('Price', PMWI_Plugin::TEXT_DOMAIN); ?></label>
|
39 |
<input type="text" class="short rad4" name="pmwi_order[products][<?php echo $i; ?>][price_per_unit]" value="<?php echo esc_attr($product['price_per_unit']) ?>" style="width:95%;"/>
|
40 |
</div>
|
41 |
<div class="wpallimport-clear"></div>
|
42 |
<!-- Product Taxes -->
|
43 |
-
|
44 |
<div class="wpallimport-clear"></div>
|
45 |
<div class="switcher-target-taxes_existing_products_<?php echo $i; ?>">
|
46 |
<span class="wpallimport-slide-content" style="padding-left:0;">
|
@@ -140,39 +144,43 @@
|
|
140 |
</td>
|
141 |
<td class="action remove"><a href="#remove" style="top: 33px;"></a></td>
|
142 |
</tr>
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
</table>
|
151 |
</span>
|
152 |
</div>
|
153 |
<!-- <hr> -->
|
154 |
</td>
|
155 |
-
<td class="action remove"
|
156 |
</tr>
|
157 |
<?php endforeach; ?>
|
158 |
<tr class="template">
|
159 |
<td colspan="2">
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
<div style="float:right; width:50%;">
|
165 |
<label><?php _e('Quantity', PMWI_Plugin::TEXT_DOMAIN); ?></label>
|
166 |
<input type="text" class="short rad4" name="pmwi_order[products][ROWNUMBER][qty]" value="" style="width:95%;"/>
|
167 |
</div>
|
168 |
<div class="wpallimport-clear"></div>
|
|
|
|
|
|
|
|
|
169 |
<div style="float:right; width:50%;">
|
170 |
<label><?php _e('Price', PMWI_Plugin::TEXT_DOMAIN); ?></label>
|
171 |
<input type="text" class="short rad4" name="pmwi_order[products][ROWNUMBER][price_per_unit]" value="" style="width:95%;"/>
|
172 |
</div>
|
173 |
<div class="wpallimport-clear"></div>
|
174 |
<!-- Product Taxes -->
|
175 |
-
|
176 |
<div class="wpallimport-clear"></div>
|
177 |
<div class="switcher-target-taxes_existing_products_ROWNUMBER">
|
178 |
<span class="wpallimport-slide-content" style="padding-left:0;">
|
@@ -220,19 +228,19 @@
|
|
220 |
</td>
|
221 |
<td class="action remove"><a href="#remove" style="top: 33px;"></a></td>
|
222 |
</tr>
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
</table>
|
231 |
</span>
|
232 |
</div>
|
233 |
<!-- <hr> -->
|
234 |
</td>
|
235 |
-
<td class="action remove"
|
236 |
</tr>
|
237 |
<tr class="wpallimport-row-actions" style="display:none;">
|
238 |
<td colspan="3">
|
@@ -258,8 +266,9 @@
|
|
258 |
foreach ($post['pmwi_order']['manual_products'] as $i => $product):
|
259 |
|
260 |
$product += array(
|
261 |
-
'
|
262 |
-
'
|
|
|
263 |
'meta_value' => array(),
|
264 |
'price_per_unit' => '',
|
265 |
'qty' => '',
|
@@ -272,7 +281,13 @@
|
|
272 |
<tr class="form-field">
|
273 |
<td colspan="2">
|
274 |
|
275 |
-
<label><?php _e('Product
|
|
|
|
|
|
|
|
|
|
|
|
|
276 |
<div class="clear"></div>
|
277 |
<input type="text" class="short rad4" name="pmwi_order[manual_products][<?php echo $i; ?>][sku]" value="<?php echo esc_attr($product['sku']) ?>" style="width:100%;"/>
|
278 |
|
@@ -323,7 +338,7 @@
|
|
323 |
</tr>
|
324 |
</table>
|
325 |
|
326 |
-
|
327 |
<div class="wpallimport-clear"></div>
|
328 |
<div class="switcher-target-taxes_manual_products_<?php echo $i; ?>">
|
329 |
<span class="wpallimport-slide-content" style="padding-left:0;">
|
@@ -425,26 +440,32 @@
|
|
425 |
</td>
|
426 |
<td class="action remove"><a href="#remove" style="top: 33px;"></a></td>
|
427 |
</tr>
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
</table>
|
436 |
</span>
|
437 |
</div>
|
438 |
<!-- <hr> -->
|
439 |
</td>
|
440 |
-
<td class="action remove"
|
441 |
</tr>
|
442 |
|
443 |
<?php endforeach; ?>
|
444 |
<tr class="form-field template">
|
445 |
<td colspan="2">
|
446 |
|
447 |
-
<label><?php _e('Product
|
|
|
|
|
|
|
|
|
|
|
|
|
448 |
<div class="clear"></div>
|
449 |
<input type="text" class="short rad4" name="pmwi_order[manual_products][ROWNUMBER][sku]" value="" style="width:100%;"/>
|
450 |
|
@@ -482,7 +503,7 @@
|
|
482 |
</tr>
|
483 |
</table>
|
484 |
|
485 |
-
|
486 |
<div class="wpallimport-clear"></div>
|
487 |
<div class="switcher-target-taxes_manual_products_ROWNUMBER">
|
488 |
<span class="wpallimport-slide-content" style="padding-left:0;">
|
@@ -530,19 +551,19 @@
|
|
530 |
</td>
|
531 |
<td class="action remove"><a href="#remove" style="top: 33px;"></a></td>
|
532 |
</tr>
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
</table>
|
541 |
</span>
|
542 |
</div>
|
543 |
<!-- <hr> -->
|
544 |
</td>
|
545 |
-
<td class="action remove"
|
546 |
</tr>
|
547 |
<tr class="wpallimport-row-actions" style="display:none;">
|
548 |
<td colspan="3">
|
18 |
<?php
|
19 |
foreach ($post['pmwi_order']['products'] as $i => $product):
|
20 |
|
21 |
+
$product += array('unique_key' => '', 'sku' => '', 'qty' => '', 'price_per_unit' => '', 'tax_rates' => array());
|
22 |
|
23 |
if (empty($product['sku'])) continue;
|
24 |
?>
|
26 |
<tr>
|
27 |
<td colspan="2">
|
28 |
<div style="float:left; width:50%;">
|
29 |
+
<label><?php _e('Product Unique Key', PMWI_Plugin::TEXT_DOMAIN); ?></label>
|
30 |
+
<input type="text" class="short rad4" name="pmwi_order[products][<?php echo $i; ?>][unique_key]" value="<?php echo esc_attr($product['unique_key']) ?>" style="width:95%;"/>
|
31 |
</div>
|
32 |
<div style="float:right; width:50%;">
|
33 |
<label><?php _e('Quantity', PMWI_Plugin::TEXT_DOMAIN); ?></label>
|
34 |
<input type="text" class="short rad4" name="pmwi_order[products][<?php echo $i; ?>][qty]" value="<?php echo esc_attr($product['qty']) ?>" style="width:95%;"/>
|
35 |
</div>
|
36 |
<div class="wpallimport-clear"></div>
|
37 |
+
<div style="float:left; width:50%;">
|
38 |
+
<label><?php _e('Product SKU', PMWI_Plugin::TEXT_DOMAIN); ?></label>
|
39 |
+
<input type="text" class="short rad4" name="pmwi_order[products][<?php echo $i; ?>][sku]" value="<?php echo esc_attr($product['sku']) ?>" style="width:95%;"/>
|
40 |
+
</div>
|
41 |
<div style="float:right; width:50%;">
|
42 |
<label><?php _e('Price', PMWI_Plugin::TEXT_DOMAIN); ?></label>
|
43 |
<input type="text" class="short rad4" name="pmwi_order[products][<?php echo $i; ?>][price_per_unit]" value="<?php echo esc_attr($product['price_per_unit']) ?>" style="width:95%;"/>
|
44 |
</div>
|
45 |
<div class="wpallimport-clear"></div>
|
46 |
<!-- Product Taxes -->
|
47 |
+
<a class="switcher" id="taxes_existing_products_<?php echo $i; ?>" href="javascript:void(0);" style="display: block;margin: 10px 0 15px;width: 50px;"><span>-</span> <?php _e("Taxes", PMWI_Plugin::TEXT_DOMAIN); ?></a>
|
48 |
<div class="wpallimport-clear"></div>
|
49 |
<div class="switcher-target-taxes_existing_products_<?php echo $i; ?>">
|
50 |
<span class="wpallimport-slide-content" style="padding-left:0;">
|
144 |
</td>
|
145 |
<td class="action remove"><a href="#remove" style="top: 33px;"></a></td>
|
146 |
</tr>
|
147 |
+
<tr>
|
148 |
+
<td colspan="2">
|
149 |
+
<div class="form-field">
|
150 |
+
<a class="add-new-line" title="Add Tax" href="javascript:void(0);"><?php _e("Add Tax", " wp_all_import_plugin"); ?></a>
|
151 |
+
</div>
|
152 |
+
</td>
|
153 |
+
</tr>
|
154 |
</table>
|
155 |
</span>
|
156 |
</div>
|
157 |
<!-- <hr> -->
|
158 |
</td>
|
159 |
+
<td class="action remove"><a href="#remove" style="top: 33px;"></a></td>
|
160 |
</tr>
|
161 |
<?php endforeach; ?>
|
162 |
<tr class="template">
|
163 |
<td colspan="2">
|
164 |
+
<div style="float:left; width:50%;">
|
165 |
+
<label><?php _e('Product Unique Key', PMWI_Plugin::TEXT_DOMAIN); ?></label>
|
166 |
+
<input type="text" class="short rad4" name="pmwi_order[products][ROWNUMBER][unique_key]" value="" style="width:95%;"/>
|
167 |
+
</div>
|
168 |
<div style="float:right; width:50%;">
|
169 |
<label><?php _e('Quantity', PMWI_Plugin::TEXT_DOMAIN); ?></label>
|
170 |
<input type="text" class="short rad4" name="pmwi_order[products][ROWNUMBER][qty]" value="" style="width:95%;"/>
|
171 |
</div>
|
172 |
<div class="wpallimport-clear"></div>
|
173 |
+
<div style="float:left; width:50%;">
|
174 |
+
<label><?php _e('Product SKU', PMWI_Plugin::TEXT_DOMAIN); ?></label>
|
175 |
+
<input type="text" class="short rad4" name="pmwi_order[products][ROWNUMBER][sku]" value="" style="width:95%;"/>
|
176 |
+
</div>
|
177 |
<div style="float:right; width:50%;">
|
178 |
<label><?php _e('Price', PMWI_Plugin::TEXT_DOMAIN); ?></label>
|
179 |
<input type="text" class="short rad4" name="pmwi_order[products][ROWNUMBER][price_per_unit]" value="" style="width:95%;"/>
|
180 |
</div>
|
181 |
<div class="wpallimport-clear"></div>
|
182 |
<!-- Product Taxes -->
|
183 |
+
<a class="switcher" id="taxes_existing_products_ROWNUMBER" href="javascript:void(0);" style="display: block;margin: 10px 0 15px;width: 50px;"><span>-</span> <?php _e("Taxes", PMWI_Plugin::TEXT_DOMAIN); ?></a>
|
184 |
<div class="wpallimport-clear"></div>
|
185 |
<div class="switcher-target-taxes_existing_products_ROWNUMBER">
|
186 |
<span class="wpallimport-slide-content" style="padding-left:0;">
|
228 |
</td>
|
229 |
<td class="action remove"><a href="#remove" style="top: 33px;"></a></td>
|
230 |
</tr>
|
231 |
+
<tr>
|
232 |
+
<td colspan="2">
|
233 |
+
<div class="form-field">
|
234 |
+
<a class="add-new-line" title="Add Tax" href="javascript:void(0);"><?php _e("Add Tax", " wp_all_import_plugin"); ?></a>
|
235 |
+
</div>
|
236 |
+
</td>
|
237 |
+
</tr>
|
238 |
</table>
|
239 |
</span>
|
240 |
</div>
|
241 |
<!-- <hr> -->
|
242 |
</td>
|
243 |
+
<td class="action remove"><a href="#remove" style="top: 33px;"></a></td>
|
244 |
</tr>
|
245 |
<tr class="wpallimport-row-actions" style="display:none;">
|
246 |
<td colspan="3">
|
266 |
foreach ($post['pmwi_order']['manual_products'] as $i => $product):
|
267 |
|
268 |
$product += array(
|
269 |
+
'unique_key' => '',
|
270 |
+
'sku' => '',
|
271 |
+
'meta_name' => array(),
|
272 |
'meta_value' => array(),
|
273 |
'price_per_unit' => '',
|
274 |
'qty' => '',
|
281 |
<tr class="form-field">
|
282 |
<td colspan="2">
|
283 |
|
284 |
+
<label><?php _e('Product Unique Key', PMWI_Plugin::TEXT_DOMAIN); ?></label>
|
285 |
+
<div class="clear"></div>
|
286 |
+
<input type="text" class="short rad4" name="pmwi_order[manual_products][<?php echo $i; ?>][unique_key]" value="<?php echo esc_attr($product['unique_key']) ?>" style="width:100%;"/>
|
287 |
+
|
288 |
+
<span class="wpallimport-clear"></span>
|
289 |
+
|
290 |
+
<label><?php _e('Product Name', PMWI_Plugin::TEXT_DOMAIN); ?></label>
|
291 |
<div class="clear"></div>
|
292 |
<input type="text" class="short rad4" name="pmwi_order[manual_products][<?php echo $i; ?>][sku]" value="<?php echo esc_attr($product['sku']) ?>" style="width:100%;"/>
|
293 |
|
338 |
</tr>
|
339 |
</table>
|
340 |
|
341 |
+
<a class="switcher" id="taxes_manual_products_<?php echo $i; ?>" href="javascript:void(0);" style="display: block;margin: 10px 0 15px;width: 50px;"><span>-</span> <?php _e("Taxes", PMWI_Plugin::TEXT_DOMAIN); ?></a>
|
342 |
<div class="wpallimport-clear"></div>
|
343 |
<div class="switcher-target-taxes_manual_products_<?php echo $i; ?>">
|
344 |
<span class="wpallimport-slide-content" style="padding-left:0;">
|
440 |
</td>
|
441 |
<td class="action remove"><a href="#remove" style="top: 33px;"></a></td>
|
442 |
</tr>
|
443 |
+
<tr>
|
444 |
+
<td colspan="2">
|
445 |
+
<div class="form-field">
|
446 |
+
<a class="add-new-line" title="Add Tax" href="javascript:void(0);"><?php _e("Add Tax", " wp_all_import_plugin"); ?></a>
|
447 |
+
</div>
|
448 |
+
</td>
|
449 |
+
</tr>
|
450 |
</table>
|
451 |
</span>
|
452 |
</div>
|
453 |
<!-- <hr> -->
|
454 |
</td>
|
455 |
+
<td class="action remove"><a href="#remove" style="top: 33px;"></a></td>
|
456 |
</tr>
|
457 |
|
458 |
<?php endforeach; ?>
|
459 |
<tr class="form-field template">
|
460 |
<td colspan="2">
|
461 |
|
462 |
+
<label><?php _e('Product Unique Key', PMWI_Plugin::TEXT_DOMAIN); ?></label>
|
463 |
+
<div class="clear"></div>
|
464 |
+
<input type="text" class="short rad4" name="pmwi_order[manual_products][ROWNUMBER][unique_key]" value="" style="width:100%;"/>
|
465 |
+
|
466 |
+
<span class="wpallimport-clear"></span>
|
467 |
+
|
468 |
+
<label><?php _e('Product Name', PMWI_Plugin::TEXT_DOMAIN); ?></label>
|
469 |
<div class="clear"></div>
|
470 |
<input type="text" class="short rad4" name="pmwi_order[manual_products][ROWNUMBER][sku]" value="" style="width:100%;"/>
|
471 |
|
503 |
</tr>
|
504 |
</table>
|
505 |
|
506 |
+
<a class="switcher" id="taxes_manual_products_ROWNUMBER" href="javascript:void(0);" style="display: block;margin: 10px 0 15px;width: 50px;"><span>-</span> <?php _e("Taxes", PMWI_Plugin::TEXT_DOMAIN); ?></a>
|
507 |
<div class="wpallimport-clear"></div>
|
508 |
<div class="switcher-target-taxes_manual_products_ROWNUMBER">
|
509 |
<span class="wpallimport-slide-content" style="padding-left:0;">
|
551 |
</td>
|
552 |
<td class="action remove"><a href="#remove" style="top: 33px;"></a></td>
|
553 |
</tr>
|
554 |
+
<tr>
|
555 |
+
<td colspan="2">
|
556 |
+
<div class="form-field">
|
557 |
+
<a class="add-new-line" title="Add Tax" href="javascript:void(0);"><?php _e("Add Tax", " wp_all_import_plugin"); ?></a>
|
558 |
+
</div>
|
559 |
+
</td>
|
560 |
+
</tr>
|
561 |
</table>
|
562 |
</span>
|
563 |
</div>
|
564 |
<!-- <hr> -->
|
565 |
</td>
|
566 |
+
<td class="action remove"><a href="#remove" style="top: 33px;"></a></td>
|
567 |
</tr>
|
568 |
<tr class="wpallimport-row-actions" style="display:none;">
|
569 |
<td colspan="3">
|
views/admin/import/shop_order/_tabs/_order_item_taxes.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
</div> -->
|
8 |
<table class="form-field wpallimport_variable_table" style="width:98%;">
|
9 |
<?php
|
10 |
-
$tax_classes =
|
11 |
$classes_options = array();
|
12 |
$classes_options[''] = __( 'Standard', PMWI_Plugin::TEXT_DOMAIN );
|
13 |
if ( $tax_classes )
|
@@ -53,7 +53,7 @@
|
|
53 |
foreach ($classes_options as $key => $value):?>
|
54 |
<optgroup label="<?php echo $value; ?>">
|
55 |
<?php foreach ( WC_Tax::get_rates_for_tax_class($key) as $rate_key => $rate): $taxes_for_tooltip[] = $rate->tax_rate_id . " - " . $rate->tax_rate_name;?>
|
56 |
-
<option value="<?php echo $rate->tax_rate_id;?>" <?php if ($tax['tax_code'] == $rate->tax_rate_id) echo 'selected="selected"';?>><?php echo $rate->tax_rate_name;?></option>
|
57 |
<?php endforeach; ?>
|
58 |
</optgroup>
|
59 |
<?php endforeach; ?>
|
@@ -101,7 +101,7 @@
|
|
101 |
<?php foreach ($classes_options as $key => $value):?>
|
102 |
<optgroup label="<?php echo $value; ?>">
|
103 |
<?php foreach ( WC_Tax::get_rates_for_tax_class($key) as $rate_key => $rate): ?>
|
104 |
-
<option value="<?php echo $rate->tax_rate_id;?>"><?php echo $rate->tax_rate_name;?></option>
|
105 |
<?php endforeach; ?>
|
106 |
</optgroup>
|
107 |
<?php endforeach; ?>
|
7 |
</div> -->
|
8 |
<table class="form-field wpallimport_variable_table" style="width:98%;">
|
9 |
<?php
|
10 |
+
$tax_classes = \WC_Tax::get_tax_classes();
|
11 |
$classes_options = array();
|
12 |
$classes_options[''] = __( 'Standard', PMWI_Plugin::TEXT_DOMAIN );
|
13 |
if ( $tax_classes )
|
53 |
foreach ($classes_options as $key => $value):?>
|
54 |
<optgroup label="<?php echo $value; ?>">
|
55 |
<?php foreach ( WC_Tax::get_rates_for_tax_class($key) as $rate_key => $rate): $taxes_for_tooltip[] = $rate->tax_rate_id . " - " . $rate->tax_rate_name;?>
|
56 |
+
<option value="<?php echo $rate->tax_rate_id;?>" <?php if ($tax['tax_code'] == $rate->tax_rate_id) echo 'selected="selected"';?>><?php echo $rate->tax_rate_id . " - " . $rate->tax_rate_name;?></option>
|
57 |
<?php endforeach; ?>
|
58 |
</optgroup>
|
59 |
<?php endforeach; ?>
|
101 |
<?php foreach ($classes_options as $key => $value):?>
|
102 |
<optgroup label="<?php echo $value; ?>">
|
103 |
<?php foreach ( WC_Tax::get_rates_for_tax_class($key) as $rate_key => $rate): ?>
|
104 |
+
<option value="<?php echo $rate->tax_rate_id;?>"><?php echo $rate->tax_rate_id . " - " . $rate->tax_rate_name;?></option>
|
105 |
<?php endforeach; ?>
|
106 |
</optgroup>
|
107 |
<?php endforeach; ?>
|