View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003452 | OXID eShop (all versions) | 1.09. Integrations: Facebook, Trusted Shops, Shop lupe, Econda | public | 2011-12-20 11:06 | 2012-12-11 08:47 |
Reporter | design3000 | Assigned To | |||
Priority | high | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.5.3 revision 39087 | ||||
Fixed in Version | 4.5.12 revision 52682 | ||||
Summary | 0003452: Add brands to econda tracking | ||||
Description | In econda web analytics one can not analyze articles regarding their brands (vendors). From a marketing point of view this would be quite interesting. Econda provides the ability to transmit additional data in fields called "variant1" and "variant2", which are not used by the actual adapter. To bring the vendor's name and the manufacturer's name into these fields and thus to the analytics frontend, only two lines need to be added to the function _convProd2EmosItem in /core/smarty/plugins/oxemosadapter.php. ---------------- before ---------------- protected function _convProd2EmosItem( $oProduct, $sCatPath = "NULL", $iQty = 1 ) { $oItem = $this->_getNewEmosItem(); $oItem->productId = ( isset( $oProduct->oxarticles__oxartnum->value ) && $oProduct->oxarticles__oxartnum->value ) ? $oProduct->oxarticles__oxartnum->value : $oProduct->getId(); $oItem->productName = $this->_prepareProductTitle( $oProduct ); // #810A $oCur = $this->getConfig()->getActShopCurrencyObject(); $oItem->price = $oProduct->getPrice()->getBruttoPrice() * ( 1/$oCur->rate ); $oItem->productGroup = "{$sCatPath}/{$oProduct->oxarticles__oxtitle->value}"; $oItem->quantity = $iQty; $oItem->variant3 = $oProduct->getId(); return $oItem; } ---------------- after ---------------- protected function _convProd2EmosItem( $oProduct, $sCatPath = "NULL", $iQty = 1 ) { $oItem = $this->_getNewEmosItem(); $oItem->productId = ( isset( $oProduct->oxarticles__oxartnum->value ) && $oProduct->oxarticles__oxartnum->value ) ? $oProduct->oxarticles__oxartnum->value : $oProduct->getId(); $oItem->productName = $this->_prepareProductTitle( $oProduct ); // #810A $oCur = $this->getConfig()->getActShopCurrencyObject(); $oItem->price = $oProduct->getPrice()->getBruttoPrice() * ( 1/$oCur->rate ); $oItem->productGroup = "{$sCatPath}/{$oProduct->oxarticles__oxtitle->value}"; $oItem->quantity = $iQty; $oItem->variant1 = $oProduct->getVendor() ? $oProduct->getVendor()->getTitle() : "NULL"; $oItem->variant2 = $oProduct->getManufacturer() ? $oProduct->getManufacturer()->getTitle() : "NULL"; $oItem->variant3 = $oProduct->getId(); return $oItem; } The resulting output e. g. on a details page is the following: ---------------- before ---------------- emospro.ec_Event = [["view","006-3558783","Tassenutensilo Lilli 2er-Set solid himbeer",3.95,"Essen & Trinken\/K\u00fcchenhelfer\/Teesiebe & Tee-Eier\/Tassenutensilo Lilli 2er-Set solid himbeer",1,"NULL","NULL","d144dabe432ede856.46704148"]]; ---------------- after ---------------- emospro.ec_Event = [["view","006-3558783","Tassenutensilo Lilli 2er-Set solid himbeer",3.95,"Essen & Trinken\/K\u00fcchenhelfer\/Teesiebe & Tee-Eier\/Tassenutensilo Lilli 2er-Set solid himbeer",1,"Koziol","Koziol","d144dabe432ede856.46704148"]]; | ||||
Tags | Econda | ||||
Theme | Both | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||