blocks
4 years ago
options
4 years ago
template
4 years ago
google.php
4 years ago
index.php
4 years ago
options.php
4 years ago
process.php
4 years ago
success_page.php
4 years ago
template.php
4 years ago
variation_options.php
4 years ago
variation_options_common.php
4 years ago
variation_options.php
87 lines
| 1 | <?php |
| 2 | /** @var $post */ |
| 3 | /** @var string $random */ |
| 4 | $random = uniqid(); |
| 5 | ?> |
| 6 | <div class="product_variations"> |
| 7 | <h4 style="margin-top: 20px;"><?php _e('Product Variations', 'wp_all_export_plugin'); ?> |
| 8 | <a href="#help" class="wpallexport-help" |
| 9 | style="position: relative; top: 0px;" |
| 10 | title="<?php _e('WooCommerce stores each product variation as a separate product in the database, along with a parent product to tie all of the variations together.<br/><br/>If the product title is \'T-Shirt\', then the parent product will be titled \'T-Shirt\', and in the database each size/color combination will be a separate product with a title like \'Variation #23 of T-Shirt\'.', 'wp_all_export_plugin'); ?>">?</a></h4> |
| 11 | <div class="input" style="display: inline-block; width: 100%;"> |
| 12 | <div> |
| 13 | <label> |
| 14 | <input type="radio" class="export_variations <?php if (PMXE_EDITION != 'paid') { |
| 15 | echo "variations_disabled"; |
| 16 | } ?>" |
| 17 | value="<?php echo XmlExportEngine::VARIABLE_PRODUCTS_EXPORT_PARENT_AND_VARIATION; ?>" <?php if ($post['export_variations'] == XmlExportEngine::VARIABLE_PRODUCTS_EXPORT_PARENT_AND_VARIATION && PMXE_EDITION == 'paid') { ?> checked="checked" <?php } ?> |
| 18 | name="<?php echo $random?>_export_variations"/><?php _e("Export product variations and their parent products", 'wp_all_export_plugin'); ?> |
| 19 | </label> |
| 20 | <div class="sub-options sub-options-<?php echo XmlExportEngine::VARIABLE_PRODUCTS_EXPORT_PARENT_AND_VARIATION;?>"> |
| 21 | <label style="display: block; margin-bottom: 8px;"> |
| 22 | <input type="radio" |
| 23 | name="<?php echo $random; ?>_export_variations_title_1" |
| 24 | value="<?php echo XmlExportEngine::VARIATION_USE_PARENT_TITLE; ?>" |
| 25 | <?php if($post['export_variations_title'] == XmlExportEngine::VARIATION_USE_PARENT_TITLE) {?> |
| 26 | checked="checked" |
| 27 | <?php }?> |
| 28 | class="export_variations_title"> |
| 29 | <?php _e("Product variations use the parent product title", 'wp_all_export_plugin');?> |
| 30 | </label> |
| 31 | <div class="clear"></div> |
| 32 | <label style="display: block; margin-bottom: 8px;"> |
| 33 | <input type="radio" |
| 34 | name="<?php echo $random; ?>_export_variations_title_1" |
| 35 | value="<?php echo XmlExportEngine::VARIATION_USE_DEFAULT_TITLE; ?>" |
| 36 | <?php if($post['export_variations_title'] == XmlExportEngine::VARIATION_USE_DEFAULT_TITLE) { ?> |
| 37 | checked="checked" |
| 38 | <?php } ?> |
| 39 | class="export_variations_title"> |
| 40 | <?php _e("Product variations use the default variation product title", 'wp_all_export_plugin'); ?> |
| 41 | </label> |
| 42 | </div> |
| 43 | </div> |
| 44 | <div class="clear"></div> |
| 45 | <div style="margin: 6px 0;"> |
| 46 | <label> |
| 47 | <input type="radio" class="export_variations" |
| 48 | value="<?php echo XmlExportEngine::VARIABLE_PRODUCTS_EXPORT_VARIATION; ?>" <?php if ($post['export_variations'] == XmlExportEngine::VARIABLE_PRODUCTS_EXPORT_VARIATION || PMXE_EDITION == 'free') { ?> checked="checked" <?php } ?> |
| 49 | name="<?php echo $random; ?>_export_variations"/><?php _e("Only export product variations", 'wp_all_export_plugin'); ?> |
| 50 | </label> |
| 51 | <div class="sub-options sub-options-<?php echo XmlExportEngine::VARIABLE_PRODUCTS_EXPORT_VARIATION; ?>"> |
| 52 | <label style="display: block; margin-bottom: 8px;"> |
| 53 | <input type="radio" |
| 54 | name="<?php echo $random; ?>_export_variations_title_2" |
| 55 | value="<?php echo XmlExportEngine::VARIATION_USE_PARENT_TITLE; ?>" |
| 56 | <?php if($post['export_variations_title'] == XmlExportEngine::VARIATION_USE_PARENT_TITLE) {?> |
| 57 | checked="checked" |
| 58 | <?php }?> |
| 59 | class="export_variations_title"> |
| 60 | <?php _e("Product variations use the parent product title", 'wp_all_export_plugin'); ?> |
| 61 | </label> |
| 62 | <div class="clear"></div> |
| 63 | <label> |
| 64 | <input type="radio" |
| 65 | name="<?php echo $random; ?>_export_variations_title_2" |
| 66 | value="<?php echo XmlExportEngine::VARIATION_USE_DEFAULT_TITLE; ?>" |
| 67 | <?php if($post['export_variations_title'] == XmlExportEngine::VARIATION_USE_DEFAULT_TITLE) {?> |
| 68 | checked="checked" |
| 69 | <?php } ?> |
| 70 | class="export_variations_title"> |
| 71 | <?php _e("Product variations use the default variation product title", 'wp_all_export_plugin'); ?> |
| 72 | </label> |
| 73 | </div> |
| 74 | </div> |
| 75 | <div class="clear"></div> |
| 76 | <div style="margin: 6px 0;"> |
| 77 | <label> |
| 78 | <input type="radio" class="export_variations <?php if (PMXE_EDITION != 'paid') { |
| 79 | echo "variations_disabled"; |
| 80 | } ?>" |
| 81 | value="<?php echo XmlExportEngine::VARIABLE_PRODUCTS_EXPORT_PARENT; ?>" <?php if ($post['export_variations'] == XmlExportEngine::VARIABLE_PRODUCTS_EXPORT_PARENT && PMXE_EDITION == 'paid') { ?> checked="checked" <?php } ?> |
| 82 | name="<?php echo $random?>_export_variations"/><?php _e("Only export parent products", 'wp_all_export_plugin'); ?> |
| 83 | </label> |
| 84 | </div> |
| 85 | |
| 86 | </div> |
| 87 | </div> |