DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

Cart - AddToCartFinisher

Cart calls the [$productType][‘Cart’][‘AddToCartFinisher’] where $productType is an unique identifiert for the product type in the product extension. This Hook is used to get products from different product extensions. The class has to implement the ExtcodeCartDomainFinisherCartAddToCartFinisherInterface and has to provide at least a method to get a ExtcodeCartDomainModelCartProduct which can added to the cart. In case of stock handling some more methods has to be implemented to check availability.

Important

Please note, that this is the first implementation. The methods and parameters can change in major versions.

I prepared some product extensions. They are using the following product types:

extension product type
cart_books CartBooks
cart_events CartEvents
cart_gift_cards CartGiftCards
cart_products CartProducts