<we:addDelShopItem>
Since version: - | Requires endtag: no | Required modules: shop
Description
Use this tag to add or remove an item from your shopping cart. It is controlled via <we:a edit="shop"> and acts according to the attributes "amount" and "delarticle". This is also true for <we:form type="shopliste"> tags, if they point to themselves.
Attributes
shopname
Default value: - | since version: - | required: yes
Set this attribute to the name of the shop. This is necessary as you can have more than one shop per page.
Syntax
<we:addDelShopItem shopname="attribute" />
Examples
Example #1 - Place an item in the shopping cart
<we:createShop name="shop"/> <we:addDelShopItem name="shop"/> <we:a id="self" edit="shop" amount="1">in the shopping cart</we:a>
Example #2 - Remove an item from the shopping cart
<we:createShop name="shop"/> <we:addDelShopItem name="shop"/> <we:a id="self" edit="shop" delarticle="on" >remove from the shopping cart</we:a>