src/ShopBundle/objects/db/TShopArticle.class.php
public function UpdateProductViewCount()
    {
        if (CMS_SHOP_TRACK_ARTICLE_DETAIL_VIEWS && !is_null($this->id)) {
            $this->getProductStatsService()->add($this->id, ProductStatisticsServiceInterface::TYPE_DETAIL_VIEWS, 1);
        }
    }
public function UpdateProductViewCount()
    {
        if (CMS_SHOP_TRACK_ARTICLE_DETAIL_VIEWS && !is_null($this->id)) {
            $this->getProductStatsService()->add($this->id, ProductStatisticsServiceInterface::TYPE_DETAIL_VIEWS, 1);
        }
    }
public function UpdateProductViewCount ( ) { if ( CMS_SHOP_TRACK_ARTICLE_DETAIL_VIEWS && ! is_null ( $ this -> id ) ) { $ this -> getProductStatsService ( ) -> add ( $ this -> id , ProductStatisticsServiceInterface :: TYPE_DETAIL_VIEWS , 1 ) ; } }
increase the product view counter by one.
increase the product view counter by one .