commerce-line-item-summary.tpl.php in Commerce Core 7
Default implementation of a line item summary template.
Available variables:
- $quantity_raw: The number of items in the cart.
- $quantity_label: The quantity appropriate label to use for the number of items in the shopping cart; "item" or "items" by default.
- $quantity: A single string containing the number and label.
- $total_raw: The raw numeric value of the total value of items in the cart.
- $total_label: A text label for the total value; "Total:" by default.
- $total: The currency formatted total value of items in the cart.
- $links: A rendered links array with cart and checkout links.
Helper variables:
- $view: The View the line item summary is attached to.
1 theme call to commerce-line-item-summary.tpl.php
- commerce_line_item_handler_area_line_item_summary::render in modules/
line_item/ includes/ views/ handlers/ commerce_line_item_handler_area_line_item_summary.inc - Render the area.
File
modules/line_item/theme/commerce-line-item-summary.tpl.phpView source
<?php
/**
* @file
* Default implementation of a line item summary template.
*
* Available variables:
* - $quantity_raw: The number of items in the cart.
* - $quantity_label: The quantity appropriate label to use for the number of
* items in the shopping cart; "item" or "items" by default.
* - $quantity: A single string containing the number and label.
* - $total_raw: The raw numeric value of the total value of items in the cart.
* - $total_label: A text label for the total value; "Total:" by default.
* - $total: The currency formatted total value of items in the cart.
* - $links: A rendered links array with cart and checkout links.
*
* Helper variables:
* - $view: The View the line item summary is attached to.
*
* @see template_preprocess()
* @see template_process()
*/
?>
<div class="line-item-summary">
<?php
if ($quantity_raw) {
?>
<div class="line-item-quantity">
<span class="line-item-quantity-raw"><?php
print $quantity_raw;
?></span> <span class="line-item-quantity-label"><?php
print $quantity_label;
?></span>
</div>
<?php
}
?>
<?php
if ($total) {
?>
<div class="line-item-total">
<span class="line-item-total-label"><?php
print $total_label;
?></span> <span class="line-item-total-raw"><?php
print $total;
?></span>
</div>
<?php
}
?>
<?php
print $links;
?>
</div>