Hey. can someone help me display the category the store product belongs to. CHek out the attachment to see what am talking about.
Please help.
Thanks.
Hey. can someone help me display the category the store product belongs to. CHek out the attachment to see what am talking about.
Please help. Thanks. |
go to modules/boonex/store/classes/BxStoreTemplate.php at line 61 add this $aData2 = $this->_oDb->getEntryById($aData['id']); just before $aVars array. add this in the same $aVars array just after the above 'cat' => $aData2['categories'], after adding these it will look like this
$aData2 = $this->_oDb->getEntryById($aData['id']); $aVars = array ( 'id' => $aData['id'], 'thumb_url' => $sImage ? $sImage : $this->getIconUrl('no-photo.png'), 'product_url' => BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri() . 'view/' . $aData['uri'], 'product_title' => $aData['title'], 'created' => defineTimeInterval($aData['created']), 'author' => $aData['author_id'] ? $aData['NickName'] : _t('_bx_deals_admin'), 'author_url' => $aData['author_id'] ? getProfileLink($aData['author_id']) : 'javascript:void(0);', 'price_range' => $sPrice, 'cat' => $aData2['categories'], );
Now open modules/boonex/store/templates/base/unit.html at line 17 add __cat__ it will look like this
<div class="sys_file_search_from"> <bx_text:_From /> <a href="__author_url__">__author__</a> </div> <div> __cat__ </div> <div class="sys_file_search_when">__created__</div> </div>
Its done, you can add your css and change the font styles. I guess you can do that. :D so much to do.... |
thanks man :) |