@@ -14,12 +14,12 @@ |
||
| 14 | 14 | |
| 15 | 15 | namespace wpshop; |
| 16 | 16 | |
| 17 | -defined( 'ABSPATH' ) || exit; ?> |
|
| 17 | +defined('ABSPATH') || exit; ?> |
|
| 18 | 18 | |
| 19 | 19 | <ul class="error notice"> |
| 20 | 20 | <?php |
| 21 | - if ( ! empty( $errors->get_error_messages() ) ) : |
|
| 22 | - foreach ( $errors->get_error_messages() as $message ) : |
|
| 21 | + if (!empty($errors->get_error_messages())) : |
|
| 22 | + foreach ($errors->get_error_messages() as $message) : |
|
| 23 | 23 | ?> |
| 24 | 24 | <li><?php echo $message; ?></li> |
| 25 | 25 | <?php |
@@ -14,53 +14,53 @@ discard block |
||
| 14 | 14 | |
| 15 | 15 | namespace wpshop; |
| 16 | 16 | |
| 17 | -defined( 'ABSPATH' ) || exit; ?> |
|
| 17 | +defined('ABSPATH') || exit; ?> |
|
| 18 | 18 | |
| 19 | 19 | <table class="wpeo-table wps-checkout-review-order-table"> |
| 20 | 20 | <thead> |
| 21 | 21 | <tr> |
| 22 | 22 | <th></th> |
| 23 | - <th data-title="<?php esc_html_e( 'Product name', 'wpshop' ); ?>"><?php esc_html_e( 'Product name', 'wpshop' ); ?></th> |
|
| 24 | - <th data-title="<?php esc_html_e( 'VAT', 'wpshop' ); ?>"><?php esc_html_e( 'VAT', 'wpshop' ); ?></th> |
|
| 25 | - <th data-title="<?php esc_html_e( 'P.U. HT', 'wpshop' ); ?>"><?php esc_html_e( 'P.U HT', 'wpshop' ); ?></th> |
|
| 26 | - <th data-title="<?php esc_html_e( 'Quantity', 'wpshop' ); ?>"><?php esc_html_e( 'Quantity', 'wpshop' ); ?></th> |
|
| 27 | - <th data-title="<?php esc_html_e( 'Total HT', 'wpshop' ); ?>"><?php esc_html_e( 'Total HT', 'wpshop' ); ?></th> |
|
| 23 | + <th data-title="<?php esc_html_e('Product name', 'wpshop'); ?>"><?php esc_html_e('Product name', 'wpshop'); ?></th> |
|
| 24 | + <th data-title="<?php esc_html_e('VAT', 'wpshop'); ?>"><?php esc_html_e('VAT', 'wpshop'); ?></th> |
|
| 25 | + <th data-title="<?php esc_html_e('P.U. HT', 'wpshop'); ?>"><?php esc_html_e('P.U HT', 'wpshop'); ?></th> |
|
| 26 | + <th data-title="<?php esc_html_e('Quantity', 'wpshop'); ?>"><?php esc_html_e('Quantity', 'wpshop'); ?></th> |
|
| 27 | + <th data-title="<?php esc_html_e('Total HT', 'wpshop'); ?>"><?php esc_html_e('Total HT', 'wpshop'); ?></th> |
|
| 28 | 28 | </tr> |
| 29 | 29 | </thead> |
| 30 | 30 | <tbody> |
| 31 | 31 | <?php |
| 32 | - do_action( 'wps_review_order_before_cart_contents' ); |
|
| 32 | + do_action('wps_review_order_before_cart_contents'); |
|
| 33 | 33 | |
| 34 | - if ( ! empty( $cart_contents ) ) : |
|
| 35 | - foreach ( $cart_contents as $cart_item ) : |
|
| 34 | + if (!empty($cart_contents)) : |
|
| 35 | + foreach ($cart_contents as $cart_item) : |
|
| 36 | 36 | ?> |
| 37 | 37 | <tr> |
| 38 | - <td><?php echo get_the_post_thumbnail( $cart_item['id'], array( 80, 80 ) ); ?></td> |
|
| 39 | - <td data-title="<?php echo esc_html( 'Product name', 'wpshop' ); ?>"><a href="<?php echo esc_url( get_permalink( $cart_item['id'] ) ); ?>"><?php echo esc_html( $cart_item['title'] ); ?></a></td> |
|
| 40 | - <td data-title="<?php echo esc_html( 'VAT', 'wpshop' ); ?>"><?php echo esc_html( number_format( $cart_item['tva_tx'], 2, ',', '' ) ); ?>%</td> |
|
| 41 | - <td data-title="<?php echo esc_html( 'P.U. HT', 'wpshop' ); ?>"><?php echo esc_html( number_format( $cart_item['price'], 2, ',', '' ) ); ?>€</td> |
|
| 42 | - <td data-title="<?php echo esc_html( 'Quantity', 'wpshop' ); ?>"><?php echo esc_html( $cart_item['qty'] ); ?></td> |
|
| 43 | - <td data-title="<?php echo esc_html( 'Total HT', 'wpshop' ); ?>"><?php echo esc_html( number_format( $cart_item['price'] * $cart_item['qty'], 2, ',', '' ) ); ?>€</td> |
|
| 38 | + <td><?php echo get_the_post_thumbnail($cart_item['id'], array(80, 80)); ?></td> |
|
| 39 | + <td data-title="<?php echo esc_html('Product name', 'wpshop'); ?>"><a href="<?php echo esc_url(get_permalink($cart_item['id'])); ?>"><?php echo esc_html($cart_item['title']); ?></a></td> |
|
| 40 | + <td data-title="<?php echo esc_html('VAT', 'wpshop'); ?>"><?php echo esc_html(number_format($cart_item['tva_tx'], 2, ',', '')); ?>%</td> |
|
| 41 | + <td data-title="<?php echo esc_html('P.U. HT', 'wpshop'); ?>"><?php echo esc_html(number_format($cart_item['price'], 2, ',', '')); ?>€</td> |
|
| 42 | + <td data-title="<?php echo esc_html('Quantity', 'wpshop'); ?>"><?php echo esc_html($cart_item['qty']); ?></td> |
|
| 43 | + <td data-title="<?php echo esc_html('Total HT', 'wpshop'); ?>"><?php echo esc_html(number_format($cart_item['price'] * $cart_item['qty'], 2, ',', '')); ?>€</td> |
|
| 44 | 44 | </tr> |
| 45 | 45 | <?php |
| 46 | 46 | endforeach; |
| 47 | 47 | endif; |
| 48 | 48 | |
| 49 | - do_action( 'wps_review_order_after_cart_contents' ); |
|
| 49 | + do_action('wps_review_order_after_cart_contents'); |
|
| 50 | 50 | ?> |
| 51 | 51 | </tbody> |
| 52 | 52 | <tfoot> |
| 53 | 53 | <tr> |
| 54 | - <td colspan="5"><strong><?php esc_html_e( 'Total HT', 'wpshop' ); ?></strong></td> |
|
| 55 | - <td><?php echo number_format( $proposal->data['total_ht'], 2, ',', '' ); ?>€</td> |
|
| 54 | + <td colspan="5"><strong><?php esc_html_e('Total HT', 'wpshop'); ?></strong></td> |
|
| 55 | + <td><?php echo number_format($proposal->data['total_ht'], 2, ',', ''); ?>€</td> |
|
| 56 | 56 | </tr> |
| 57 | 57 | <?php |
| 58 | - if ( ! empty( $tva_lines ) ) : |
|
| 59 | - foreach ( $tva_lines as $key => $tva_line ) : |
|
| 58 | + if (!empty($tva_lines)) : |
|
| 59 | + foreach ($tva_lines as $key => $tva_line) : |
|
| 60 | 60 | ?> |
| 61 | 61 | <tr> |
| 62 | - <td colspan="5"><strong><?php esc_html_e( 'Total VAT', 'wpshop' ); ?> <?php echo number_format( $key, 2, ',', '' ); ?>%</strong></td> |
|
| 63 | - <td><?php echo number_format( $tva_line, 2, ',', '' ); ?>€</td> |
|
| 62 | + <td colspan="5"><strong><?php esc_html_e('Total VAT', 'wpshop'); ?> <?php echo number_format($key, 2, ',', ''); ?>%</strong></td> |
|
| 63 | + <td><?php echo number_format($tva_line, 2, ',', ''); ?>€</td> |
|
| 64 | 64 | </tr> |
| 65 | 65 | <?php |
| 66 | 66 | endforeach; |
@@ -68,8 +68,8 @@ discard block |
||
| 68 | 68 | ?> |
| 69 | 69 | |
| 70 | 70 | <tr> |
| 71 | - <td colspan="5"><strong><?php esc_html_e( 'Total TTC', 'wpshop' ); ?></strong></td> |
|
| 72 | - <td><strong><?php echo number_format( $proposal->data['total_ttc'], 2, ',', '' ); ?>€</strong></td> |
|
| 71 | + <td colspan="5"><strong><?php esc_html_e('Total TTC', 'wpshop'); ?></strong></td> |
|
| 72 | + <td><strong><?php echo number_format($proposal->data['total_ttc'], 2, ',', ''); ?>€</strong></td> |
|
| 73 | 73 | </tr> |
| 74 | 74 | </tfoot> |
| 75 | 75 | </table> |
@@ -14,6 +14,6 @@ |
||
| 14 | 14 | |
| 15 | 15 | namespace wpshop; |
| 16 | 16 | |
| 17 | -defined( 'ABSPATH' ) || exit; ?> |
|
| 17 | +defined('ABSPATH') || exit; ?> |
|
| 18 | 18 | |
| 19 | 19 | Termes |
@@ -14,27 +14,27 @@ |
||
| 14 | 14 | |
| 15 | 15 | namespace wpshop; |
| 16 | 16 | |
| 17 | -defined( 'ABSPATH' ) || exit; ?> |
|
| 17 | +defined('ABSPATH') || exit; ?> |
|
| 18 | 18 | |
| 19 | -<?php do_action( 'wps_before_checkout_form' ); ?> |
|
| 19 | +<?php do_action('wps_before_checkout_form'); ?> |
|
| 20 | 20 | |
| 21 | 21 | <form method="post" class="wpeo-form wps-checkout-step-1"> |
| 22 | 22 | <input type="hidden" name="action" value="wps_checkout_create_third_party" /> |
| 23 | 23 | |
| 24 | - <div><?php do_action( 'wps_checkout_billing', $third_party, $contact ); ?></div> |
|
| 25 | - <div><?php do_action( 'wps_checkout_shipping', $third_party, $contact ); ?></div> |
|
| 24 | + <div><?php do_action('wps_checkout_billing', $third_party, $contact); ?></div> |
|
| 25 | + <div><?php do_action('wps_checkout_shipping', $third_party, $contact); ?></div> |
|
| 26 | 26 | |
| 27 | 27 | <a class="wpeo-button action-input alignright" |
| 28 | 28 | data-parent="wpeo-form"> |
| 29 | 29 | <?php |
| 30 | - if ( 0 === $third_party->data['id'] ) : |
|
| 31 | - esc_html_e( 'Subscribe', 'wpshop' ); |
|
| 30 | + if (0 === $third_party->data['id']) : |
|
| 31 | + esc_html_e('Subscribe', 'wpshop'); |
|
| 32 | 32 | else : |
| 33 | - esc_html_e( 'Continue', 'wpshop' ); |
|
| 33 | + esc_html_e('Continue', 'wpshop'); |
|
| 34 | 34 | endif; |
| 35 | 35 | ?> |
| 36 | 36 | </a> |
| 37 | 37 | |
| 38 | 38 | </form> |
| 39 | 39 | |
| 40 | -<?php do_action( 'wps_after_checkout_form' ); ?> |
|
| 40 | +<?php do_action('wps_after_checkout_form'); ?> |
|
@@ -29,8 +29,10 @@ |
||
| 29 | 29 | <?php |
| 30 | 30 | if ( 0 === $third_party->data['id'] ) : |
| 31 | 31 | esc_html_e( 'Subscribe', 'wpshop' ); |
| 32 | - else : |
|
| 32 | + else { |
|
| 33 | + : |
|
| 33 | 34 | esc_html_e( 'Continue', 'wpshop' ); |
| 35 | + } |
|
| 34 | 36 | endif; |
| 35 | 37 | ?> |
| 36 | 38 | </a> |
@@ -14,21 +14,21 @@ |
||
| 14 | 14 | |
| 15 | 15 | namespace wpshop; |
| 16 | 16 | |
| 17 | -defined( 'ABSPATH' ) || exit; ?> |
|
| 17 | +defined('ABSPATH') || exit; ?> |
|
| 18 | 18 | |
| 19 | -<?php do_action( 'wps_before_checkout_form' ); ?> |
|
| 19 | +<?php do_action('wps_before_checkout_form'); ?> |
|
| 20 | 20 | |
| 21 | 21 | <form method="post" class="wps-checkout-step-2"> |
| 22 | 22 | |
| 23 | - <h3 id="order_review_heading"><?php esc_html_e( 'Your order', 'wpshop' ); ?></h3> |
|
| 23 | + <h3 id="order_review_heading"><?php esc_html_e('Your order', 'wpshop'); ?></h3> |
|
| 24 | 24 | |
| 25 | - <?php do_action( 'wps_checkout_before_order_review', $proposal ); ?> |
|
| 25 | + <?php do_action('wps_checkout_before_order_review', $proposal); ?> |
|
| 26 | 26 | |
| 27 | 27 | <div id="order_review" class="wps-checkout-review-order"> |
| 28 | - <?php do_action( 'wps_checkout_order_review', $proposal ); ?> |
|
| 28 | + <?php do_action('wps_checkout_order_review', $proposal); ?> |
|
| 29 | 29 | </div> |
| 30 | 30 | |
| 31 | - <?php do_action( 'wps_checkout_after_order_review' ); ?> |
|
| 31 | + <?php do_action('wps_checkout_after_order_review'); ?> |
|
| 32 | 32 | </form> |
| 33 | 33 | |
| 34 | -<?php do_action( 'wps_after_checkout_form' ); ?> |
|
| 34 | +<?php do_action('wps_after_checkout_form'); ?> |
|
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | |
| 15 | 15 | namespace wpshop; |
| 16 | 16 | |
| 17 | -defined( 'ABSPATH' ) || exit; |
|
| 17 | +defined('ABSPATH') || exit; |
|
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * Doli Shipping Cost Action Class. |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | * @since 2.0.0 |
| 28 | 28 | */ |
| 29 | 29 | public function __construct() { |
| 30 | - add_action( 'wps_after_calculate_totals', array( $this, 'add_shipping_cost' ), 10, 0 ); |
|
| 30 | + add_action('wps_after_calculate_totals', array($this, 'add_shipping_cost'), 10, 0); |
|
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | /** |
@@ -36,21 +36,21 @@ discard block |
||
| 36 | 36 | * @since 2.0.0 |
| 37 | 37 | */ |
| 38 | 38 | public function add_shipping_cost() { |
| 39 | - $shipping_cost_option = get_option( 'wps_shipping_cost', Settings::g()->shipping_cost_default_settings ); |
|
| 39 | + $shipping_cost_option = get_option('wps_shipping_cost', Settings::g()->shipping_cost_default_settings); |
|
| 40 | 40 | |
| 41 | - if ( 0 === $shipping_cost_option['shipping_product_id'] ) { |
|
| 41 | + if (0 === $shipping_cost_option['shipping_product_id']) { |
|
| 42 | 42 | return; |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | - if ( (float) Cart_Session::g()->total_price_no_shipping < (float) $shipping_cost_option['from_price_ht'] && |
|
| 46 | - ! Cart_Session::g()->has_product( $shipping_cost_option['shipping_product_id'] ) && count( Cart_Session::g()->cart_contents ) > 0 ) { |
|
| 47 | - $product = Product::g()->get( array( 'id' => $shipping_cost_option['shipping_product_id'] ), true ); |
|
| 48 | - Cart::g()->add_to_cart( $product ); |
|
| 45 | + if ((float)Cart_Session::g()->total_price_no_shipping < (float)$shipping_cost_option['from_price_ht'] && |
|
| 46 | + !Cart_Session::g()->has_product($shipping_cost_option['shipping_product_id']) && count(Cart_Session::g()->cart_contents) > 0) { |
|
| 47 | + $product = Product::g()->get(array('id' => $shipping_cost_option['shipping_product_id']), true); |
|
| 48 | + Cart::g()->add_to_cart($product); |
|
| 49 | 49 | } |
| 50 | 50 | |
| 51 | - if ( (float) Cart_Session::g()->total_price_no_shipping >= (float) $shipping_cost_option['from_price_ht'] || |
|
| 52 | - count( Cart_Session::g()->cart_contents ) == 1 && Cart_Session::g()->has_product( $shipping_cost_option['shipping_product_id'] ) ) { |
|
| 53 | - Cart_Session::g()->remove_product( $shipping_cost_option['shipping_product_id'] ); |
|
| 51 | + if ((float)Cart_Session::g()->total_price_no_shipping >= (float)$shipping_cost_option['from_price_ht'] || |
|
| 52 | + count(Cart_Session::g()->cart_contents) == 1 && Cart_Session::g()->has_product($shipping_cost_option['shipping_product_id'])) { |
|
| 53 | + Cart_Session::g()->remove_product($shipping_cost_option['shipping_product_id']); |
|
| 54 | 54 | } |
| 55 | 55 | } |
| 56 | 56 | } |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | |
| 15 | 15 | namespace wpshop; |
| 16 | 16 | |
| 17 | -defined( 'ABSPATH' ) || exit; |
|
| 17 | +defined('ABSPATH') || exit; |
|
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * Doli Order Filter Class. |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | * @since 2.0.0 |
| 28 | 28 | */ |
| 29 | 29 | public function __construct() { |
| 30 | - add_filter( 'eo_model_wps-order_register_post_type_args', array( $this, 'callback_register_post_type_args' ) ); |
|
| 30 | + add_filter('eo_model_wps-order_register_post_type_args', array($this, 'callback_register_post_type_args')); |
|
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | /** |
@@ -39,24 +39,24 @@ discard block |
||
| 39 | 39 | */ |
| 40 | 40 | public function callback_register_post_type_args() { |
| 41 | 41 | $labels = array( |
| 42 | - 'name' => _x( 'Orders', 'post type general name', 'wpshop' ), |
|
| 43 | - 'singular_name' => _x( 'Order', 'post type singular name', 'wpshop' ), |
|
| 44 | - 'menu_name' => _x( 'Orders', 'admin menu', 'wpshop' ), |
|
| 45 | - 'name_admin_bar' => _x( 'Order', 'add new on admin bar', 'wpshop' ), |
|
| 46 | - 'add_new' => _x( 'Add New', 'product', 'wpshop' ), |
|
| 47 | - 'add_new_item' => __( 'Add New Order', 'wpshop' ), |
|
| 48 | - 'new_item' => __( 'New Order', 'wpshop' ), |
|
| 49 | - 'edit_item' => __( 'Edit Order', 'wpshop' ), |
|
| 50 | - 'view_item' => __( 'View Order', 'wpshop' ), |
|
| 51 | - 'all_items' => __( 'All Orders', 'wpshop' ), |
|
| 52 | - 'search_items' => __( 'Search Orders', 'wpshop' ), |
|
| 53 | - 'parent_item_colon' => __( 'Parent Orders:', 'wpshop' ), |
|
| 54 | - 'not_found' => __( 'No products found.', 'wpshop' ), |
|
| 55 | - 'not_found_in_trash' => __( 'No products found in Trash.', 'wpshop' ), |
|
| 42 | + 'name' => _x('Orders', 'post type general name', 'wpshop'), |
|
| 43 | + 'singular_name' => _x('Order', 'post type singular name', 'wpshop'), |
|
| 44 | + 'menu_name' => _x('Orders', 'admin menu', 'wpshop'), |
|
| 45 | + 'name_admin_bar' => _x('Order', 'add new on admin bar', 'wpshop'), |
|
| 46 | + 'add_new' => _x('Add New', 'product', 'wpshop'), |
|
| 47 | + 'add_new_item' => __('Add New Order', 'wpshop'), |
|
| 48 | + 'new_item' => __('New Order', 'wpshop'), |
|
| 49 | + 'edit_item' => __('Edit Order', 'wpshop'), |
|
| 50 | + 'view_item' => __('View Order', 'wpshop'), |
|
| 51 | + 'all_items' => __('All Orders', 'wpshop'), |
|
| 52 | + 'search_items' => __('Search Orders', 'wpshop'), |
|
| 53 | + 'parent_item_colon' => __('Parent Orders:', 'wpshop'), |
|
| 54 | + 'not_found' => __('No products found.', 'wpshop'), |
|
| 55 | + 'not_found_in_trash' => __('No products found in Trash.', 'wpshop'), |
|
| 56 | 56 | ); |
| 57 | 57 | |
| 58 | 58 | $args['labels'] = $labels; |
| 59 | - $args['supports'] = array( 'title' ); |
|
| 59 | + $args['supports'] = array('title'); |
|
| 60 | 60 | $args['public'] = true; |
| 61 | 61 | $args['has_archive'] = true; |
| 62 | 62 | $args['show_ui'] = true; |
@@ -14,4 +14,4 @@ |
||
| 14 | 14 | |
| 15 | 15 | namespace wpshop; |
| 16 | 16 | |
| 17 | -defined( 'ABSPATH' ) || exit; |
|
| 17 | +defined('ABSPATH') || exit; |
|
@@ -14,30 +14,30 @@ discard block |
||
| 14 | 14 | |
| 15 | 15 | namespace wpshop; |
| 16 | 16 | |
| 17 | -defined( 'ABSPATH' ) || exit; ?> |
|
| 17 | +defined('ABSPATH') || exit; ?> |
|
| 18 | 18 | |
| 19 | 19 | <table class="wpeo-table"> |
| 20 | 20 | <thead> |
| 21 | 21 | <tr> |
| 22 | - <th><?php esc_html_e( 'Product name', 'wpshop' ); ?></th> |
|
| 23 | - <th><?php esc_html_e( 'VAT', 'wpshop' ); ?></th> |
|
| 24 | - <th><?php esc_html_e( 'P.U HT', 'wpshop' ); ?></th> |
|
| 25 | - <th><?php esc_html_e( 'Quantity', 'wpshop' ); ?></th> |
|
| 26 | - <th><?php esc_html_e( 'Total HT', 'wpshop' ); ?></th> |
|
| 22 | + <th><?php esc_html_e('Product name', 'wpshop'); ?></th> |
|
| 23 | + <th><?php esc_html_e('VAT', 'wpshop'); ?></th> |
|
| 24 | + <th><?php esc_html_e('P.U HT', 'wpshop'); ?></th> |
|
| 25 | + <th><?php esc_html_e('Quantity', 'wpshop'); ?></th> |
|
| 26 | + <th><?php esc_html_e('Total HT', 'wpshop'); ?></th> |
|
| 27 | 27 | </tr> |
| 28 | 28 | </thead> |
| 29 | 29 | |
| 30 | 30 | <tbody> |
| 31 | 31 | <?php |
| 32 | - if ( ! empty( $order->data['lines'] ) ) : |
|
| 33 | - foreach ( $order->data['lines'] as $line ) : |
|
| 32 | + if (!empty($order->data['lines'])) : |
|
| 33 | + foreach ($order->data['lines'] as $line) : |
|
| 34 | 34 | ?> |
| 35 | 35 | <tr> |
| 36 | 36 | <td><?php echo $line['libelle']; ?></td> |
| 37 | - <td><?php echo number_format( $line['tva_tx'], 2, ',', '' ); ?>%</td> |
|
| 38 | - <td><?php echo number_format( $line['price'], 2, ',', '' ); ?>€</td> |
|
| 37 | + <td><?php echo number_format($line['tva_tx'], 2, ',', ''); ?>%</td> |
|
| 38 | + <td><?php echo number_format($line['price'], 2, ',', ''); ?>€</td> |
|
| 39 | 39 | <td><?php echo $line['qty']; ?></td> |
| 40 | - <td><?php echo number_format( $line['price'], 2, ',', '' ); ?>€</td> |
|
| 40 | + <td><?php echo number_format($line['price'], 2, ',', ''); ?>€</td> |
|
| 41 | 41 | </tr> |
| 42 | 42 | <?php |
| 43 | 43 | endforeach; |
@@ -47,16 +47,16 @@ discard block |
||
| 47 | 47 | |
| 48 | 48 | <tfoot> |
| 49 | 49 | <tr> |
| 50 | - <td colspan="4"><strong><?php esc_html_e( 'Total HT', 'wpshop' ); ?></strong></td> |
|
| 51 | - <td><?php echo number_format( $order->data['total_ht'], 2, ',', '' ); ?>€</td> |
|
| 50 | + <td colspan="4"><strong><?php esc_html_e('Total HT', 'wpshop'); ?></strong></td> |
|
| 51 | + <td><?php echo number_format($order->data['total_ht'], 2, ',', ''); ?>€</td> |
|
| 52 | 52 | </tr> |
| 53 | 53 | <?php |
| 54 | - if ( ! empty( $tva_lines ) ) : |
|
| 55 | - foreach ( $tva_lines as $key => $tva_line ) : |
|
| 54 | + if (!empty($tva_lines)) : |
|
| 55 | + foreach ($tva_lines as $key => $tva_line) : |
|
| 56 | 56 | ?> |
| 57 | 57 | <tr> |
| 58 | - <td colspan="4"><strong><?php esc_html_e( 'Total VAT', 'wpshop' ); ?> <?php echo number_format( $key, 2, ',', '' ); ?>%</strong></td> |
|
| 59 | - <td><?php echo number_format( $tva_line, 2, ',', '' ); ?>€</td> |
|
| 58 | + <td colspan="4"><strong><?php esc_html_e('Total VAT', 'wpshop'); ?> <?php echo number_format($key, 2, ',', ''); ?>%</strong></td> |
|
| 59 | + <td><?php echo number_format($tva_line, 2, ',', ''); ?>€</td> |
|
| 60 | 60 | </tr> |
| 61 | 61 | <?php |
| 62 | 62 | endforeach; |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | |
| 66 | 66 | <tr> |
| 67 | 67 | <td colspan="4"><strong>Total TTC</strong></td> |
| 68 | - <td><strong><?php echo number_format( $order->data['total_ttc'], 2, ',', '' ); ?>€</strong></td> |
|
| 68 | + <td><strong><?php echo number_format($order->data['total_ttc'], 2, ',', ''); ?>€</strong></td> |
|
| 69 | 69 | </tr> |
| 70 | 70 | </tfoot> |
| 71 | 71 | </table> |