cart.line

Available Since: V1.0.0

Formats a single line within a table showing the cart.

<tr>
	<td>
		[[+productImg]]
		<div class="linedetails">
			[[+shippingRestriction]]<strong>[[if &subject=`[[+uri]]` &operator=`!empty` &then=`<a href="[[+uri]]">[[+title]]</a>` &else=`[[+title]]`]]</strong><br />
			[[if &subject=`[[+description]]` &operator=`!empty` &then=`[[+description]]<br />`]]
			<span class="sku">[[+skuLabel]] [[+sku]]</span>
			[[if &subject=`[[+parentSKU]]` &operator=`!empty` &then=`<div class="parentsku">[[+parentSKULabel]] [[+parentSKU]]</div>`]]
			[[if &subject=`[[+lineNote]]` &operator=`!empty` &then=`<div class="linenote">[[+lineNote]]</div>`]]
			[[itemWrap]]
		</div>
	</td>
	<td style="text-align: center;">[[+qty]]</td>
	<td style="text-align: center; width: 120px;">
		[[+price]]
		[[if &subject=`[[+price2]]` &operator=`!empty` &then=`<br /><span class="price2">([[+price2]])</span>`]]
	</td>
	<td style="text-align: center; width: 120px;">
		[[if &subject=`[[+lineBasePrice]]` &operator=`!empty` &then=`<del>[[+lineBasePrice]]</del><br />`]]
		[[if &subject=`[[+lineBasePrice2]]` &operator=`!empty` &then=`<span class="price2"><del>([[+lineBasePrice2]])</del></span><br />`]]
		[[+linePrice]]
		[[if &subject=`[[+linePrice2]]` &operator=`!empty` &then=`<br /><span class="price2">([[+linePrice2]])</span>`]]
	</td>
</tr>
Placeholder Description
shippingRestrictions Message displaying any restrictions on the selected shipping methods.
uri The address of the page holding the product.
title The title of the product.
description The product description.
qty The number of items in the line.
price The product price.
price2 The secondary product price.
lineBasePrice The base price for the line.
lineBasePrice2 The secondary base price for the line.
linePrice The price for the line.
linePrice2 The secondary line price.
productImg The image to show on the product line.
lineNote Optional line notes.
itemWrap The form element for item wrapping selection.




TOP