This is the API docs for LemonStand V1, which has been discontinued. LemonStand is now a cloud based platform, available at lemonstand.com.
1-855-332-0555 sales@lemonstand.com Log In
01.
public
function
subscribeEvents()
02.
{
03.
Backend::
$events
->addEvent(
'backend:onBeforeRenderPage'
,
$this
'backend_render_page'
);
04.
}
05.
06.
backend_render_page(
$controller
$view
)
07.
08.
if
(
instanceof Shop_Orders
and
basename
) ==
'create'
09.
10.
Phpr::
$session
->flash[
'error'
] =
'We are sorry, you cannot create new orders in the Demo store.'
;
11.
->viewData[
'fatalError'
] = true;
12.
13.