@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | |
| 58 | 58 | // And the optional invoice id. |
| 59 | 59 | if ( ! empty( $form->invoice ) ) { |
| 60 | - getpaid_hidden_field( 'invoice_id', $form->invoice->get_id() ); |
|
| 60 | + getpaid_hidden_field( 'invoice_id', $form->invoice->get_id() ); |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | // We also want to include the form id. |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | <?php |
| 77 | 77 | |
| 78 | 78 | foreach ( $form->get_elements() as $element ) { |
| 79 | - if ( isset( $element['type'] ) ) { |
|
| 79 | + if ( isset( $element['type'] ) ) { |
|
| 80 | 80 | $grid_class = getpaid_get_form_element_grid_class( $element ); |
| 81 | 81 | do_action( 'getpaid_payment_form_element_before', $element, $form ); |
| 82 | 82 | do_action( "getpaid_payment_form_element_before_{$element['type']}_template", $element, $form ); |
@@ -11,26 +11,26 @@ discard block |
||
| 11 | 11 | |
| 12 | 12 | // Totals rows. |
| 13 | 13 | $cart_totals = apply_filters( |
| 14 | - 'getpaid_payment_form_cart_table_totals', |
|
| 15 | - array( |
|
| 16 | - 'subtotal' => __( 'Subtotal', 'invoicing' ), |
|
| 17 | - 'tax' => __( 'Tax', 'invoicing' ), |
|
| 18 | - 'fees' => __( 'Fee', 'invoicing' ), |
|
| 19 | - 'discount' => __( 'Discount', 'invoicing' ), |
|
| 20 | - 'total' => __( 'Total', 'invoicing' ), |
|
| 21 | - ), |
|
| 22 | - $form |
|
| 14 | + 'getpaid_payment_form_cart_table_totals', |
|
| 15 | + array( |
|
| 16 | + 'subtotal' => __( 'Subtotal', 'invoicing' ), |
|
| 17 | + 'tax' => __( 'Tax', 'invoicing' ), |
|
| 18 | + 'fees' => __( 'Fee', 'invoicing' ), |
|
| 19 | + 'discount' => __( 'Discount', 'invoicing' ), |
|
| 20 | + 'total' => __( 'Total', 'invoicing' ), |
|
| 21 | + ), |
|
| 22 | + $form |
|
| 23 | 23 | ); |
| 24 | 24 | |
| 25 | 25 | $currency = $form->get_currency(); |
| 26 | 26 | $country = wpinv_get_default_country(); |
| 27 | 27 | |
| 28 | 28 | if ( ! empty( $form->invoice ) ) { |
| 29 | - $country = $form->invoice->get_country(); |
|
| 29 | + $country = $form->invoice->get_country(); |
|
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | if ( ! wpinv_use_taxes() && isset( $cart_totals['tax'] ) ) { |
| 33 | - unset( $cart_totals['tax'] ); |
|
| 33 | + unset( $cart_totals['tax'] ); |
|
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | do_action( 'getpaid_before_payment_form_cart_totals', $form, $cart_totals ); |
@@ -61,13 +61,13 @@ discard block |
||
| 61 | 61 | |
| 62 | 62 | <?php |
| 63 | 63 | |
| 64 | - // Total tax. |
|
| 65 | - if ( in_array( $key, array( 'tax', 'discount', 'subtotal', 'total', 'fees' ), true ) ) { |
|
| 66 | - wpinv_the_price( 0, $currency ); |
|
| 67 | - } |
|
| 64 | + // Total tax. |
|
| 65 | + if ( in_array( $key, array( 'tax', 'discount', 'subtotal', 'total', 'fees' ), true ) ) { |
|
| 66 | + wpinv_the_price( 0, $currency ); |
|
| 67 | + } |
|
| 68 | 68 | |
| 69 | - do_action( "getpaid_payment_form_cart_totals_$key", $form ); |
|
| 70 | - ?> |
|
| 69 | + do_action( "getpaid_payment_form_cart_totals_$key", $form ); |
|
| 70 | + ?> |
|
| 71 | 71 | |
| 72 | 72 | </div> |
| 73 | 73 | |