<?php
/**
* Boxmaker extension for Contao Open Source CMS
*
* Copyright (C) 2013-2014 bekanntmacher
*
* @author Yanick Witschi <yanick.witschi@terminal42.ch>
* @license commercial
*/
/**
* Boxmaker types
*/
$GLOBALS['BOXMAKER']['TYPES'] = array();
$GLOBALS['BOXMAKER']['TYPES']['standard'] = 'Bekanntmacher\BoxmakerBundle\Type\StandardType';
$GLOBALS['BOXMAKER']['TYPES']['zuschnitt'] = 'Bekanntmacher\\BoxmakerBundle\\Type\\ZuschnittType';
/**
* Back end modules
*/
if (!is_array($GLOBALS['BE_MOD']['boxmaker']))
{
array_insert($GLOBALS['BE_MOD'], 1, array('boxmaker' => array()));
}
$GLOBALS['BE_MOD']['boxmaker'] = array
(
'boxmaker_type' => array('tables' => array('tl_boxmaker_type')),
'boxmaker_type_config' => array('tables' => array('tl_boxmaker_type_config')),
'boxmaker_type_option' => array('tables' => array('tl_boxmaker_type_option')),
'boxmaker_welle' => array('tables' => array('tl_boxmaker_welle')),
'boxmaker_farbe' => array('tables' => array('tl_boxmaker_farbe')),
'boxmaker_config' => array('tables' => array('tl_boxmaker_config')),
);
/**
* Front end modules
*/
$GLOBALS['FE_MOD']['boxmaker'] = array
(
'boxmaker_calcform' => 'Bekanntmacher\\BoxmakerBundle\\Module\\CalcForm',
'boxmaker_typelist' => 'Bekanntmacher\\BoxmakerBundle\\Module\\TypeList',
'boxmaker_typedetail' => 'Bekanntmacher\\BoxmakerBundle\\Module\\TypeDetail',
'boxmaker_typedebug' => 'Bekanntmacher\\BoxmakerBundle\\Module\\TypeDebug',
'boxmaker_checkout' => 'Bekanntmacher\\BoxmakerBundle\\Module\\Checkout',
'boxmaker_cart' => 'Bekanntmacher\\BoxmakerBundle\\Module\\Cart',
'boxmaker_headercart' => 'Bekanntmacher\\BoxmakerBundle\\Module\\HeaderCart',
);
/**
* Models
*/
$GLOBALS['TL_MODELS']['tl_boxmaker_config'] = 'Bekanntmacher\\BoxmakerBundle\\Model\\ConfigModel';
$GLOBALS['TL_MODELS']['tl_boxmaker_type_config'] = 'Bekanntmacher\\BoxmakerBundle\\Model\\TypeConfigModel';
$GLOBALS['TL_MODELS']['tl_boxmaker_type'] = 'Bekanntmacher\\BoxmakerBundle\\Model\\TypeModel';
$GLOBALS['TL_MODELS']['tl_boxmaker_type_option'] = 'Bekanntmacher\\BoxmakerBundle\\Model\\TypeOptionModel';
$GLOBALS['TL_MODELS']['tl_boxmaker_farbe'] = 'Bekanntmacher\\BoxmakerBundle\\Model\\FarbeModel';
$GLOBALS['TL_MODELS']['tl_boxmaker_welle'] = 'Bekanntmacher\\BoxmakerBundle\\Model\\WelleModel';
/**
* Number formatting
*/
$GLOBALS['BOXMAKER_NUM']["10000.00"] = array(2, '.', "");
$GLOBALS['BOXMAKER_NUM']["10,000.00"] = array(2, '.', ",");
$GLOBALS['BOXMAKER_NUM']["10.000,00"] = array(2, ',', ".");
$GLOBALS['BOXMAKER_NUM']["10'000.00"] = array(2, '.', "'");
/**
* Default config
*/
$GLOBALS['TL_CONFIG']['boxmaker_currency'] = 'CHF';
$GLOBALS['TL_CONFIG']['boxmaker_currencyFormat'] = "10'000.00";
$GLOBALS['TL_CONFIG']['boxmaker_priceCalculateFactor'] = 1;
/*
* Verfahren
*/
$GLOBALS['BOXMAKER']['productionMethods'] = array
(
'p',
'ht',
'ap'
);
$GLOBALS['BOXMAKER']['productionMethodsLabel'] = array
(
'p' => 'Plotten',
'ht' => 'Handtiegel',
'ap' => 'Autoplatine'
);
$GLOBALS['BOXMAKER']['printingMethods'] = array
(
'blank',
'digitaldruck_1f',
'digitaldruck_4f',
'digitaldruckeco_4f',
'siebdruck_1f',
'flexodruck_1f',
'offsetdruck_1f',
'offsetdruck_4f'
);
$GLOBALS['BOXMAKER']['printingMethodsLabels'] = array
(
'blank' => 'unbedruckt',
'digitaldruck_1f' => 'Digitaldruck UV<br>einfarbig',
'digitaldruck_4f' => 'Digitaldruck UV<br>mehrfarbig',
'digitaldruckeco_4f' => 'Digitaldruck Eco<br>mehrfarbig',
'siebdruck_1f' => 'Siebdruck<br>einfarbig',
'flexodruck_1f' => 'Flexodruck<br>einfarbig',
'offsetdruck_1f' => 'Offsetdruck<br>einfarbig',
'offsetdruck_4f' => 'Offsetdruck<br>mehrfarbig',
'1s' => 'einseitig',
'2s' => 'beidseitig'
);
$GLOBALS['BOXMAKER']['printingMethodsLabels_short'] = array
(
'blank' => 'unbedruckt',
'digitaldruck' => 'Digitaldruck UV',
'digitaldruck_1f' => 'Digitaldruck UV',
'digitaldruck_4f' => 'Digitaldruck UV',
'digitaldruckeco' => 'Digitaldruck Eco',
'digitaldruckeco_4f' => 'Digitaldruck Eco',
'digitaldruckeco_4f' => 'Digitaldruck Eco',
'siebdruck' => 'Siebdruck',
'siebdruck_1f' => 'Siebdruck',
'flexodruck' => 'Flexodruck',
'flexodruck_1f' => 'Flexodruck',
'offsetdruck' => 'Offsetdruck',
'offsetdruck_1f' => 'Offsetdruck',
'offsetdruck_4f' => 'Offsetdruck',
'1s' => 'einseitig',
'2s' => 'beidseitig'
);
/**
* Notification
*/
$GLOBALS['NOTIFICATION_CENTER']['NOTIFICATION_TYPE']['boxmaker'] = array
(
'boxmaker_order' => array
(
'recipients' => array
(
'billing_email',
'shipping_email'
),
'email_recipient_cc' => array
(
'billing_email',
'shipping_email'
),
'email_recipient_bcc' => array
(
'billing_email',
'shipping_email'
),
'email_replyTo' => array
(
'billing_email',
'shipping_email'
),
'email_text' => array
(
'order_id',
'billing_name',
'billing_company',
'billing_strasse',
'billing_ort',
'billing_email',
'billing_phone',
'enable_shipping_address',
'shipping_name',
'shipping_company',
'shipping_strasse',
'shipping_ort',
'shipping_email',
'shipping_phone',
'shipping_fsEnd',
'type_title',
'stk',
'laenge',
'breite',
'hoehe',
'welle',
'farbe',
'druck_hg',
'druck_hg_price',
'order_print',
'order_options',
'ep_material',
'ep_produktion',
'ep_stanzen',
'ep_stanzmesser',
'ep_kleben',
'ep_drucken',
'ep_total_stk',
'ep_total',
'ep_options',
'ep_gesamt',
'vp_total_stk',
'vp_gesamt',
'method',
'methode_selected',
'delivery_time',
'produktion_p_material',
'produktion_p_produktion',
'produktion_p_stanzen',
'produktion_p_stanzmesser',
'produktion_p_kleben',
'produktion_p_total',
'produktion_ht_material',
'produktion_ht_produktion',
'produktion_ht_stanzen',
'produktion_ht_stanzmesser',
'produktion_ht_kleben',
'produktion_ht_total',
'produktion_ap_material',
'produktion_ap_produktion',
'produktion_ap_stanzen',
'produktion_ap_stanzmesser',
'produktion_ap_kleben',
'produktion_ap_total',
'druck_Digitaldruck_1f',
'druck_Digitaldruck_4f',
'druck_Digitaldruckeco_4f',
'druck_Siebdruck_1f',
'druck_Flexodruck_1f',
'druck_Offsetdruck_1f',
'druck_Offsetdruck_4f',
'marge_prozent',
'mwst_satz',
'boxmaker_currency',
'cart',
'cart_zwischensumme',
'mwst',
'mwst_satz',
'cart_total'
)
)
);
$GLOBALS['NOTIFICATION_CENTER']['NOTIFICATION_TYPE']['boxmaker']['boxmaker_order']['email_html'] = &$GLOBALS['NOTIFICATION_CENTER']['NOTIFICATION_TYPE']['boxmaker']['boxmaker_order']['email_text'];
$GLOBALS['NOTIFICATION_CENTER']['NOTIFICATION_TYPE']['boxmaker']['boxmaker_offer']= array
(
'recipients' => array
(
'email'
),
'email_recipient_cc' => array
(
'email'
),
'email_recipient_bcc' => array
(
'email'
),
'email_replyTo' => array
(
'email',
),
'email_text' => array
(
'text',
),
'attachment_tokens' => array
(
'attachment'
)
);
$GLOBALS['NOTIFICATION_CENTER']['NOTIFICATION_TYPE']['boxmaker']['boxmaker_offer']['email_html'] = &$GLOBALS['NOTIFICATION_CENTER']['NOTIFICATION_TYPE']['boxmaker']['boxmaker_offer']['email_text'];