Shopping Cart
CartListItemOverwrite
Used to change the item listed in the cart.
Return
Hook::add("CartListItemOverwrite",1,function($params){
if($params['options']['type'] == 'server' && $params['options']['id'] == 5){
$params['options']['period'] = 'none';
$params['options']['period_time'] = 0;
$params['options']['amount'] = 5;
$params['options']['cid'] = 'USD';
return $params;
}
});
CartSummaryItemOverwrite
Used to change the item in the cart summary.
Return
Hook::add("CartSummaryItemOverwrite",1,function($params){
if($params['options']['type'] == 'server' && $params['options']['id'] == 5){
$params['options']['period'] = 'none';
$params['options']['period_time'] = 0;
$params['options']['amount'] = 5;
$params['options']['cid'] = 'USD';
return $params;
}
});