Skip to content

Commit

Permalink
Ticket #4558 - Build-in API support: Product's card in Timeline.
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonLV committed Sep 23, 2024
1 parent 85422b4 commit 7ca28bb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions modules/boonex/market/classes/BxMarketModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -1439,6 +1439,19 @@ protected function _performUnhideProduct($aDataEntry) {
$this->checkAllowedHide($aDataEntry, true);
return echoJson(array('reload' => 1));
}

protected function _getContentForTimelinePost($aEvent, $aContentInfo, $aBrowseParams = array())
{
$CNF = &$this->_oConfig->CNF;

$aResult = parent::_getContentForTimelinePost($aEvent, $aContentInfo, $aBrowseParams);

if($this->_bIsApi)
foreach(['PRICE_SINGLE', 'PRICE_RECURRING', 'DURATION_RECURRING', 'TRIAL_RECURRING'] as $sKey)
$aResult[$CNF['FIELD_' . $sKey]] = $aContentInfo[$CNF['FIELD_' . $sKey]];

return $aResult;
}
}

/** @} */

0 comments on commit 7ca28bb

Please sign in to comment.