@@ -1,4 +1,6 @@ discard block |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
2 | 4 | /** |
3 | 5 | * Main controller file for wpshop help |
4 | 6 | * |
@@ -51,8 +53,9 @@ discard block |
||
51 | 53 | function wps_ajax_close_wps_help_window() { |
52 | 54 | $_wpnonce = !empty( $_POST['_wpnonce'] ) ? sanitize_text_field( $_POST['_wpnonce'] ) : ''; |
53 | 55 | |
54 | - if ( !wp_verify_nonce( $_wpnonce, 'wps_ajax_close_wps_help_window' ) ) |
|
55 | - wp_die(); |
|
56 | + if ( !wp_verify_nonce( $_wpnonce, 'wps_ajax_close_wps_help_window' ) ) { |
|
57 | + wp_die(); |
|
58 | + } |
|
56 | 59 | |
57 | 60 | $status = false; |
58 | 61 | $result = ''; |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | 2 | /** |
3 | 3 | * Main controller file for wpshop help |
4 | 4 | * |
@@ -19,45 +19,45 @@ discard block |
||
19 | 19 | */ |
20 | 20 | function __construct() { |
21 | 21 | /** Call style & javascript for administration */ |
22 | - add_action( 'admin_enqueue_scripts', array( &$this, 'admin_scripts' ) ); |
|
22 | + add_action('admin_enqueue_scripts', array(&$this, 'admin_scripts')); |
|
23 | 23 | |
24 | 24 | /** Add the scripts into admin footer for future use */ |
25 | - add_action( 'admin_print_footer_scripts', array( &$this, 'wps_dashboard_help') ); |
|
25 | + add_action('admin_print_footer_scripts', array(&$this, 'wps_dashboard_help')); |
|
26 | 26 | |
27 | 27 | /** Ajax actions **/ |
28 | - add_action( 'wp_ajax_close_wps_help_window', array( &$this, 'wps_ajax_close_wps_help_window' ) ); |
|
28 | + add_action('wp_ajax_close_wps_help_window', array(&$this, 'wps_ajax_close_wps_help_window')); |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | /** |
32 | 32 | * Include stylesheets |
33 | 33 | */ |
34 | 34 | function admin_scripts() { |
35 | - wp_enqueue_style( 'wp-pointer' ); |
|
36 | - wp_enqueue_script( 'wp-pointer' ); |
|
35 | + wp_enqueue_style('wp-pointer'); |
|
36 | + wp_enqueue_script('wp-pointer'); |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
40 | 40 | * AJAX - Save into current user meta the different help that have to be closed next time the user will be logged in |
41 | 41 | */ |
42 | 42 | function wps_ajax_close_wps_help_window() { |
43 | - $_wpnonce = !empty( $_POST['_wpnonce'] ) ? sanitize_text_field( $_POST['_wpnonce'] ) : ''; |
|
43 | + $_wpnonce = !empty($_POST['_wpnonce']) ? sanitize_text_field($_POST['_wpnonce']) : ''; |
|
44 | 44 | |
45 | - if ( !wp_verify_nonce( $_wpnonce, 'wps_ajax_close_wps_help_window' ) ) |
|
45 | + if (!wp_verify_nonce($_wpnonce, 'wps_ajax_close_wps_help_window')) |
|
46 | 46 | wp_die(); |
47 | 47 | |
48 | 48 | $status = false; |
49 | 49 | $result = ''; |
50 | - $pointer_id = !empty( $_POST['pointer_id']) ? wpshop_tools::varSanitizer( $_POST['pointer_id'] ) : ''; |
|
51 | - if ( !empty($pointer_id) ) { |
|
52 | - $seen_help_windows = get_user_meta( get_current_user_id(), '_wps_closed_help', true); |
|
53 | - $seen_help_windows[ $pointer_id ] = true; |
|
50 | + $pointer_id = !empty($_POST['pointer_id']) ? wpshop_tools::varSanitizer($_POST['pointer_id']) : ''; |
|
51 | + if (!empty($pointer_id)) { |
|
52 | + $seen_help_windows = get_user_meta(get_current_user_id(), '_wps_closed_help', true); |
|
53 | + $seen_help_windows[$pointer_id] = true; |
|
54 | 54 | |
55 | - update_user_meta( get_current_user_id(), '_wps_closed_help', $seen_help_windows); |
|
55 | + update_user_meta(get_current_user_id(), '_wps_closed_help', $seen_help_windows); |
|
56 | 56 | $status = true; |
57 | 57 | } |
58 | 58 | |
59 | - $response = array( 'status' => $status, 'response' => $result ); |
|
60 | - wp_die( json_encode( $response ) ); |
|
59 | + $response = array('status' => $status, 'response' => $result); |
|
60 | + wp_die(json_encode($response)); |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
@@ -70,118 +70,118 @@ discard block |
||
70 | 70 | /** Get current screen in order to load messages only in required pages */ |
71 | 71 | $current_screen = get_current_screen(); |
72 | 72 | $current_screen->id = 'disable'; |
73 | - switch ( $current_screen->id ) { |
|
73 | + switch ($current_screen->id) { |
|
74 | 74 | case 'toplevel_page_wpshop_dashboard': |
75 | - $help_cases[ 'download_newsletter_contacts' ] = array( 'edge' => 'left', 'at' => 'left bottom', 'my' => 'left top', 'pointer_id' => '#download_newsletter_contacts' ); |
|
75 | + $help_cases['download_newsletter_contacts'] = array('edge' => 'left', 'at' => 'left bottom', 'my' => 'left top', 'pointer_id' => '#download_newsletter_contacts'); |
|
76 | 76 | break; |
77 | 77 | |
78 | 78 | case 'wpshop_product': |
79 | - $help_cases[ 'product_page_categories' ] = array( 'edge' => 'right', 'at' => '', 'my' => '', 'pointer_id' => '#wpshop_product_categorydiv'); |
|
80 | - $help_cases[ 'product_datas_configuration' ] = array( 'edge' => 'bottom', 'at' => 'center top', 'my' => 'bottom right', 'pointer_id' => '#wpshop_product_fixed_tab'); |
|
81 | - $help_cases[ 'product_display_configuration' ] = array( 'edge' => 'bottom', 'at' => 'right bottom', 'my' => 'bottom', 'pointer_id' => '.wpshop_product_data_display_tab' ); |
|
82 | - $help_cases[ 'product_variations' ] = array( 'edge' => 'bottom', 'at' => 'right bottom', 'my' => 'bottom', 'pointer_id' => '#wpshop_new_variation_list_button' ); |
|
83 | - $help_cases[ 'product_variations_configuration' ] = array( 'edge' => 'bottom', 'at' => 'right bottom', 'my' => 'bottom', 'pointer_id' => '#wpshop_variation_parameters_button' ); |
|
84 | - $help_cases[ 'add_product_automaticly_to_cart' ] = array( 'edge' => 'right', 'at' => '', 'my' => '', 'pointer_id' => '#wpshop_product_options' ); |
|
79 | + $help_cases['product_page_categories'] = array('edge' => 'right', 'at' => '', 'my' => '', 'pointer_id' => '#wpshop_product_categorydiv'); |
|
80 | + $help_cases['product_datas_configuration'] = array('edge' => 'bottom', 'at' => 'center top', 'my' => 'bottom right', 'pointer_id' => '#wpshop_product_fixed_tab'); |
|
81 | + $help_cases['product_display_configuration'] = array('edge' => 'bottom', 'at' => 'right bottom', 'my' => 'bottom', 'pointer_id' => '.wpshop_product_data_display_tab'); |
|
82 | + $help_cases['product_variations'] = array('edge' => 'bottom', 'at' => 'right bottom', 'my' => 'bottom', 'pointer_id' => '#wpshop_new_variation_list_button'); |
|
83 | + $help_cases['product_variations_configuration'] = array('edge' => 'bottom', 'at' => 'right bottom', 'my' => 'bottom', 'pointer_id' => '#wpshop_variation_parameters_button'); |
|
84 | + $help_cases['add_product_automaticly_to_cart'] = array('edge' => 'right', 'at' => '', 'my' => '', 'pointer_id' => '#wpshop_product_options'); |
|
85 | 85 | break; |
86 | 86 | |
87 | 87 | case 'edit-wpshop_product_category': |
88 | - $help_cases[ 'category_filterable_attributes' ] = array( 'edge' => 'bottom', 'at' => 'top', 'my' => 'bottom', 'pointer_id' => '.filterable_attributes_container' ); |
|
89 | - $help_cases[ 'category_picture' ] = array( 'edge' => 'bottom', 'at' => '', 'my' => 'bottom', 'pointer_id' => '.category_new_picture_upload' ); |
|
88 | + $help_cases['category_filterable_attributes'] = array('edge' => 'bottom', 'at' => 'top', 'my' => 'bottom', 'pointer_id' => '.filterable_attributes_container'); |
|
89 | + $help_cases['category_picture'] = array('edge' => 'bottom', 'at' => '', 'my' => 'bottom', 'pointer_id' => '.category_new_picture_upload'); |
|
90 | 90 | break; |
91 | 91 | |
92 | 92 | case WPSHOP_NEWTYPE_IDENTIFIER_ORDER: |
93 | - $help_cases[ 'order_customer_comment' ] = array( 'edge' => 'right', 'at' => '', 'my' => '', 'pointer_id' => '#wpshop_order_customer_comment' ); |
|
94 | - $help_cases[ 'order_notification_message' ] = array( 'edge' => 'bottom', 'at' => '', 'my' => '', 'pointer_id' => '#wpshop_order_private_comments' ); |
|
95 | - $help_cases[ 'order_shipping_box' ] = array( 'edge' => 'right', 'at' => '', 'my' => '', 'pointer_id' => '#wpshop_order_shipping' ); |
|
93 | + $help_cases['order_customer_comment'] = array('edge' => 'right', 'at' => '', 'my' => '', 'pointer_id' => '#wpshop_order_customer_comment'); |
|
94 | + $help_cases['order_notification_message'] = array('edge' => 'bottom', 'at' => '', 'my' => '', 'pointer_id' => '#wpshop_order_private_comments'); |
|
95 | + $help_cases['order_shipping_box'] = array('edge' => 'right', 'at' => '', 'my' => '', 'pointer_id' => '#wpshop_order_shipping'); |
|
96 | 96 | break; |
97 | 97 | |
98 | 98 | case 'wpshop_shop_message': |
99 | - $help_cases[ 'message_historic' ] = array( 'edge' => 'bottom', 'at' => '', 'my' => '', 'pointer_id' => '#wpshop_message_histo' ); |
|
99 | + $help_cases['message_historic'] = array('edge' => 'bottom', 'at' => '', 'my' => '', 'pointer_id' => '#wpshop_message_histo'); |
|
100 | 100 | break; |
101 | 101 | |
102 | 102 | case 'settings_page_wpshop_option': |
103 | - $help_cases[ 'options_payment_part' ] = array ('edge' => 'right', 'at' => '', 'my' => '', 'pointer_id' => '#wps_payment_mode_list_container' ); |
|
103 | + $help_cases['options_payment_part'] = array('edge' => 'right', 'at' => '', 'my' => '', 'pointer_id' => '#wps_payment_mode_list_container'); |
|
104 | 104 | break; |
105 | 105 | } |
106 | 106 | |
107 | - if ( !empty( $help_cases ) ) { |
|
107 | + if (!empty($help_cases)) { |
|
108 | 108 | /** Get help data seen by user **/ |
109 | - $closed_help_window = get_user_meta( get_current_user_id(), '_wps_closed_help', true); |
|
109 | + $closed_help_window = get_user_meta(get_current_user_id(), '_wps_closed_help', true); |
|
110 | 110 | |
111 | 111 | /** Read the different help cases */ |
112 | - foreach( $help_cases as $help_id => $help_case ) { |
|
113 | - if ( empty( $closed_help_window ) || ( !empty( $closed_help_window ) && !array_key_exists( $help_id, $closed_help_window ) ) ){ |
|
114 | - switch( $help_id ) { |
|
112 | + foreach ($help_cases as $help_id => $help_case) { |
|
113 | + if (empty($closed_help_window) || (!empty($closed_help_window) && !array_key_exists($help_id, $closed_help_window))) { |
|
114 | + switch ($help_id) { |
|
115 | 115 | case 'download_newsletter_contacts' : |
116 | - $pointer_content = '<h3>' .__( 'Customers information download', 'wpshop'). '</h3>'; |
|
117 | - $pointer_content .= '<p>' .__( 'You can download emails of customers who accept to receive your commercials offers or your partners commercials offers by newsletter', 'wpshop'). '</p>'; |
|
116 | + $pointer_content = '<h3>' . __('Customers information download', 'wpshop') . '</h3>'; |
|
117 | + $pointer_content .= '<p>' . __('You can download emails of customers who accept to receive your commercials offers or your partners commercials offers by newsletter', 'wpshop') . '</p>'; |
|
118 | 118 | break; |
119 | 119 | |
120 | 120 | case 'product_page_categories' : |
121 | - $pointer_content = '<h3>' .__( 'WPShop Categories', 'wpshop'). '</h3>'; |
|
122 | - $pointer_content .= '<p>' .__( 'You can classify your products by category.', 'wpshop'). '<br/></p>'; |
|
123 | - $pointer_content .= '<p><a href="' .admin_url('edit-tags.php?taxonomy=wpshop_product_category&post_type=wpshop_product'). '" class="button-primary" target="_blank">' .__('Create my WPShop categories', 'wpshop' ). '</a></p>'; |
|
121 | + $pointer_content = '<h3>' . __('WPShop Categories', 'wpshop') . '</h3>'; |
|
122 | + $pointer_content .= '<p>' . __('You can classify your products by category.', 'wpshop') . '<br/></p>'; |
|
123 | + $pointer_content .= '<p><a href="' . admin_url('edit-tags.php?taxonomy=wpshop_product_category&post_type=wpshop_product') . '" class="button-primary" target="_blank">' . __('Create my WPShop categories', 'wpshop') . '</a></p>'; |
|
124 | 124 | break; |
125 | 125 | |
126 | 126 | case 'product_datas_configuration' : |
127 | - $pointer_content = '<h3>' .__( 'Product configurations', 'wpshop'). '</h3>'; |
|
128 | - $pointer_content .= '<p>' .__( 'Here, you can configure your product (Price, weight, reference and all attributes you want to create and affect to products', 'wpshop'). '</p>'; |
|
127 | + $pointer_content = '<h3>' . __('Product configurations', 'wpshop') . '</h3>'; |
|
128 | + $pointer_content .= '<p>' . __('Here, you can configure your product (Price, weight, reference and all attributes you want to create and affect to products', 'wpshop') . '</p>'; |
|
129 | 129 | break; |
130 | 130 | |
131 | 131 | case 'product_display_configuration' : |
132 | - $pointer_content = '<h3>' .__( 'Product display configurations', 'wpshop'). '</h3>'; |
|
133 | - $pointer_content .= '<p>' .__( 'Here, you can manage what elements you want to display on your product page', 'wpshop' ). '</p>'; |
|
132 | + $pointer_content = '<h3>' . __('Product display configurations', 'wpshop') . '</h3>'; |
|
133 | + $pointer_content .= '<p>' . __('Here, you can manage what elements you want to display on your product page', 'wpshop') . '</p>'; |
|
134 | 134 | break; |
135 | 135 | |
136 | 136 | case 'product_variations' : |
137 | - $pointer_content = '<h3>' .__( 'Product variations', 'wpshop'). '</h3>'; |
|
138 | - $pointer_content .= '<p>' .__( 'Here, you can generate your product variations.', 'wpshop'). '</p><br/>'; |
|
139 | - $pointer_content .= '<p><a href="http://www.wpshop.fr/documentations/configurer-un-produit-avec-des-options/" class="button-primary" target="_blank">' .__('Read the tutorial', 'wpshop').'</a></p>'; |
|
137 | + $pointer_content = '<h3>' . __('Product variations', 'wpshop') . '</h3>'; |
|
138 | + $pointer_content .= '<p>' . __('Here, you can generate your product variations.', 'wpshop') . '</p><br/>'; |
|
139 | + $pointer_content .= '<p><a href="http://www.wpshop.fr/documentations/configurer-un-produit-avec-des-options/" class="button-primary" target="_blank">' . __('Read the tutorial', 'wpshop') . '</a></p>'; |
|
140 | 140 | break; |
141 | 141 | |
142 | 142 | case 'product_variations_configuration' : |
143 | - $pointer_content = '<h3>' .__( 'Variations configuration', 'wpshop'). '</h3>'; |
|
144 | - $pointer_content .= '<p>' .__( 'Here, you can manage your product variations configurations (Display "Price from", variation price priority...).', 'wpshop'). '</p>'; |
|
143 | + $pointer_content = '<h3>' . __('Variations configuration', 'wpshop') . '</h3>'; |
|
144 | + $pointer_content .= '<p>' . __('Here, you can manage your product variations configurations (Display "Price from", variation price priority...).', 'wpshop') . '</p>'; |
|
145 | 145 | break; |
146 | 146 | |
147 | 147 | case 'add_product_automaticly_to_cart' : |
148 | - $pointer_content = '<h3>' .__('Add product to cart', 'wpshop'). '</h3>'; |
|
149 | - $pointer_content .= '<p>' .__( 'If you check this checkbox, this produc will be add automaticly to cart. This functionnality is helpful if you want to bill fees for example.', 'wpshop' ). '</p>'; |
|
148 | + $pointer_content = '<h3>' . __('Add product to cart', 'wpshop') . '</h3>'; |
|
149 | + $pointer_content .= '<p>' . __('If you check this checkbox, this produc will be add automaticly to cart. This functionnality is helpful if you want to bill fees for example.', 'wpshop') . '</p>'; |
|
150 | 150 | break; |
151 | 151 | |
152 | 152 | case 'category_filterable_attributes' : |
153 | - $pointer_content = '<h3>' .__('Filterable search', 'wpshop'). '</h3>'; |
|
154 | - $pointer_content .= '<p>' .__( 'You can add a filter search to your WPShop, here will be display all available attributes for a filter search in this category', 'wpshop' ). '</p><br/>'; |
|
155 | - $pointer_content .= '<p><a href="http://www.wpshop.fr/documentations/la-recherche-par-filtre/" class="button-primary" target="_blank">' .__('Read the filter search tutorial', 'wpshop').'</a></p>'; |
|
153 | + $pointer_content = '<h3>' . __('Filterable search', 'wpshop') . '</h3>'; |
|
154 | + $pointer_content .= '<p>' . __('You can add a filter search to your WPShop, here will be display all available attributes for a filter search in this category', 'wpshop') . '</p><br/>'; |
|
155 | + $pointer_content .= '<p><a href="http://www.wpshop.fr/documentations/la-recherche-par-filtre/" class="button-primary" target="_blank">' . __('Read the filter search tutorial', 'wpshop') . '</a></p>'; |
|
156 | 156 | break; |
157 | 157 | |
158 | 158 | case 'category_picture' : |
159 | - $pointer_content = '<h3>' .__('Category image', 'wpshop'). '</h3>'; |
|
160 | - $pointer_content .= '<p>' .__( 'You can add a picture to illustrate your category', 'wpshop' ). '</p>'; |
|
159 | + $pointer_content = '<h3>' . __('Category image', 'wpshop') . '</h3>'; |
|
160 | + $pointer_content .= '<p>' . __('You can add a picture to illustrate your category', 'wpshop') . '</p>'; |
|
161 | 161 | break; |
162 | 162 | |
163 | 163 | case 'order_customer_comment' : |
164 | - $pointer_content = '<h3>' .__('Order customer comment', 'wpshop'). '</h3>'; |
|
165 | - $pointer_content .= '<p>' .__( 'Here is displayed the customer comment wrote during the order', 'wpshop' ). '</p>'; |
|
164 | + $pointer_content = '<h3>' . __('Order customer comment', 'wpshop') . '</h3>'; |
|
165 | + $pointer_content .= '<p>' . __('Here is displayed the customer comment wrote during the order', 'wpshop') . '</p>'; |
|
166 | 166 | break; |
167 | 167 | |
168 | 168 | case 'message_historic' : |
169 | - $pointer_content = '<h3>' .__('Message Historic', 'wpshop'). '</h3>'; |
|
170 | - $pointer_content .= '<p>' .__( 'This is this message historic. You can check here if an automatic e-mail was send to a customer', 'wpshop' ). '</p>'; |
|
169 | + $pointer_content = '<h3>' . __('Message Historic', 'wpshop') . '</h3>'; |
|
170 | + $pointer_content .= '<p>' . __('This is this message historic. You can check here if an automatic e-mail was send to a customer', 'wpshop') . '</p>'; |
|
171 | 171 | break; |
172 | 172 | |
173 | 173 | case 'order_notification_message' : |
174 | - $pointer_content = '<h3>' .__('Order notification', 'wpshop'). '</h3>'; |
|
175 | - $pointer_content .= '<p>' .__( 'You can add a private comment to the order or send an comment to customer about this order', 'wpshop' ). '</p>'; |
|
174 | + $pointer_content = '<h3>' . __('Order notification', 'wpshop') . '</h3>'; |
|
175 | + $pointer_content .= '<p>' . __('You can add a private comment to the order or send an comment to customer about this order', 'wpshop') . '</p>'; |
|
176 | 176 | break; |
177 | 177 | |
178 | 178 | case 'order_shipping_box' : |
179 | - $pointer_content = '<h3>' .__('Shipping actions', 'wpshop'). '</h3>'; |
|
180 | - $pointer_content .= '<p>' .__( 'Here, you can manage your shipping actions, download the shipping slip.', 'wpshop' ). '</p>'; |
|
179 | + $pointer_content = '<h3>' . __('Shipping actions', 'wpshop') . '</h3>'; |
|
180 | + $pointer_content .= '<p>' . __('Here, you can manage your shipping actions, download the shipping slip.', 'wpshop') . '</p>'; |
|
181 | 181 | break; |
182 | 182 | |
183 | 183 | case 'options_payment_part' : |
184 | - $pointer_content = '<h3>' .__('Payment configuration', 'wpshop'). '</h3><p>' .__( 'You can manage your payment methods (Change name, add description, add a logo and apply configurations ). You can add others payment methods', 'wpshop' ). '</p><br/><p><a href="http://shop.eoxia.com/boutique/shop/modules-wpshop/modules-de-paiement/" class="button-primary" target="_blank">' .__('See available payment methods', 'wpshop').'</a></p>'; |
|
184 | + $pointer_content = '<h3>' . __('Payment configuration', 'wpshop') . '</h3><p>' . __('You can manage your payment methods (Change name, add description, add a logo and apply configurations ). You can add others payment methods', 'wpshop') . '</p><br/><p><a href="http://shop.eoxia.com/boutique/shop/modules-wpshop/modules-de-paiement/" class="button-primary" target="_blank">' . __('See available payment methods', 'wpshop') . '</a></p>'; |
|
185 | 185 | break; |
186 | 186 | |
187 | 187 | default : |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | break; |
190 | 190 | } |
191 | 191 | |
192 | - require( wpshop_tools::get_template_part( WPS_HELP_DIR, WPS_HELP_TEMPLATES_MAIN_DIR, 'backend', 'help', 'container_bubble' ) ); |
|
192 | + require(wpshop_tools::get_template_part(WPS_HELP_DIR, WPS_HELP_TEMPLATES_MAIN_DIR, 'backend', 'help', 'container_bubble')); |
|
193 | 193 | } |
194 | 194 | } |
195 | 195 | } |
@@ -1,10 +1,10 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | 2 | ?> |
3 | - <tr data-nonce="<?php echo wp_create_nonce( 'ajax_pos_product_variation_selection' ); ?>" class="wps-pos-addon-product wps-pos-addon-product-line" data-id="<?php echo $product['ID']; ?>" data-subtype="<?php echo ( !empty( $product_variation_definition ) ? 'variations' : 'simple' ); ?>" > |
|
4 | - <td>#<?php echo $product['ID']; ?> - <?php echo $product['product_name']; ?><br/><?php _e('Barcode', 'wps-pos-i18n'); ?> : <?php echo $product['product_barcode'];?></td> |
|
5 | - <td class="wpshop_pos_addon_price"><?php echo wpshop_prices::get_product_price( $product_data, 'price_display', 'complete_sheet'); ?></td> |
|
3 | + <tr data-nonce="<?php echo wp_create_nonce('ajax_pos_product_variation_selection'); ?>" class="wps-pos-addon-product wps-pos-addon-product-line" data-id="<?php echo $product['ID']; ?>" data-subtype="<?php echo (!empty($product_variation_definition) ? 'variations' : 'simple'); ?>" > |
|
4 | + <td>#<?php echo $product['ID']; ?> - <?php echo $product['product_name']; ?><br/><?php _e('Barcode', 'wps-pos-i18n'); ?> : <?php echo $product['product_barcode']; ?></td> |
|
5 | + <td class="wpshop_pos_addon_price"><?php echo wpshop_prices::get_product_price($product_data, 'price_display', 'complete_sheet'); ?></td> |
|
6 | 6 | <td> |
7 | - <!-- <a class="wps-pos-product-edition-link" target="wps_pos_product_edition" title="<?php _e( 'Edit this product', 'wps-pos-i18n' ); ?>" href="<?php echo admin_url( 'post.php?post=' . $product['ID'] . '&action=edit'); ?>" ><i class="dashicons dashicons-edit" ></i></a> --> |
|
8 | - <button class="wps-bton-first-rounded wps-pos-add-to-cart-button" type="button" data-type="product" data-subtype="<?php echo ( !empty( $product_variation_definition ) ? 'variations' : 'simple' ); ?>" data-id="<?php echo $product['ID']; ?>" > <i class="dashicons dashicons-cart" title="<?php _e( 'Choose this product', 'wps-pos-i18n' ); ?>" ></i></button> |
|
7 | + <!-- <a class="wps-pos-product-edition-link" target="wps_pos_product_edition" title="<?php _e('Edit this product', 'wps-pos-i18n'); ?>" href="<?php echo admin_url('post.php?post=' . $product['ID'] . '&action=edit'); ?>" ><i class="dashicons dashicons-edit" ></i></a> --> |
|
8 | + <button class="wps-bton-first-rounded wps-pos-add-to-cart-button" type="button" data-type="product" data-subtype="<?php echo (!empty($product_variation_definition) ? 'variations' : 'simple'); ?>" data-id="<?php echo $product['ID']; ?>" > <i class="dashicons dashicons-cart" title="<?php _e('Choose this product', 'wps-pos-i18n'); ?>" ></i></button> |
|
9 | 9 | </td> |
10 | 10 | </tr> |
@@ -1,4 +1,6 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
2 | 4 | ?> |
3 | 5 | <tr data-nonce="<?php echo wp_create_nonce( 'ajax_pos_product_variation_selection' ); ?>" class="wps-pos-addon-product wps-pos-addon-product-line" data-id="<?php echo $product['ID']; ?>" data-subtype="<?php echo ( !empty( $product_variation_definition ) ? 'variations' : 'simple' ); ?>" > |
4 | 6 | <td>#<?php echo $product['ID']; ?> - <?php echo $product['product_name']; ?><br/><?php _e('Barcode', 'wps-pos-i18n'); ?> : <?php echo $product['product_barcode'];?></td> |
@@ -1,22 +1,22 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | 2 | ?> |
3 | 3 | <div class="wps-pos-element-metabox-selection wps-pos-element-metabox-selection-product" > |
4 | - <input type="text" value="" data-nonce="<?php echo wp_create_nonce( 'ajax_pos_product_search' ); ?>" placeholder="<?php _e( 'Start typing here for product search', 'wps-pos-i18n' ); ?>" name="wps-pos-product-to-choose" class="wps-pos-product-search" /> |
|
4 | + <input type="text" value="" data-nonce="<?php echo wp_create_nonce('ajax_pos_product_search'); ?>" placeholder="<?php _e('Start typing here for product search', 'wps-pos-i18n'); ?>" name="wps-pos-product-to-choose" class="wps-pos-product-search" /> |
|
5 | 5 | <button class="wps-bton-first-rounded" id="wpspos-product-search" ><i class="dashicons dashicons-search" ></i></button> |
6 | 6 | |
7 | 7 | <label style="margin-left: 50px;" > |
8 | 8 | <?php |
9 | 9 | $only_barcode = ''; |
10 | 10 | $option = 'wps_pos_options'; |
11 | - $values = get_option( $option ); |
|
12 | - if( empty( $values['only_barcode'] ) || $values['only_barcode'] == 'checked' ) { |
|
11 | + $values = get_option($option); |
|
12 | + if (empty($values['only_barcode']) || $values['only_barcode'] == 'checked') { |
|
13 | 13 | $only_barcode = 'checked="checked"'; |
14 | 14 | } |
15 | 15 | ?> |
16 | - <input data-nonce="<?php echo wp_create_nonce( 'ajax_save_config_barcode_only' ); ?>" type="checkbox" value="only_barcode" name="wps-pos-search-in" <?php echo $only_barcode; ?> /> |
|
17 | - <?php _e( 'Search only in barcode', 'wps-pos-i18n' ); ?> |
|
16 | + <input data-nonce="<?php echo wp_create_nonce('ajax_save_config_barcode_only'); ?>" type="checkbox" value="only_barcode" name="wps-pos-search-in" <?php echo $only_barcode; ?> /> |
|
17 | + <?php _e('Search only in barcode', 'wps-pos-i18n'); ?> |
|
18 | 18 | </label> |
19 | 19 | </div> |
20 | 20 | <div class="wps-pos-product-selection-alert-box wps-alert hidden" ></div> |
21 | -<div class="wps-pos-element-listing-container wps-pos-product-listing wps-bloc-loader" ><?php echo $this->get_product_table_by_alphabet( $letters_having_products[ 0 ] ); ?></div> |
|
22 | -<div class="wps-pos-alphabet-container" ><?php echo wps_pos_tools::alphabet_letters( 'product', $available_letters, $letters_having_products[ 0 ] ); ?></div> |
|
21 | +<div class="wps-pos-element-listing-container wps-pos-product-listing wps-bloc-loader" ><?php echo $this->get_product_table_by_alphabet($letters_having_products[0]); ?></div> |
|
22 | +<div class="wps-pos-alphabet-container" ><?php echo wps_pos_tools::alphabet_letters('product', $available_letters, $letters_having_products[0]); ?></div> |
@@ -1,4 +1,6 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
2 | 4 | ?> |
3 | 5 | <div class="wps-pos-element-metabox-selection wps-pos-element-metabox-selection-product" > |
4 | 6 | <input type="text" value="" data-nonce="<?php echo wp_create_nonce( 'ajax_pos_product_search' ); ?>" placeholder="<?php _e( 'Start typing here for product search', 'wps-pos-i18n' ); ?>" name="wps-pos-product-to-choose" class="wps-pos-product-search" /> |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | 2 | ?> |
3 | 3 | <table class="table table-striped wps-pos-element-table"> |
4 | 4 | <tr> |
@@ -8,10 +8,10 @@ discard block |
||
8 | 8 | </tr> |
9 | 9 | <tr> |
10 | 10 | <td colspan="2" > |
11 | - <?php _e( 'No product has been found for current search.', 'wps-pos-i18n' ); ?> |
|
11 | + <?php _e('No product has been found for current search.', 'wps-pos-i18n'); ?> |
|
12 | 12 | </td> |
13 | 13 | <td> |
14 | - <a class="thickbox wps-bton-third-rounded" title="<?php _e( 'New product creation', 'wps-pos-i18n' ); ?>" href="<?php echo admin_url( 'admin-ajax.php?action=wpspos-product-quick-creation&_wpnonce=' . wp_create_nonce( 'wps-product-quick-nonce' ) . '&width=550&height=600' ); ?>"><?php _e('Create a product', 'wps-pos-i18n'); ?></a> |
|
14 | + <a class="thickbox wps-bton-third-rounded" title="<?php _e('New product creation', 'wps-pos-i18n'); ?>" href="<?php echo admin_url('admin-ajax.php?action=wpspos-product-quick-creation&_wpnonce=' . wp_create_nonce('wps-product-quick-nonce') . '&width=550&height=600'); ?>"><?php _e('Create a product', 'wps-pos-i18n'); ?></a> |
|
15 | 15 | </td> |
16 | 16 | </tr> |
17 | 17 | </table> |
@@ -1,4 +1,6 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
2 | 4 | ?> |
3 | 5 | <table class="table table-striped wps-pos-element-table"> |
4 | 6 | <tr> |
@@ -1,6 +1,6 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | 2 | ?> |
3 | 3 | <div class="wps-alert wpshopHide" id="wps-pos-order-content-alert" ></div> |
4 | -<div id="wps_cart_container" data-nonce="<?php echo wp_create_nonce( 'wps_pos_order_content' ); ?>" class="wps-bloc-loader"> |
|
4 | +<div id="wps_cart_container" data-nonce="<?php echo wp_create_nonce('wps_pos_order_content'); ?>" class="wps-bloc-loader"> |
|
5 | 5 | <?php echo $this->display_wps_pos_order_content(); ?> |
6 | 6 | </div> |
@@ -1,4 +1,6 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
2 | 4 | ?> |
3 | 5 | <div class="wps-alert wpshopHide" id="wps-pos-order-content-alert" ></div> |
4 | 6 | <div id="wps_cart_container" data-nonce="<?php echo wp_create_nonce( 'wps_pos_order_content' ); ?>" class="wps-bloc-loader"> |
@@ -1,8 +1,8 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | 2 | ?> |
3 | -<div class="wps-pos-element-metabox-selection wps-pos-element-metabox-selection-customer" ><input type="text" value="" placeholder="<?php _e( 'Start typing here for customer search', 'wps-pos-i18n' ); ?>" data-nonce="<?php echo wp_create_nonce( 'ajax_pos_customer_search' ); ?>" name="wps-pos-customer-to-choose" class="wps-pos-customer-search" /></div> |
|
4 | -<div class="wps-pos-element-listing-container wps-pos-customer-listing wps-bloc-loader" ><?php echo $this->display_customer_list( 'A' ); ?></div> |
|
5 | -<div class="wps-pos-alphabet-container" ><?php echo wps_pos_tools::alphabet_letters( 'customer', $available_letters, 'A' ); ?></div> |
|
3 | +<div class="wps-pos-element-metabox-selection wps-pos-element-metabox-selection-customer" ><input type="text" value="" placeholder="<?php _e('Start typing here for customer search', 'wps-pos-i18n'); ?>" data-nonce="<?php echo wp_create_nonce('ajax_pos_customer_search'); ?>" name="wps-pos-customer-to-choose" class="wps-pos-customer-search" /></div> |
|
4 | +<div class="wps-pos-element-listing-container wps-pos-customer-listing wps-bloc-loader" ><?php echo $this->display_customer_list('A'); ?></div> |
|
5 | +<div class="wps-pos-alphabet-container" ><?php echo wps_pos_tools::alphabet_letters('customer', $available_letters, 'A'); ?></div> |
|
6 | 6 | <script type="text/javascript" > |
7 | 7 | jQuery( document ).ready( function(){ |
8 | 8 | jQuery( "#wps-pos-customer-list-choice" ).chosen(); |
@@ -1,4 +1,6 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
2 | 4 | ?> |
3 | 5 | <div class="wps-pos-element-metabox-selection wps-pos-element-metabox-selection-customer" ><input type="text" value="" placeholder="<?php _e( 'Start typing here for customer search', 'wps-pos-i18n' ); ?>" data-nonce="<?php echo wp_create_nonce( 'ajax_pos_customer_search' ); ?>" name="wps-pos-customer-to-choose" class="wps-pos-customer-search" /></div> |
4 | 6 | <div class="wps-pos-element-listing-container wps-pos-customer-listing wps-bloc-loader" ><?php echo $this->display_customer_list( 'A' ); ?></div> |
@@ -1,11 +1,11 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | 2 | ?> |
3 | - <tr data-nonce="<?php echo wp_create_nonce( 'ajax_pos_customer_choice' ); ?>" class="wps-pos-addon-customer-line <?php echo ( ( $customer['last_name'] == __('Default', 'wps-pos-i18n') ) && ( $customer['first_name'] == __('Customer', 'wps-pos-i18n') ) ? 'info' : '' ); ?>" data-id="<?php echo $customer['ID']; ?>" > |
|
3 | + <tr data-nonce="<?php echo wp_create_nonce('ajax_pos_customer_choice'); ?>" class="wps-pos-addon-customer-line <?php echo (($customer['last_name'] == __('Default', 'wps-pos-i18n')) && ($customer['first_name'] == __('Customer', 'wps-pos-i18n')) ? 'info' : ''); ?>" data-id="<?php echo $customer['ID']; ?>" > |
|
4 | 4 | <td> |
5 | 5 | <?php echo $customer['last_name']; ?> <?php echo $customer['first_name']; ?><br/> |
6 | 6 | <strong><?php _e('E-mail')?> : </strong><?php echo $customer['email']; ?> |
7 | 7 | </td> |
8 | 8 | <td> |
9 | - <button class="wps-bton-first-rounded wps-pos-addon-choose-customer" type="button" data-type="customer" data-id="<?php echo $customer['ID']; ?>" ><i class="dashicons dashicons-businessman" title="<?php _e( 'Choose this customer', 'wps-pos-i18n' ); ?>" ></i></button> |
|
9 | + <button class="wps-bton-first-rounded wps-pos-addon-choose-customer" type="button" data-type="customer" data-id="<?php echo $customer['ID']; ?>" ><i class="dashicons dashicons-businessman" title="<?php _e('Choose this customer', 'wps-pos-i18n'); ?>" ></i></button> |
|
10 | 10 | </td> |
11 | 11 | </tr> |
@@ -1,4 +1,6 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
2 | 4 | ?> |
3 | 5 | <tr data-nonce="<?php echo wp_create_nonce( 'ajax_pos_customer_choice' ); ?>" class="wps-pos-addon-customer-line <?php echo ( ( $customer['last_name'] == __('Default', 'wps-pos-i18n') ) && ( $customer['first_name'] == __('Customer', 'wps-pos-i18n') ) ? 'info' : '' ); ?>" data-id="<?php echo $customer['ID']; ?>" > |
4 | 6 | <td> |
@@ -1,18 +1,18 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | 2 | ?> |
3 | 3 | <div class="wps-checkout-wrapper"> |
4 | 4 | <div class="wps-checkout-content"> |
5 | - <?php echo do_shortcode( '[wps_shipping_method]' ); ?> |
|
5 | + <?php echo do_shortcode('[wps_shipping_method]'); ?> |
|
6 | 6 | <div id="wps-checkout-step-errors"></div> |
7 | - <?php if( !empty( $_SESSION) && !empty($_SESSION['cart']) && !empty($_SESSION['cart']['cart_type']) && $_SESSION['cart']['cart_type'] == 'quotation' ) : ?> |
|
8 | - <div class="wps"><button class="wps-bton-first-alignRight-rounded" data-nonce="<?php echo wp_create_nonce( 'wps_checkout_valid_step_four' ); ?>" id="wps-checkout-valid-step-four"><?php _e( 'Validate my quotation', 'wpshop' ); ?></button></div> |
|
7 | + <?php if (!empty($_SESSION) && !empty($_SESSION['cart']) && !empty($_SESSION['cart']['cart_type']) && $_SESSION['cart']['cart_type'] == 'quotation') : ?> |
|
8 | + <div class="wps"><button class="wps-bton-first-alignRight-rounded" data-nonce="<?php echo wp_create_nonce('wps_checkout_valid_step_four'); ?>" id="wps-checkout-valid-step-four"><?php _e('Validate my quotation', 'wpshop'); ?></button></div> |
|
9 | 9 | <?php else : ?> |
10 | - <div class="wps"><button class="wps-bton-first-alignRight-rounded" data-nonce="<?php echo wp_create_nonce( 'wps_checkout_valid_step_four' ); ?>" id="wps-checkout-valid-step-four"><?php _e( 'Order', 'wpshop' ); ?></button></div> |
|
10 | + <div class="wps"><button class="wps-bton-first-alignRight-rounded" data-nonce="<?php echo wp_create_nonce('wps_checkout_valid_step_four'); ?>" id="wps-checkout-valid-step-four"><?php _e('Order', 'wpshop'); ?></button></div> |
|
11 | 11 | <?php endif; ?> |
12 | 12 | </div> |
13 | 13 | <div class="wps-sidebar-resume"> |
14 | 14 | <input type="hidden" name="action" value="wps-checkout_valid_step_five"/> |
15 | - <?php wp_nonce_field( 'wps_checkout_valid_step_five' ); ?> |
|
16 | - <?php echo do_shortcode( '[wps_resume_cart]' ); ?> |
|
15 | + <?php wp_nonce_field('wps_checkout_valid_step_five'); ?> |
|
16 | + <?php echo do_shortcode('[wps_resume_cart]'); ?> |
|
17 | 17 | </div> |
18 | 18 | </div> |
@@ -1,4 +1,6 @@ discard block |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
2 | 4 | ?> |
3 | 5 | <div class="wps-checkout-wrapper"> |
4 | 6 | <div class="wps-checkout-content"> |
@@ -6,8 +8,11 @@ discard block |
||
6 | 8 | <div id="wps-checkout-step-errors"></div> |
7 | 9 | <?php if( !empty( $_SESSION) && !empty($_SESSION['cart']) && !empty($_SESSION['cart']['cart_type']) && $_SESSION['cart']['cart_type'] == 'quotation' ) : ?> |
8 | 10 | <div class="wps"><button class="wps-bton-first-alignRight-rounded" data-nonce="<?php echo wp_create_nonce( 'wps_checkout_valid_step_four' ); ?>" id="wps-checkout-valid-step-four"><?php _e( 'Validate my quotation', 'wpshop' ); ?></button></div> |
9 | - <?php else : ?> |
|
10 | - <div class="wps"><button class="wps-bton-first-alignRight-rounded" data-nonce="<?php echo wp_create_nonce( 'wps_checkout_valid_step_four' ); ?>" id="wps-checkout-valid-step-four"><?php _e( 'Order', 'wpshop' ); ?></button></div> |
|
11 | + <?php else { |
|
12 | + : ?> |
|
13 | + <div class="wps"><button class="wps-bton-first-alignRight-rounded" data-nonce="<?php echo wp_create_nonce( 'wps_checkout_valid_step_four' ); |
|
14 | +} |
|
15 | +?>" id="wps-checkout-valid-step-four"><?php _e( 'Order', 'wpshop' ); ?></button></div> |
|
11 | 16 | <?php endif; ?> |
12 | 17 | </div> |
13 | 18 | <div class="wps-sidebar-resume"> |
@@ -1,19 +1,19 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | 2 | ?> |
3 | 3 | <div class="wps-checkout-wrapper"> |
4 | 4 | <div class="wps-checkout-content"> |
5 | 5 | <?php echo do_shortcode('[wps_addresses]'); ?> |
6 | 6 | |
7 | 7 | <div id="wps-checkout-step-errors"></div> |
8 | - <?php if( !empty( $_SESSION) && !empty($_SESSION['cart']) && !empty($_SESSION['cart']['cart_type']) && $_SESSION['cart']['cart_type'] == 'quotation' ) : ?> |
|
9 | - <div class="wps"><button class="wps-bton-first-alignRight-rounded" data-nonce="<?php echo wp_create_nonce( 'wps_checkout_valid_step_three' ); ?>" id="wps-checkout-valid-step-three"><?php _e( 'Validate my quotation', 'wpshop' ); ?></button></div> |
|
8 | + <?php if (!empty($_SESSION) && !empty($_SESSION['cart']) && !empty($_SESSION['cart']['cart_type']) && $_SESSION['cart']['cart_type'] == 'quotation') : ?> |
|
9 | + <div class="wps"><button class="wps-bton-first-alignRight-rounded" data-nonce="<?php echo wp_create_nonce('wps_checkout_valid_step_three'); ?>" id="wps-checkout-valid-step-three"><?php _e('Validate my quotation', 'wpshop'); ?></button></div> |
|
10 | 10 | <?php else : ?> |
11 | - <div class="wps"><button class="wps-bton-first-alignRight-rounded" data-nonce="<?php echo wp_create_nonce( 'wps_checkout_valid_step_three' ); ?>" id="wps-checkout-valid-step-three"><?php _e( 'Order', 'wpshop' ); ?></button></div> |
|
11 | + <div class="wps"><button class="wps-bton-first-alignRight-rounded" data-nonce="<?php echo wp_create_nonce('wps_checkout_valid_step_three'); ?>" id="wps-checkout-valid-step-three"><?php _e('Order', 'wpshop'); ?></button></div> |
|
12 | 12 | <?php endif; ?> |
13 | 13 | </div> |
14 | 14 | <div class="wps-sidebar-resume"> |
15 | 15 | <input type="hidden" name="action" value="wps-checkout_valid_step_five"/> |
16 | - <?php wp_nonce_field( 'wps_checkout_valid_step_five' ); ?> |
|
17 | - <?php echo do_shortcode( '[wps_resume_cart]' ); ?> |
|
16 | + <?php wp_nonce_field('wps_checkout_valid_step_five'); ?> |
|
17 | + <?php echo do_shortcode('[wps_resume_cart]'); ?> |
|
18 | 18 | </div> |
19 | 19 | </div> |
@@ -1,4 +1,6 @@ discard block |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
2 | 4 | ?> |
3 | 5 | <div class="wps-checkout-wrapper"> |
4 | 6 | <div class="wps-checkout-content"> |
@@ -7,8 +9,11 @@ discard block |
||
7 | 9 | <div id="wps-checkout-step-errors"></div> |
8 | 10 | <?php if( !empty( $_SESSION) && !empty($_SESSION['cart']) && !empty($_SESSION['cart']['cart_type']) && $_SESSION['cart']['cart_type'] == 'quotation' ) : ?> |
9 | 11 | <div class="wps"><button class="wps-bton-first-alignRight-rounded" data-nonce="<?php echo wp_create_nonce( 'wps_checkout_valid_step_three' ); ?>" id="wps-checkout-valid-step-three"><?php _e( 'Validate my quotation', 'wpshop' ); ?></button></div> |
10 | - <?php else : ?> |
|
11 | - <div class="wps"><button class="wps-bton-first-alignRight-rounded" data-nonce="<?php echo wp_create_nonce( 'wps_checkout_valid_step_three' ); ?>" id="wps-checkout-valid-step-three"><?php _e( 'Order', 'wpshop' ); ?></button></div> |
|
12 | + <?php else { |
|
13 | + : ?> |
|
14 | + <div class="wps"><button class="wps-bton-first-alignRight-rounded" data-nonce="<?php echo wp_create_nonce( 'wps_checkout_valid_step_three' ); |
|
15 | +} |
|
16 | +?>" id="wps-checkout-valid-step-three"><?php _e( 'Order', 'wpshop' ); ?></button></div> |
|
12 | 17 | <?php endif; ?> |
13 | 18 | </div> |
14 | 19 | <div class="wps-sidebar-resume"> |