18 require_once SQ_PACKAGES_PATH.
'/cms/page_templates/page_custom_form/page_custom_form_edit_fns.inc';
48 $form_link = $GLOBALS[
'SQ_SYSTEM']->am->getLinks($asset->id, SQ_LINK_TYPE_2,
'form_ecommerce',
false,
'major',
'',
'1',
'1');
49 $form = $GLOBALS[
'SQ_SYSTEM']->am->getAsset($form_link[0][
'minorid']);
51 trigger_localised_error(
'ECOM0002', E_USER_ERROR, $asset->name, $asset->id);
56 $o->setRedirect($form->getBackendHref(
'ecommerce_rules'));
60 $_SESSION[
'sq_nav_history'][(count($_SESSION[
'sq_nav_history']) - 1)][
'screen'] =
'details';