Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/units/orders/orders_tag_processor.php
Show First 20 Lines • Show All 1453 Lines • ▼ Show 20 Line(s) | |||||
/** | /** | ||||
* Creates link for removing coupon or gift certificate | * Creates link for removing coupon or gift certificate | ||||
* | * | ||||
* @param Array $params | * @param Array $params | ||||
* @return string | * @return string | ||||
*/ | */ | ||||
function RemoveCouponLink($params) | function RemoveCouponLink($params) | ||||
{ | { | ||||
$type = strtolower($params['type']); | if ( !isset($params['pass']) ) { | ||||
$url_params = Array ( | $params['pass'] = 'm,ord'; | ||||
'pass' => 'm,ord', | } | ||||
'ord_event' => ($type == 'coupon') ? 'OnRemoveCoupon' : 'OnRemoveGiftCertificate', | |||||
'm_cat_id' => 0, | $params['m_cat_id'] = 0; | ||||
); | |||||
$link_type = $params['type']; | |||||
unset($params['type']); | |||||
$params['ord_event'] = strtolower($link_type) == 'coupon' ? 'OnRemoveCoupon' : 'OnRemoveGiftCertificate'; | |||||
return $this->Application->HREF('', '', $url_params); | return $this->ItemLink($params); | ||||
} | } | ||||
/** | /** | ||||
* Calculates total weight of items in shopping cart | * Calculates total weight of items in shopping cart | ||||
* | * | ||||
* @param Array $params | * @param Array $params | ||||
* @return float | * @return float | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 205 Lines • Show Last 20 Lines |