myshop-action:decrement-product
Entity | Value |
---|---|
Attribute(s) | style |
Type | action |
Relation | document |
Context | document:basket, myshop-repeat:basket |
Lowers the quantity of the product on the current productline by one.
See also: ShoppingCart.
Examples
<tr class="myshp_basket_product" style="myshop-repeat:basket;">
<td class="myshp_basket_product_name"><span style="myshop-value:product-id"></span></td>
<td class="myshp_basket_product_description" style="myshop-value:description;" colspan="2"></td>
<td class="myshp_basket_product_quantity"><span style="myshop-value:quantity;"></span></td>
<td class="myshp_basket_product_unitprice"><span style="myshop-value:price-formatted;"></span></td>
<td class="myshp_basket_product_totalprice"><span style="myshop-value:price-line-total-formatted;white-space:nowrap"></span></td>
<td class="myshp_basket_product_controls">
<span class="myshp_basket_product_update">
<a style="myshop-action:decrement-product" href="javascript:void(0);">-</a>
<span style="myshop-value:quantity;"></span>
<a style="myshop-action:increment-product" href="javascript:void(0);">+</a>
</span>
<span class="myshp_basket_product_delete">
<a style="myshop-action:remove-product" href="javascript:void(0);"><span style="myshop-resource:remove">verwijder</span></a>
</span>
</td>
</tr>
Line 9, 10 and 11 show how to implement this quantity update method in the shoppingcart.
Post your comment on this topic.