|
@@ -2,18 +2,18 @@ discard block |
|
|
block discarded – undo |
|
2
|
2
|
<div data-view-model="wps_variations_options_summary" id="wps_variations_summary_display"> |
|
3
|
3
|
<b>%summary%</b> |
|
4
|
4
|
</div> |
|
5
|
|
- <a id="wps_variations_parameters" title="<?php esc_html_e( 'Edit possibilities', 'wpshop' ); ?>" href="#"> |
|
|
5
|
+ <a id="wps_variations_parameters" title="<?php esc_html_e('Edit possibilities', 'wpshop'); ?>" href="#"> |
|
6
|
6
|
<?php // href=">?php print wp_nonce_url( get_edit_post_link( $post->ID ) . '&wps_variation_interface=false', 'wps_remove_variation_interface' );?<">. ?> |
|
7
|
7
|
<span class="dashicons dashicons-admin-generic"></span> |
|
8
|
8
|
</a> |
|
9
|
9
|
</div> |
|
10
|
10
|
<div id="wps_variations_options"> |
|
11
|
11
|
<ul id="wps_variations_options_title"> |
|
12
|
|
- <li><?php esc_html_e( 'Generate option', 'wpshop' ); ?></li> |
|
13
|
|
- <li><?php esc_html_e( 'Option', 'wpshop' ); ?></li> |
|
14
|
|
- <li><?php esc_html_e( 'Requiered', 'wpshop' ); ?></li> |
|
15
|
|
- <li><?php esc_html_e( 'Possibilities', 'wpshop' ); ?></li> |
|
16
|
|
- <li><?php esc_html_e( 'Default', 'wpshop' ); ?></li> |
|
|
12
|
+ <li><?php esc_html_e('Generate option', 'wpshop'); ?></li> |
|
|
13
|
+ <li><?php esc_html_e('Option', 'wpshop'); ?></li> |
|
|
14
|
+ <li><?php esc_html_e('Requiered', 'wpshop'); ?></li> |
|
|
15
|
+ <li><?php esc_html_e('Possibilities', 'wpshop'); ?></li> |
|
|
16
|
+ <li><?php esc_html_e('Default', 'wpshop'); ?></li> |
|
17
|
17
|
</ul> |
|
18
|
18
|
<ul data-view-model="wps_variations_options_raw" class="wps_variations_options_raw"> |
|
19
|
19
|
<li class="wps_variations_generate_col"> |
|
@@ -44,42 +44,42 @@ discard block |
|
|
block discarded – undo |
|
44
|
44
|
</div> |
|
45
|
45
|
<div id="wps_variations_questions"> |
|
46
|
46
|
<ul> |
|
47
|
|
- <li class="wps_variations_questions_question_col"><?php esc_html_e( 'Do you want to manage each options singly or combine them ?', 'wpshop' ); ?></li> |
|
|
47
|
+ <li class="wps_variations_questions_question_col"><?php esc_html_e('Do you want to manage each options singly or combine them ?', 'wpshop'); ?></li> |
|
48
|
48
|
<li class="wps_variations_questions_answers_col"> |
|
49
|
49
|
<?php |
|
50
|
50
|
$id = uniqid(); |
|
51
|
51
|
?> |
|
52
|
|
- <input id="question_combine_options_<?php echo intval( $id ); ?>" name="question_combine_options" type="radio" value="combine"> |
|
53
|
|
- <label for="question_combine_options_<?php echo intval( $id ); ?>"><?php esc_html_e( 'Combined options', 'wpshop' ); ?></label> |
|
|
52
|
+ <input id="question_combine_options_<?php echo intval($id); ?>" name="question_combine_options" type="radio" value="combine"> |
|
|
53
|
+ <label for="question_combine_options_<?php echo intval($id); ?>"><?php esc_html_e('Combined options', 'wpshop'); ?></label> |
|
54
|
54
|
<?php |
|
55
|
55
|
$id = uniqid(); |
|
56
|
56
|
?> |
|
57
|
|
- <input id="question_combine_options_<?php echo intval( $id ); ?>" name="question_combine_options" type="radio" value="single"> |
|
58
|
|
- <label for="question_combine_options_<?php echo intval( $id ); ?>"><?php esc_html_e( 'Distinct options', 'wpshop' ); ?></label> |
|
|
57
|
+ <input id="question_combine_options_<?php echo intval($id); ?>" name="question_combine_options" type="radio" value="single"> |
|
|
58
|
+ <label for="question_combine_options_<?php echo intval($id); ?>"><?php esc_html_e('Distinct options', 'wpshop'); ?></label> |
|
59
|
59
|
</li> |
|
60
|
60
|
</ul> |
|
61
|
61
|
</div> |
|
62
|
62
|
<div id="wps_variations_tabs"> |
|
63
|
63
|
<ul> |
|
64
|
|
- <li data-tab="wps_variations_price_option_tab" class="disabled"><?php esc_html_e( 'Options prices', 'wpshop' ); ?></li> |
|
65
|
|
- <li id="wps_variations_apply_btn" data-nonce="<?php echo esc_attr( wp_create_nonce( 'wpshop_variation_management' ) ); ?>"> |
|
66
|
|
- <?php esc_html_e( 'Apply modifications', 'wpshop' ); ?> |
|
|
64
|
+ <li data-tab="wps_variations_price_option_tab" class="disabled"><?php esc_html_e('Options prices', 'wpshop'); ?></li> |
|
|
65
|
+ <li id="wps_variations_apply_btn" data-nonce="<?php echo esc_attr(wp_create_nonce('wpshop_variation_management')); ?>"> |
|
|
66
|
+ <?php esc_html_e('Apply modifications', 'wpshop'); ?> |
|
67
|
67
|
</li> |
|
68
|
68
|
</ul> |
|
69
|
69
|
</div> |
|
70
|
70
|
<div id="wps_variations_price_option_tab" class="wps_variations_tabs"> |
|
71
|
71
|
<ul id="wps_variations_price_option_tab_title"> |
|
72
|
|
- <li class="wps_variations_price_id_col"><?php esc_html_e( 'ID', 'wpshop' ); ?></li> |
|
73
|
|
- <li class="wps_variations_price_name_col"><?php esc_html_e( 'Options', 'wpshop' ); ?></li> |
|
74
|
|
- <li class="wps_variations_price_config_col"><?php esc_html_e( 'Prices', 'wpshop' ); ?></li> |
|
75
|
|
- <li class="wps_variations_price_final_col"><?php esc_html_e( 'Final prices', 'wpshop' ); ?></li> |
|
76
|
|
- <li class="wps_variations_price_vat_col"><?php esc_html_e( 'VAT', 'wpshop' ); ?></li> |
|
77
|
|
- <li class="wps_variations_price_stock_col"><?php esc_html_e( 'Stock', 'wpshop' ); ?></li> |
|
78
|
|
- <li class="wps_variations_price_weight_col"><?php esc_html_e( 'Weight', 'wpshop' ); ?></li> |
|
79
|
|
- <li class="wps_variations_price_reference_col"><?php esc_html_e( 'Ref. product', 'wpshop' ); ?></li> |
|
80
|
|
- <li class="wps_variations_price_file_col"><?php esc_html_e( 'Link download', 'wpshop' ); ?></li> |
|
81
|
|
- <?php echo apply_filters( 'wps_filters_product_variation_extra_columns_title', '' ); ?> |
|
82
|
|
- <li class="wps_variations_price_active_col"><?php esc_html_e( 'Activate', 'wpshop' ); ?></li> |
|
|
72
|
+ <li class="wps_variations_price_id_col"><?php esc_html_e('ID', 'wpshop'); ?></li> |
|
|
73
|
+ <li class="wps_variations_price_name_col"><?php esc_html_e('Options', 'wpshop'); ?></li> |
|
|
74
|
+ <li class="wps_variations_price_config_col"><?php esc_html_e('Prices', 'wpshop'); ?></li> |
|
|
75
|
+ <li class="wps_variations_price_final_col"><?php esc_html_e('Final prices', 'wpshop'); ?></li> |
|
|
76
|
+ <li class="wps_variations_price_vat_col"><?php esc_html_e('VAT', 'wpshop'); ?></li> |
|
|
77
|
+ <li class="wps_variations_price_stock_col"><?php esc_html_e('Stock', 'wpshop'); ?></li> |
|
|
78
|
+ <li class="wps_variations_price_weight_col"><?php esc_html_e('Weight', 'wpshop'); ?></li> |
|
|
79
|
+ <li class="wps_variations_price_reference_col"><?php esc_html_e('Ref. product', 'wpshop'); ?></li> |
|
|
80
|
+ <li class="wps_variations_price_file_col"><?php esc_html_e('Link download', 'wpshop'); ?></li> |
|
|
81
|
+ <?php echo apply_filters('wps_filters_product_variation_extra_columns_title', ''); ?> |
|
|
82
|
+ <li class="wps_variations_price_active_col"><?php esc_html_e('Activate', 'wpshop'); ?></li> |
|
83
|
83
|
</ul> |
|
84
|
84
|
<ul data-view-model="wps_variations_price_option_raw"> |
|
85
|
85
|
<li class="wps_variations_price_id_col"> |
|
@@ -118,13 +118,13 @@ discard block |
|
|
block discarded – undo |
|
118
|
118
|
</li> |
|
119
|
119
|
<li class="wps_variations_price_file_col" data-view-model="wps_variations_price_option_file_%ID%"> |
|
120
|
120
|
<span class="wps_variations_price_option_price_file" onclick="wps_variations_price_option_raw.control.file(this)">%link%</span> |
|
121
|
|
- <?php echo apply_filters( 'wps_filters_product_variation_file', '<input style="display: none;" type="file" name="wpshop_file" id="wpshop_file" onchange="wps_variations_price_option_raw.control.link(event, this)">' ); ?> |
|
122
|
|
- <?php wp_nonce_field( 'ajax_wpshop_upload_downloadable_file_action', 'wpshop_file_nonce' );?> |
|
|
121
|
+ <?php echo apply_filters('wps_filters_product_variation_file', '<input style="display: none;" type="file" name="wpshop_file" id="wpshop_file" onchange="wps_variations_price_option_raw.control.link(event, this)">'); ?> |
|
|
122
|
+ <?php wp_nonce_field('ajax_wpshop_upload_downloadable_file_action', 'wpshop_file_nonce'); ?> |
|
123
|
123
|
<a class="wps_variations_price_option_price_download_file" href="%path%" target="_blank" download="" style="display: %download%"> |
|
124
|
124
|
<span class="dashicons dashicons-download"></span> |
|
125
|
125
|
</a> |
|
126
|
126
|
</li> |
|
127
|
|
- <?php echo apply_filters( 'wps_filters_product_variation_extra_columns_content', '' ); ?> |
|
|
127
|
+ <?php echo apply_filters('wps_filters_product_variation_extra_columns_content', ''); ?> |
|
128
|
128
|
<li class="wps_variations_price_active_col"> |
|
129
|
129
|
<input name="wps_pdt_variations[%ID%][status]" onclick="wps_variations_price_option_raw.control.activate(this)" type="checkbox" %price_option_activate%> |
|
130
|
130
|
</li> |