|18.104.22.168.2 Settings << 22.214.171.124.3 >> 126.96.36.199 Freebie|
188.8.131.52.3 Behaviour in the webshopPack campaigns can be displayed in the webshop product list and product card pages with a block structure. See blocks #has_campaign_packs, #block campaign_pack and #block campaign_pack_products in product card, product list and product spot WAEs. If the pack products have product options, variable $campaignproduct_options$ should be used in the block (variable $product_options$, that is used e.g. in the product card, does also print the options, but it should not be used).
When a product pack is added to the shopping cart, every product of the pack is displayed on its own row. Nevertheless, the pack behaves in the cart as if it was one product. If the same pack is added to the cart multiple times via the "add pack" button, each addition increases the cart quantity of every pack product row. If pack product quantities are modified directly in the shopping cart, the smallest quantity determines the whole pack quantity. Lets say a pack is made of products A, B and C. Below are some example cart quantities for the pack products, and the result when the cart is updated with those quantities.
A: 1 B: 2 C: 2 -> All have quantity 1 A: 2 B: 2 C: 2 -> All have quantity 2 A: 0 B: 2 C: 2 -> All have quantity 0, the pack is removed from cartIf any pack product is removed from the cart, then all the other pack products are removed as well. If the pack products contain option choices, the choices can not be changed once the pack is in the cart. In order to change the selected choices, the pack must be removed from the cart, and added back again with the wanted options.