confirm.php 3.72 KB
Newer Older
Nahla Shiri's avatar
Nahla Shiri committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
<ul style="padding-left: 35px;">
    <?php if ( $post['is_update_status']): ?>
        <li> <?php _e('Order status', 'wp_all_import_plugin'); ?></li>
    <?php endif; ?>
    <?php if ( $post['is_update_excerpt']): ?>
        <li> <?php _e('Customer Note', 'wp_all_import_plugin'); ?></li>
    <?php endif; ?>
    <?php if ( $post['is_update_dates']): ?>
        <li> <?php _e('Dates', 'wp_all_import_plugin'); ?></li>
    <?php endif; ?>
    <?php if ( $post['is_update_billing_details']): ?>
        <li> <?php _e('Billing Details', 'wp_all_import_plugin'); ?></li>
    <?php endif; ?>
    <?php if ( $post['is_update_shipping_details']): ?>
        <li> <?php _e('Shipping Details', 'wp_all_import_plugin'); ?></li>
    <?php endif; ?>
    <?php if ( $post['is_update_payment']): ?>
        <li> <?php _e('Payment Details', 'wp_all_import_plugin'); ?></li>
    <?php endif; ?>
    <?php if ( $post['is_update_notes']): ?>
        <li> <?php _e('Order Notes', 'wp_all_import_plugin'); ?></li>
    <?php endif; ?>
    <?php if ( $post['is_update_products']): ?>
        <li>
            <?php
            switch($post['update_products_logic']){
                case 'full_update':
                    _e('Update all products', 'wp_all_import_plugin');
                    break;
                case 'add_new':
                    _e('Don\'t touch existing products, append new products', 'wp_all_import_plugin');
                    break;
            } ?>
        </li>
    <?php endif; ?>
    <?php if ( $post['is_update_fees']): ?>
        <li> <?php _e('Fees Items', 'wp_all_import_plugin'); ?></li>
    <?php endif; ?>
    <?php if ( $post['is_update_coupons']): ?>
        <li> <?php _e('Coupon Items', 'wp_all_import_plugin'); ?></li>
    <?php endif; ?>
    <?php if ( $post['is_update_shipping']): ?>
        <li> <?php _e('Shipping Items', 'wp_all_import_plugin'); ?></li>
    <?php endif; ?>
    <?php if ( $post['is_update_taxes']): ?>
        <li> <?php _e('Tax Items', 'wp_all_import_plugin'); ?></li>
    <?php endif; ?>
    <?php if ( $post['is_update_refunds']): ?>
        <li> <?php _e('Refunds', 'wp_all_import_plugin'); ?></li>
    <?php endif; ?>
    <?php if ( $post['is_update_total']): ?>
        <li> <?php _e('Order Total', 'wp_all_import_plugin'); ?></li>
    <?php endif; ?>
    <?php if ( ! empty($post['is_update_acf'])): ?>
        <li>
            <?php
            switch($post['update_acf_logic']){
                case 'full_update':
                    _e('All advanced custom fields', 'wp_all_import_plugin');
                    break;
                case 'mapped':
                    _e('Only ACF presented in import options', 'wp_all_import_plugin');
                    break;
                case 'only':
                    printf(__('Only these ACF : %s', 'wp_all_import_plugin'), $post['acf_only_list']);
                    break;
                case 'all_except':
                    printf(__('All ACF except these: %s', 'wp_all_import_plugin'), $post['acf_except_list']);
                    break;
            } ?>
        </li>
    <?php endif; ?>
    <?php if ( ! empty($post['is_update_custom_fields'])): ?>
        <li>
            <?php
            switch($post['update_custom_fields_logic']){
                case 'full_update':
                    _e('All custom fields', 'wp_all_import_plugin');
                    break;
                case 'only':
                    printf(__('Only these custom fields : %s', 'wp_all_import_plugin'), $post['custom_fields_only_list']);
                    break;
                case 'all_except':
                    printf(__('All custom fields except these: %s', 'wp_all_import_plugin'), $post['custom_fields_except_list']);
                    break;
            } ?>
        </li>
    <?php endif; ?>
</ul>