Skip to content
This repository
tree: 01330ec25d
Fetching contributors…

Cannot retrieve contributors at this time

file 97 lines (85 sloc) 1.414 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
__NAME__ purpose
return the total number of items in the electronic cart
__END__

__NAME__ synopsis
<row>

<entry>
name
</entry>
<entry>
Yes
</entry>
<entry>
Yes
</entry>
<entry>
<literal>main</literal>
</entry>
<entry>
Cart name.
</entry>

</row>
<row>
<entry>
lines
</entry>
<entry>
</entry>
<entry>
</entry>
<entry>
0
</entry>
<entry>
Whether to show the number of lines in the cart instead of the sum of the items.
</entry>

</row>
<row>

<entry>
qualifier
</entry>
<entry>
<!-- POS -->
</entry>
<entry>
<!-- REQ -->
</entry>
<entry>
<!-- DFL -->
</entry>
<entry>
An item attribute that must evaluate to a &glos-true; value,
in order for the item to be counted.
</entry>

</row>
<row>

<entry>
compare
</entry>
<entry>
<!-- POS -->
</entry>
<entry>
<!-- REQ -->
</entry>
<entry>
<!-- DFL -->
</entry>
<entry>
Instead of counting items based solely on item attribute
"&glos-true;ness" (as <literal>qualifier=</literal> does by default),
perform the specified regular expression pattern matching on the
<literal>qualifier=</literal> attribute.
</entry>

</row>
&TAG_NON_CONTAINER;
__END__


__NAME__ description
The tag returns the total number of items in users' electronic cart.
__END__

__NAME__ example: Basic example
<programlisting>
You have [nitems] items in your cart.
</programlisting>
__END__

TODO examples with qualifier and compare
Something went wrong with that request. Please try again.