|
|
@@ -206,12 +206,16 @@ class BxAclModule extends BxDolModule
|
|
|
else
|
|
|
$sTitle = _t('_bx_acl_txt_cart_item_title', _t($aItem['level_name']), $aItem['period'], $aItem['period_unit']);
|
|
|
|
|
|
+ $sDescription = _t($aItem['level_description']);
|
|
|
+ if(empty($sDescription))
|
|
|
+ $sDescription = _t('_bx_acl_txt_cart_item_description', getParam('site_title'));
|
|
|
+
|
|
|
return array (
|
|
|
'id' => $aItem['id'],
|
|
|
'author_id' => $this->_oConfig->getOwner(),
|
|
|
'name' => $aItem['name'],
|
|
|
'title' => $sTitle,
|
|
|
- 'description' => _t($aItem['level_description']),
|
|
|
+ 'description' => $sDescription,
|
|
|
'url' => BX_DOL_URL_ROOT . BxDolPermalinks::getInstance()->permalink($CNF['URL_VIEW']),
|
|
|
'price_single' => $aItem['price'],
|
|
|
'price_recurring' => $aItem['price'],
|
|
|
@@ -251,13 +255,23 @@ class BxAclModule extends BxDolModule
|
|
|
$sUrl = BX_DOL_URL_ROOT . BxDolPermalinks::getInstance()->permalink($CNF['URL_VIEW']);
|
|
|
|
|
|
$aResult = array();
|
|
|
- foreach($aItems as $aItem)
|
|
|
+ foreach($aItems as $aItem) {
|
|
|
+ $sTitle = '';
|
|
|
+ if((int)$aItem['period'] == 0)
|
|
|
+ $sTitle = _t('_bx_acl_txt_cart_item_title_lifetime', _t($aItem['level_name']));
|
|
|
+ else
|
|
|
+ $sTitle = _t('_bx_acl_txt_cart_item_title', _t($aItem['level_name']), $aItem['period'], $aItem['period_unit']);
|
|
|
+
|
|
|
+ $sDescription = _t($aItem['level_description']);
|
|
|
+ if(empty($sDescription))
|
|
|
+ $sDescription = _t('_bx_acl_txt_cart_item_description', getParam('site_title'));
|
|
|
+
|
|
|
$aResult[] = array(
|
|
|
'id' => $aItem['id'],
|
|
|
'author_id' => $iSellerIdSetting,
|
|
|
'name' => $aItem['name'],
|
|
|
- 'title' => _t('_bx_acl_txt_cart_item_title', _t($aItem['level_name']), $aItem['period'], $aItem['period_unit']),
|
|
|
- 'description' => _t($aItem['level_description']),
|
|
|
+ 'title' => $sTitle,
|
|
|
+ 'description' => $sDescription,
|
|
|
'url' => $sUrl,
|
|
|
'price_single' => $aItem['price'],
|
|
|
'price_recurring' => $aItem['price'],
|
|
|
@@ -265,6 +279,7 @@ class BxAclModule extends BxDolModule
|
|
|
'period_unit_recurring' => $aItem['period_unit'],
|
|
|
'trial_recurring' => $aItem['trial']
|
|
|
);
|
|
|
+ }
|
|
|
|
|
|
return $aResult;
|
|
|
}
|