|Relation||document:basket, myshop-value:product-id, myshop-value:description, myshop-value:quantity, myshop-value:price, myshop-value:price-line-total, myshop-action:change-product, myshop-action:remove, myshop-value:vat|
The myshop-repeat:basket is used to retrieve the product lists from the shopping basket. The code fragment below gives an example. The
<tr> element which the myshop-repeat:basket addition has included in the style, is repeated again and again including content –
<td> element – until all product rows from the shopping basket are displayed. – Here lies the difference between the functions of
myshop-repeat:<name> and the
myshop-block:<name>, inside a block the element itself is not repeated, it merely serves as a container – . Within the context of the myshop-repeat:basket the various product characteristics can be recalled with the help of a
myshop-value:<name>. For a complete list see the paragraph on shopping basket.
<table width="98%" cellpadding="0" cellspacing="0" bgcolor="#ffffff" border="0"> <tr style="myshop-repeat:basket"> <td style="myshop-value:product-id">product number</td> <td style="myshop-value:description">description</td> <td style="myshop-value:quantity">quantity</td> <td align="right" style="myshop-value:price-formatted">price</td> <td align="right" style="myshop-value:price-line-total-formatted">price</td> <td align="right"><a style="myshop-action:change-product">wijzigen</a></td> <td align="right"><a style="myshop-action:remove-product">verwijder</a></td> </tr> </table>