commerce-payment-totals.tpl.php in Commerce Core 7
Default implementation of a payment totals template.
Available variables:
- $rows: A rows array as used by theme_table(), potentially containing transaction totals, an order balance, and information specified by other modules.
- $form: When present, a form for adding payments to an order pertinent to the display.
Helper variables:
- $totals: An array of transaction totals keyed by currency code.
- $view: The View the line item summary is attached to.
- $order: If present, the order represented by the totals.
1 theme call to commerce-payment-totals.tpl.php
- commerce_payment_handler_area_totals::render in modules/
payment/ includes/ views/ handlers/ commerce_payment_handler_area_totals.inc - Render the area.
File
modules/payment/theme/commerce-payment-totals.tpl.phpView source
<?php
/**
* @file
* Default implementation of a payment totals template.
*
* Available variables:
* - $rows: A rows array as used by theme_table(), potentially containing
* transaction totals, an order balance, and information specified by
* other modules.
* - $form: When present, a form for adding payments to an order pertinent to
* the display.
*
* Helper variables:
* - $totals: An array of transaction totals keyed by currency code.
* - $view: The View the line item summary is attached to.
* - $order: If present, the order represented by the totals.
*
* @see template_preprocess()
* @see template_process()
*/
?>
<div class="payment-totals">
<?php
print theme('table', array(
'rows' => $rows,
'attributes' => array(
'class' => array(
'payment-totals-table',
),
),
));
?>
<?php
print $form;
?>
</div>