// хук для доступа к Shop_Cart_Controller_Show
static public function onBeforeCartShow($controller, $args)
$Shop_Cart_Controller_Show = $args[0];
$Shop_Cart_Controller_Show
Core_Event::attach('MegaPost_Command_Controller.onBeforeCartShow', array('My_MegaPost', 'onBeforeCartShow'));
// хук для доступа к MegaPost_Shop_Delivery_Controller_Show
static public function onBeforeDeliveryShow($controller, $args)
$Shop_Delivery_Controller_Show = $args[0];
$Shop_Delivery_Controller_Show
->where('shop_deliveries.id','NOT IN', array(123))
->where('shop_deliveries.id','IN', array(456));
Core_Event::attach('MegaPost_Command_Controller.onBeforeDeliveryShow', array('My_MegaPost', 'onBeforeDeliveryShow'));
// хук для доступа к Shop_Delivery_Controller_Show
static public function onBeforePaymentSystemShow($controller, $args)
$Shop_Payment_System_Controller_Show = $args[0];
$Shop_Payment_System_Controller_Show
->where('shop_payment_systems.id','NOT IN', array(123))
->where('shop_payment_systems.id','IN', array(456));
Core_Event::attach('MegaPost_Command_Controller.onBeforePaymentSystemShow', array('My_MegaPost', 'onBeforePaymentSystemShow'));