17 require_once SQ_PACKAGES_PATH.
'/cms/page_templates/page_custom_form/page_custom_form.inc';
46 if (!page::_createAdditional($link))
return false;
49 $GLOBALS[
'SQ_SYSTEM']->am->includeAsset(
'form_ecommerce');
51 $copy_link = Array(
'asset' => &$this,
'link_type' => SQ_LINK_TYPE_2,
'is_dependant' => 1,
'is_exclusive' => 1);
53 $form->setAttrValue(
'name',
'Ecommerce Form Contents');
59 $form->_tmp[
'parent_form_page_assetid'] =& $this->id;
61 return $form->create($copy_link);
74 $page_links = parent::_getAllowedLinks();
76 $page_links[SQ_LINK_TYPE_2][
'form_ecommerce'] = Array(
'card' =>
'1',
'exclusive' =>
true);
90 $form_link = $GLOBALS[
'SQ_SYSTEM']->am->getLink($this->
id, SQ_LINK_TYPE_2,
'form_ecommerce',
true,
'',
'major');
91 $form = $GLOBALS[
'SQ_SYSTEM']->am->getAsset($form_link[
'minorid'], $form_link[
'minor_type_code']);
94 trigger_localised_error(
'ECOM0002', E_USER_ERROR, $this->name, $this->
id);