blocks
4 weeks ago
options
4 weeks ago
template
4 weeks ago
google.php
4 weeks ago
index.php
4 weeks ago
options.php
4 weeks ago
process.php
4 weeks ago
success_page.php
4 weeks ago
template.php
4 weeks ago
variation_options.php
4 weeks ago
variation_options_common.php
3 years ago
variation_options.php
102 lines
| 1 | <?php |
| 2 | if(!defined('ABSPATH')) { |
| 3 | die(); |
| 4 | } |
| 5 | // phpcs:ignoreFile WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- variables in template files inherited from controller render() scope |
| 6 | /** @var $post */ |
| 7 | /** @var string $random */ |
| 8 | $random = uniqid(); |
| 9 | ?> |
| 10 | <div class="product_variations"> |
| 11 | <h4 style="margin-top: 20px;"><?php esc_html_e('Product Variations', 'wp-all-export'); ?> |
| 12 | <a href="#help" class="wpallexport-help" |
| 13 | style="position: relative; top: 0px;" |
| 14 | title="<?php esc_attr_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. 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'); ?>">?</a></h4> |
| 15 | <div class="input" style="display: inline-block; width: 100%;"> |
| 16 | <div> |
| 17 | <label> |
| 18 | <input disabled type="radio" class="export_variations <?php if (PMXE_EDITION != 'paid') { |
| 19 | echo "variations_disabled"; |
| 20 | } ?>" |
| 21 | value="<?php echo esc_attr(XmlExportEngine::VARIABLE_PRODUCTS_EXPORT_PARENT_AND_VARIATION); ?>" |
| 22 | name="<?php echo esc_attr($random); ?>_export_variations"/><?php esc_html_e("Export product variations and their parent products", 'wp-all-export'); ?> |
| 23 | </label> |
| 24 | <div style="display: none;" class="sub-options sub-options-<?php echo esc_attr(XmlExportEngine::VARIABLE_PRODUCTS_EXPORT_PARENT_AND_VARIATION);?>"> |
| 25 | <label style="display: block; margin-bottom: 8px;"> |
| 26 | <input type="radio" disabled |
| 27 | name="<?php echo esc_attr($random); ?>_export_variations_title_1" |
| 28 | value="<?php echo esc_attr(XmlExportEngine::VARIATION_USE_PARENT_TITLE); ?>" |
| 29 | |
| 30 | class="export_variations_title"> |
| 31 | <?php esc_html_e("Product variations use the parent product title", 'wp-all-export');?> |
| 32 | </label> |
| 33 | <div class="clear"></div> |
| 34 | <label style="display: block; margin-bottom: 8px;"> |
| 35 | <input type="radio" |
| 36 | name="<?php echo esc_attr($random); ?>_export_variations_title_1" |
| 37 | value="<?php echo esc_attr(XmlExportEngine::VARIATION_USE_DEFAULT_TITLE); ?>" |
| 38 | |
| 39 | class="export_variations_title" disabled> |
| 40 | <?php esc_html_e("Product variations use the default variation product title", 'wp-all-export'); ?> |
| 41 | </label> |
| 42 | </div> |
| 43 | </div> |
| 44 | <div class="clear"></div> |
| 45 | <div style="margin: 6px 0;"> |
| 46 | <label> |
| 47 | <input disabled type="radio" class="export_variations" |
| 48 | value="<?php echo esc_attr(XmlExportEngine::VARIABLE_PRODUCTS_EXPORT_VARIATION); ?>" |
| 49 | name="<?php echo esc_attr($random); ?>_export_variations"/><?php esc_html_e("Only export product variations", 'wp-all-export'); ?> |
| 50 | </label> |
| 51 | <div class="sub-options sub-options-<?php echo esc_attr(XmlExportEngine::VARIABLE_PRODUCTS_EXPORT_VARIATION); ?>"> |
| 52 | <label style="display: block; margin-bottom: 8px;"> |
| 53 | <input disabled type="radio" |
| 54 | name="<?php echo esc_attr($random); ?>_export_variations_title_2" |
| 55 | value="<?php echo esc_attr(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 esc_html_e("Product variations use the parent product title", 'wp-all-export'); ?> |
| 61 | </label> |
| 62 | <div class="clear"></div> |
| 63 | <label> |
| 64 | <input disabled type="radio" |
| 65 | name="<?php echo esc_attr($random); ?>_export_variations_title_2" |
| 66 | value="<?php echo esc_attr(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 esc_html_e("Product variations use the default variation product title", 'wp-all-export'); ?> |
| 72 | </label> |
| 73 | </div> |
| 74 | </div> |
| 75 | <div class="clear"></div> |
| 76 | <div style="margin: 6px 0;"> |
| 77 | <label> |
| 78 | <input type="radio" checked="checked" disabled class="export_variations <?php if (PMXE_EDITION != 'paid') { |
| 79 | echo "variations_disabled"; |
| 80 | } ?>" |
| 81 | value="<?php echo esc_attr(XmlExportEngine::VARIABLE_PRODUCTS_EXPORT_PARENT); ?>" |
| 82 | name="<?php echo esc_attr($random)?>_export_variations"/><?php esc_html_e("Only export parent products", 'wp-all-export'); ?> |
| 83 | </label> |
| 84 | </div> |
| 85 | |
| 86 | <?php if(XmlExportEngine::get_addons_service()->isWooCommerceAddonActive()) { ?> |
| 87 | <div class="wpallexport-free-edition-notice" style="padding: 20px; margin-bottom: 10px;"> |
| 88 | <a class="upgrade_link" style="font-size:15px !important;" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839967&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=variation_options"> |
| 89 | Upgrade to the Pro edition of WP All Export to filter variable products</a> |
| 90 | <p>If you already own it, remove the free edition and install the Pro edition.</p> |
| 91 | </div> |
| 92 | <?php } else { ?> |
| 93 | <div class="wpallexport-free-edition-notice" style="padding: 20px 20px 35px 20px; margin-bottom: 10px;"> |
| 94 | <p>The WooCommerce Export Package is required to export variations.</p> |
| 95 | <p> |
| 96 | <a style="margin: 1em 0; font-size:1em !important" class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839955&discount=welcome-upgrade-169&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=export-variations"> |
| 97 | Purchase the WooCommerce Export Package</a> |
| 98 | </p> |
| 99 | </div> |
| 100 | <?php } ?> |
| 101 | </div> |
| 102 | </div> |