@@ -1,4 +1,4 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | 2 | ?> |
3 | 3 | <div class="wps-boxed"> |
4 | 4 | <p><?php _e('Thank you ! Your order has been placed and you will receive a confirmation email shortly.', 'wpshop'); ?></p> |
@@ -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-boxed"> |
4 | 6 | <p><?php _e('Thank you ! Your order has been placed and you will receive a confirmation email shortly.', 'wpshop'); ?></p> |
@@ -1,4 +1,4 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | 2 | ?> |
3 | 3 | <div><p><?php _e('Thank you ! Your quotation has been sent. We will respond to you as soon as possible.', 'wpshop'); ?></p></div> |
4 | -<?php wpshop_cart::empty_cart(); ?> |
|
4 | +<?php wpshop_cart::empty_cart(); ?> |
@@ -1,4 +1,6 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
2 | 4 | ?> |
3 | 5 | <div><p><?php _e('Thank you ! Your quotation has been sent. We will respond to you as soon as possible.', 'wpshop'); ?></p></div> |
4 | 6 | <?php wpshop_cart::empty_cart(); ?> |
@@ -1,4 +1,4 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | 2 | ?> |
3 | 3 | <div class="wps-boxed"> |
4 | 4 | <?php |
@@ -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-boxed"> |
4 | 6 | <?php |
@@ -1,2 +1,2 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | 2 | echo do_shortcode('[wpshop_login]'); ?> |
@@ -1,2 +1,4 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
2 | 4 | echo do_shortcode('[wpshop_login]'); ?> |
@@ -1,31 +1,31 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | 2 | ?> |
3 | 3 | <div class="wps-gridwrapper6-marged wps-checkout-steps --wps-screen"> |
4 | 4 | <?php |
5 | 5 | $step_finished = false; |
6 | - foreach( $steps as $step_id => $step) : |
|
6 | + foreach ($steps as $step_id => $step) : |
|
7 | 7 | $step_id += 1; |
8 | 8 | |
9 | 9 | $real_step_to_display = $default_step; |
10 | - if ( ( true === $no_cart ) && ( 3 == $real_step_to_display ) ) { |
|
10 | + if ((true === $no_cart) && (3 == $real_step_to_display)) { |
|
11 | 11 | $real_step_to_display = 2; |
12 | 12 | } |
13 | - if ( ( true === $no_shipping ) && ( 4 < $real_step_to_display ) ) { |
|
14 | - if ( true === $no_cart ) { |
|
13 | + if ((true === $no_shipping) && (4 < $real_step_to_display)) { |
|
14 | + if (true === $no_cart) { |
|
15 | 15 | $real_step_to_display -= 2; |
16 | 16 | } |
17 | 17 | else { |
18 | 18 | $real_step_to_display -= 1; |
19 | 19 | } |
20 | 20 | } |
21 | - $step_class = ( $real_step_to_display == $step_id ) ? 'wps-checkout-step --wps-current' : ( ( $real_step_to_display > $step_id) ? 'wps-checkout-step --wps-finished' : 'wps-checkout-step' ) ; |
|
22 | - $step_finished = ( ( $real_step_to_display > $step_id ) ? true : false ) ; |
|
23 | - require( wpshop_tools::get_template_part( WPS_CLASSIC_CHECKOUT_DIR, $this->template_dir, "frontend", "checkout_step_indicator/checkout_step_indicator_step") ); |
|
21 | + $step_class = ($real_step_to_display == $step_id) ? 'wps-checkout-step --wps-current' : (($real_step_to_display > $step_id) ? 'wps-checkout-step --wps-finished' : 'wps-checkout-step'); |
|
22 | + $step_finished = (($real_step_to_display > $step_id) ? true : false); |
|
23 | + require(wpshop_tools::get_template_part(WPS_CLASSIC_CHECKOUT_DIR, $this->template_dir, "frontend", "checkout_step_indicator/checkout_step_indicator_step")); |
|
24 | 24 | endforeach; |
25 | 25 | ?> |
26 | 26 | </div> |
27 | 27 | |
28 | 28 | <div class="wps-checkout-steps --wps-touch"> |
29 | - <span class="wps-h3"><?php echo $steps[$real_step_to_display-1]; ?></span> |
|
29 | + <span class="wps-h3"><?php echo $steps[$real_step_to_display - 1]; ?></span> |
|
30 | 30 | <span class="wps-checkout-steps-caption"><?php _e('Etape', 'wpshop'); ?> <?php echo $real_step_to_display; ?>/<?php echo count($steps); ?></span> |
31 | 31 | </div> |
32 | 32 | \ No newline at end of file |
@@ -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-gridwrapper6-marged wps-checkout-steps --wps-screen"> |
4 | 6 | <?php |
@@ -13,8 +15,7 @@ discard block |
||
13 | 15 | if ( ( true === $no_shipping ) && ( 4 < $real_step_to_display ) ) { |
14 | 16 | if ( true === $no_cart ) { |
15 | 17 | $real_step_to_display -= 2; |
16 | - } |
|
17 | - else { |
|
18 | + } else { |
|
18 | 19 | $real_step_to_display -= 1; |
19 | 20 | } |
20 | 21 | } |
@@ -1,8 +1,8 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | 2 | ?> |
3 | 3 | <div class="<?php echo $step_class; ?>" id="wps-step-indicator-<?php echo $step_id; ?>"> |
4 | - <?php if( $step_finished && ( $default_step <= ( max( array_keys( $steps ) ) + 1 ) ) ) : |
|
5 | - $url = get_permalink( wpshop_tools::get_page_id($checkout_page_id) ).( ( !empty($permalink_option) ) ? '?' : '&').'order_step='.$step_id; |
|
4 | + <?php if ($step_finished && ($default_step <= (max(array_keys($steps)) + 1))) : |
|
5 | + $url = get_permalink(wpshop_tools::get_page_id($checkout_page_id)) . ((!empty($permalink_option)) ? '?' : '&') . 'order_step=' . $step_id; |
|
6 | 6 | ?> |
7 | 7 | <a href="<?php echo $url; ?>"><i class="wps-circlerounded"><?php echo $step_id; ?></i><span><?php echo $step; ?></span></a> |
8 | 8 | <?php else : ?> |
@@ -1,11 +1,16 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
2 | 4 | ?> |
3 | 5 | <div class="<?php echo $step_class; ?>" id="wps-step-indicator-<?php echo $step_id; ?>"> |
4 | 6 | <?php if( $step_finished && ( $default_step <= ( max( array_keys( $steps ) ) + 1 ) ) ) : |
5 | 7 | $url = get_permalink( wpshop_tools::get_page_id($checkout_page_id) ).( ( !empty($permalink_option) ) ? '?' : '&').'order_step='.$step_id; |
6 | 8 | ?> |
7 | 9 | <a href="<?php echo $url; ?>"><i class="wps-circlerounded"><?php echo $step_id; ?></i><span><?php echo $step; ?></span></a> |
8 | - <?php else : ?> |
|
9 | - <i class="wps-circlerounded"><?php echo $step_id; ?></i><span><?php echo $step; ?></span> |
|
10 | + <?php else { |
|
11 | + : ?> |
|
12 | + <i class="wps-circlerounded"><?php echo $step_id; |
|
13 | +} |
|
14 | +?></i><span><?php echo $step; ?></span> |
|
10 | 15 | <?php endif ?> |
11 | 16 | </div> |
12 | 17 | \ No newline at end of file |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | 2 | |
3 | 3 | /** |
4 | 4 | * Cart rules bootstrap file |
@@ -12,12 +12,12 @@ discard block |
||
12 | 12 | |
13 | 13 | /** Template Global vars **/ |
14 | 14 | DEFINE('WPS_SHIPPING_MODE_DIR', basename(dirname(__FILE__))); |
15 | -DEFINE('WPS_SHIPPING_MODE_PATH', str_replace( "\\", "/", str_replace( WPS_SHIPPING_MODE_DIR, "", dirname( __FILE__ ) ) ) ); |
|
16 | -DEFINE('WPS_SHIPPING_MODE_URL', str_replace( str_replace( "\\", "/", ABSPATH), site_url() . '/', WPS_SHIPPING_MODE_PATH ) ); |
|
15 | +DEFINE('WPS_SHIPPING_MODE_PATH', str_replace("\\", "/", str_replace(WPS_SHIPPING_MODE_DIR, "", dirname(__FILE__)))); |
|
16 | +DEFINE('WPS_SHIPPING_MODE_URL', str_replace(str_replace("\\", "/", ABSPATH), site_url() . '/', WPS_SHIPPING_MODE_PATH)); |
|
17 | 17 | |
18 | -include( plugin_dir_path( __FILE__ ).'/controller/wps_shipping_ctr.php' ); |
|
19 | -include( plugin_dir_path( __FILE__ ).'/controller/wps_shipping_mode_ctr.php' ); |
|
20 | -include( plugin_dir_path( __FILE__ ).'/controller/wps_shipping_mode_ajax_actions.php' ); |
|
18 | +include(plugin_dir_path(__FILE__) . '/controller/wps_shipping_ctr.php'); |
|
19 | +include(plugin_dir_path(__FILE__) . '/controller/wps_shipping_mode_ctr.php'); |
|
20 | +include(plugin_dir_path(__FILE__) . '/controller/wps_shipping_mode_ajax_actions.php'); |
|
21 | 21 | |
22 | 22 | |
23 | 23 | $wps_shipping_mode_ctr = new wps_shipping_mode_ctr(); |
@@ -1,4 +1,6 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
2 | 4 | |
3 | 5 | /** |
4 | 6 | * Cart rules bootstrap file |
@@ -1,16 +1,16 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | 2 | ?> |
3 | 3 | <div class="wps-resume-address"> |
4 | -<?php if( !empty($shipping_content) ) : ?> |
|
4 | +<?php if (!empty($shipping_content)) : ?> |
|
5 | 5 | <div class="wps-item-resume-address"> |
6 | - <div class="entry-title"><?php _e( 'Shipping address', 'wpshop')?></div> |
|
6 | + <div class="entry-title"><?php _e('Shipping address', 'wpshop')?></div> |
|
7 | 7 | <div class="entry-content"> |
8 | 8 | <?php echo $shipping_content; ?> |
9 | 9 | </div> |
10 | 10 | </div> |
11 | 11 | <?php endif; ?> |
12 | 12 | <div class="wps-item-resume-address"> |
13 | - <div class="entry-title"><?php _e( 'Billing address', 'wpshop')?></div> |
|
13 | + <div class="entry-title"><?php _e('Billing address', 'wpshop')?></div> |
|
14 | 14 | <div class="entry-content"> |
15 | 15 | <?php echo $billing_content; ?> |
16 | 16 | </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-resume-address"> |
4 | 6 | <?php if( !empty($shipping_content) ) : ?> |
@@ -1,4 +1,6 @@ discard block |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
2 | 4 | if( !empty( $shipping_mode['active'] ) ) : ?> |
3 | 5 | <?php |
4 | 6 | $checked = $class = ''; |
@@ -10,17 +12,14 @@ discard block |
||
10 | 12 | if( !empty($selected_shipping_method) && $shipping_mode_id == $selected_shipping_method ) { |
11 | 13 | $class = 'wps-activ'; |
12 | 14 | $checked = 'checked="checked"'; |
13 | - } |
|
14 | - else { |
|
15 | + } else { |
|
15 | 16 | if( empty($selected_shipping_method) && ( !empty($shipping_modes) && !empty($shipping_modes['default_choice']) && $shipping_mode_id == $shipping_modes['default_choice'] ) ) { |
16 | 17 | $checked = 'checked="checked"'; |
17 | 18 | $class = 'wps-activ'; |
18 | - } |
|
19 | - else if( $count == 0 && empty($selected_shipping_method) ) { |
|
19 | + } else if( $count == 0 && empty($selected_shipping_method) ) { |
|
20 | 20 | $checked = 'checked="checked"'; |
21 | 21 | $class = 'wps-activ'; |
22 | - } |
|
23 | - else { |
|
22 | + } else { |
|
24 | 23 | $checked = $class = ''; |
25 | 24 | } |
26 | 25 | } |
@@ -43,8 +42,7 @@ discard block |
||
43 | 42 | if ( $order_amount < $shipping_mode['free_from'] ) { |
44 | 43 | $free_in = ($shipping_mode['free_from'] - $order_amount); |
45 | 44 | $shipping_cost .= ' ' . sprintf(__('Free in %s', 'wpshop'), $free_in. ' ' . $currency); |
46 | - } |
|
47 | - else { |
|
45 | + } else { |
|
48 | 46 | $shipping_cost = '<span class="wps-badge-vert">'.__('Free shipping cost', 'wpshop').'</span>'; |
49 | 47 | $shipping_cost_are_free = true; |
50 | 48 | } |
@@ -1,22 +1,22 @@ discard block |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
2 | - if( !empty( $shipping_mode['active'] ) ) : ?> |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | + if (!empty($shipping_mode['active'])) : ?> |
|
3 | 3 | <?php |
4 | 4 | $checked = $class = ''; |
5 | 5 | |
6 | - $selected_shipping_method = ( !empty($_SESSION['shipping_method']) ) ? $_SESSION['shipping_method'] : ''; |
|
6 | + $selected_shipping_method = (!empty($_SESSION['shipping_method'])) ? $_SESSION['shipping_method'] : ''; |
|
7 | 7 | |
8 | - $count = count( $shipping_modes ); |
|
9 | - $shipping_modes = get_option( 'wps_shipping_mode' ); |
|
10 | - if( !empty($selected_shipping_method) && $shipping_mode_id == $selected_shipping_method ) { |
|
8 | + $count = count($shipping_modes); |
|
9 | + $shipping_modes = get_option('wps_shipping_mode'); |
|
10 | + if (!empty($selected_shipping_method) && $shipping_mode_id == $selected_shipping_method) { |
|
11 | 11 | $class = 'wps-activ'; |
12 | 12 | $checked = 'checked="checked"'; |
13 | 13 | } |
14 | 14 | else { |
15 | - if( empty($selected_shipping_method) && ( !empty($shipping_modes) && !empty($shipping_modes['default_choice']) && $shipping_mode_id == $shipping_modes['default_choice'] ) ) { |
|
15 | + if (empty($selected_shipping_method) && (!empty($shipping_modes) && !empty($shipping_modes['default_choice']) && $shipping_mode_id == $shipping_modes['default_choice'])) { |
|
16 | 16 | $checked = 'checked="checked"'; |
17 | 17 | $class = 'wps-activ'; |
18 | 18 | } |
19 | - else if( $count == 0 && empty($selected_shipping_method) ) { |
|
19 | + else if ($count == 0 && empty($selected_shipping_method)) { |
|
20 | 20 | $checked = 'checked="checked"'; |
21 | 21 | $class = 'wps-activ'; |
22 | 22 | } |
@@ -28,24 +28,24 @@ discard block |
||
28 | 28 | $shipping_cost_are_free = false; |
29 | 29 | $free_shipping_cost_alert = ''; |
30 | 30 | $currency = wpshop_tools::wpshop_get_currency(); |
31 | - $cart_items = ( !empty($_SESSION) && !empty($_SESSION['cart']) && !empty($_SESSION['cart']['order_items']) ) ? $_SESSION['cart']['order_items'] : ''; |
|
32 | - $price_piloting = get_option( 'wpshop_shop_price_piloting' ); |
|
33 | - if( !empty($cart_items) ) { |
|
31 | + $cart_items = (!empty($_SESSION) && !empty($_SESSION['cart']) && !empty($_SESSION['cart']['order_items'])) ? $_SESSION['cart']['order_items'] : ''; |
|
32 | + $price_piloting = get_option('wpshop_shop_price_piloting'); |
|
33 | + if (!empty($cart_items)) { |
|
34 | 34 | $wps_shipping = new wps_shipping(); |
35 | - $cart_weight = $wps_shipping->calcul_cart_weight( $cart_items ); |
|
36 | - $total_cart_ht_or_ttc_regarding_config = ( !empty($price_piloting) && $price_piloting == 'HT' ) ? $_SESSION['cart']['order_total_ht'] : $_SESSION['cart']['order_total_ttc']; |
|
37 | - $total_shipping_cost_for_products = $wps_shipping->calcul_cart_items_shipping_cost( $cart_items ); |
|
38 | - $shipping_cost = $wps_shipping->get_shipping_cost( count( $cart_items ), $total_cart_ht_or_ttc_regarding_config, $total_shipping_cost_for_products, $cart_weight, $shipping_mode_id ).' '.$currency; |
|
35 | + $cart_weight = $wps_shipping->calcul_cart_weight($cart_items); |
|
36 | + $total_cart_ht_or_ttc_regarding_config = (!empty($price_piloting) && $price_piloting == 'HT') ? $_SESSION['cart']['order_total_ht'] : $_SESSION['cart']['order_total_ttc']; |
|
37 | + $total_shipping_cost_for_products = $wps_shipping->calcul_cart_items_shipping_cost($cart_items); |
|
38 | + $shipping_cost = $wps_shipping->get_shipping_cost(count($cart_items), $total_cart_ht_or_ttc_regarding_config, $total_shipping_cost_for_products, $cart_weight, $shipping_mode_id) . ' ' . $currency; |
|
39 | 39 | } |
40 | 40 | |
41 | - if ( !empty($shipping_mode['free_from']) ) { |
|
42 | - $order_amount = ( !empty($price_piloting_option) && $price_piloting_option == 'HT' ) ? number_format((float)$_SESSION['cart']['order_total_ht'], 2, '.', '') : number_format((float)$_SESSION['cart']['order_total_ttc'], 2, '.', ''); |
|
43 | - if ( $order_amount < $shipping_mode['free_from'] ) { |
|
41 | + if (!empty($shipping_mode['free_from'])) { |
|
42 | + $order_amount = (!empty($price_piloting_option) && $price_piloting_option == 'HT') ? number_format((float)$_SESSION['cart']['order_total_ht'], 2, '.', '') : number_format((float)$_SESSION['cart']['order_total_ttc'], 2, '.', ''); |
|
43 | + if ($order_amount < $shipping_mode['free_from']) { |
|
44 | 44 | $free_in = ($shipping_mode['free_from'] - $order_amount); |
45 | - $shipping_cost .= ' ' . sprintf(__('Free in %s', 'wpshop'), $free_in. ' ' . $currency); |
|
45 | + $shipping_cost .= ' ' . sprintf(__('Free in %s', 'wpshop'), $free_in . ' ' . $currency); |
|
46 | 46 | } |
47 | 47 | else { |
48 | - $shipping_cost = '<span class="wps-badge-vert">'.__('Free shipping cost', 'wpshop').'</span>'; |
|
48 | + $shipping_cost = '<span class="wps-badge-vert">' . __('Free shipping cost', 'wpshop') . '</span>'; |
|
49 | 49 | $shipping_cost_are_free = true; |
50 | 50 | } |
51 | 51 | } |
@@ -55,24 +55,24 @@ discard block |
||
55 | 55 | |
56 | 56 | |
57 | 57 | <li class="<?php echo $class; ?> wps-bloc-loader"> |
58 | - <span><input type="radio" name="wps-shipping-method" data-nonce="<?php echo wp_create_nonce( 'wps_calculate_shipping_cost' ); ?>" value="<?php echo $shipping_mode_id; ?>" id="<?php echo $shipping_mode_id ; ?>" <?php echo $checked; ?> /> <?php apply_filters( 'wps-extra-fields-'.$shipping_mode_id, '' ); ?></span> |
|
58 | + <span><input type="radio" name="wps-shipping-method" data-nonce="<?php echo wp_create_nonce('wps_calculate_shipping_cost'); ?>" value="<?php echo $shipping_mode_id; ?>" id="<?php echo $shipping_mode_id; ?>" <?php echo $checked; ?> /> <?php apply_filters('wps-extra-fields-' . $shipping_mode_id, ''); ?></span> |
|
59 | 59 | |
60 | - <?php echo ( !empty($shipping_mode['logo']) ? '<span class="wps-shipping-method-logo">'.wp_get_attachment_image( $shipping_mode['logo'], 'thumbnail' ).'</span>': '' ); ?> |
|
60 | + <?php echo (!empty($shipping_mode['logo']) ? '<span class="wps-shipping-method-logo">' . wp_get_attachment_image($shipping_mode['logo'], 'thumbnail') . '</span>' : ''); ?> |
|
61 | 61 | |
62 | - <span class="wps-shipping-method-name"><strong><?php _e( $shipping_mode['name'], 'wpshop' ); ?></strong></span> |
|
62 | + <span class="wps-shipping-method-name"><strong><?php _e($shipping_mode['name'], 'wpshop'); ?></strong></span> |
|
63 | 63 | <span class="alignright"> |
64 | - <?php if ( false === $shipping_cost_are_free ) : _e('Cost of postage ', 'wpshop'); endif; ?> |
|
64 | + <?php if (false === $shipping_cost_are_free) : _e('Cost of postage ', 'wpshop'); endif; ?> |
|
65 | 65 | <?php echo $shipping_cost; ?> |
66 | - <?php if ( false === $shipping_cost_are_free ) : echo $price_piloting; endif; ?> |
|
66 | + <?php if (false === $shipping_cost_are_free) : echo $price_piloting; endif; ?> |
|
67 | 67 | </span> |
68 | 68 | |
69 | - <div class="wps-shipping-method-explanation"><?php if( !empty( $shipping_mode['explanation'] ) ) : |
|
70 | - _e( $shipping_mode['explanation'], 'wpshop' ); |
|
69 | + <div class="wps-shipping-method-explanation"><?php if (!empty($shipping_mode['explanation'])) : |
|
70 | + _e($shipping_mode['explanation'], 'wpshop'); |
|
71 | 71 | endif; ?></div> |
72 | - <div id="container_<?php echo $shipping_mode_id ; ?>" > |
|
72 | + <div id="container_<?php echo $shipping_mode_id; ?>" > |
|
73 | 73 | <?php |
74 | 74 | $result_filter = apply_filters('wps_shipping_mode_additional_content', $shipping_mode_id); |
75 | - if($result_filter != $shipping_mode_id) { |
|
75 | + if ($result_filter != $shipping_mode_id) { |
|
76 | 76 | echo $result_filter; |
77 | 77 | } |
78 | 78 | ?></div> |