コード例 #1
0
 /**
  * add "add to basket" tracking
  * @param Enlight_Event_EventArgs $arguments
  * @return boolean
  */
 public function addToBasket(Enlight_Event_EventArgs $arguments)
 {
     if ($this->Config()->get('boxalino_tracking_enabled')) {
         $article = $arguments->getArticle();
         $price = $arguments->getPrice();
         Shopware_Plugins_Frontend_Boxalino_EventReporter::reportAddToBasket($article['articledetailsID'], $arguments->getQuantity(), $price['price'], Shopware()->Shop()->getCurrency());
     }
     return $arguments->getReturn();
 }