src/bekanntmacher/boxmaker-bundle/src/Resources/contao/config/config.php line 24

Open in your IDE?
  1. <?php
  2. /**
  3.  * Boxmaker extension for Contao Open Source CMS
  4.  *
  5.  * Copyright (C) 2013-2014 bekanntmacher
  6.  *
  7.  * @author     Yanick Witschi <yanick.witschi@terminal42.ch>
  8.  * @license    commercial
  9.  */
  10. /**
  11.  * Boxmaker types
  12.  */
  13. $GLOBALS['BOXMAKER']['TYPES'] = array();
  14. $GLOBALS['BOXMAKER']['TYPES']['standard']  = 'Bekanntmacher\BoxmakerBundle\Type\StandardType';
  15. $GLOBALS['BOXMAKER']['TYPES']['zuschnitt']  = 'Bekanntmacher\\BoxmakerBundle\\Type\\ZuschnittType';
  16. /**
  17.  * Back end modules
  18.  */
  19. if (!is_array($GLOBALS['BE_MOD']['boxmaker']))
  20. {
  21.     array_insert($GLOBALS['BE_MOD'], 1, array('boxmaker' => array()));
  22. }
  23. $GLOBALS['BE_MOD']['boxmaker'] = array
  24. (
  25.     'boxmaker_type'             => array('tables' => array('tl_boxmaker_type')),
  26.     'boxmaker_type_config'      => array('tables' => array('tl_boxmaker_type_config')),
  27.     'boxmaker_type_option'      => array('tables' => array('tl_boxmaker_type_option')),
  28.     'boxmaker_welle'            => array('tables' => array('tl_boxmaker_welle')),
  29.     'boxmaker_farbe'            => array('tables' => array('tl_boxmaker_farbe')),
  30.     'boxmaker_config'           => array('tables' => array('tl_boxmaker_config')),
  31. );
  32. /**
  33.  * Front end modules
  34.  */
  35. $GLOBALS['FE_MOD']['boxmaker'] = array
  36. (
  37.     'boxmaker_calcform'         => 'Bekanntmacher\\BoxmakerBundle\\Module\\CalcForm',
  38.     'boxmaker_typelist'         => 'Bekanntmacher\\BoxmakerBundle\\Module\\TypeList',
  39.     'boxmaker_typedetail'       => 'Bekanntmacher\\BoxmakerBundle\\Module\\TypeDetail',
  40.     'boxmaker_typedebug'        => 'Bekanntmacher\\BoxmakerBundle\\Module\\TypeDebug',
  41.     'boxmaker_checkout'         => 'Bekanntmacher\\BoxmakerBundle\\Module\\Checkout',
  42.     'boxmaker_cart'             => 'Bekanntmacher\\BoxmakerBundle\\Module\\Cart',
  43.     'boxmaker_headercart'       => 'Bekanntmacher\\BoxmakerBundle\\Module\\HeaderCart',
  44. );
  45. /**
  46.  * Models
  47.  */
  48. $GLOBALS['TL_MODELS']['tl_boxmaker_config']         = 'Bekanntmacher\\BoxmakerBundle\\Model\\ConfigModel';
  49. $GLOBALS['TL_MODELS']['tl_boxmaker_type_config']    = 'Bekanntmacher\\BoxmakerBundle\\Model\\TypeConfigModel';
  50. $GLOBALS['TL_MODELS']['tl_boxmaker_type']           = 'Bekanntmacher\\BoxmakerBundle\\Model\\TypeModel';
  51. $GLOBALS['TL_MODELS']['tl_boxmaker_type_option']    = 'Bekanntmacher\\BoxmakerBundle\\Model\\TypeOptionModel';
  52. $GLOBALS['TL_MODELS']['tl_boxmaker_farbe']          = 'Bekanntmacher\\BoxmakerBundle\\Model\\FarbeModel';
  53. $GLOBALS['TL_MODELS']['tl_boxmaker_welle']          = 'Bekanntmacher\\BoxmakerBundle\\Model\\WelleModel';
  54. /**
  55.  * Number formatting
  56.  */
  57. $GLOBALS['BOXMAKER_NUM']["10000.00"]     = array(2'.'"");
  58. $GLOBALS['BOXMAKER_NUM']["10,000.00"]    = array(2'.'",");
  59. $GLOBALS['BOXMAKER_NUM']["10.000,00"]    = array(2','".");
  60. $GLOBALS['BOXMAKER_NUM']["10'000.00"]    = array(2'.'"'");
  61. /**
  62.  * Default config
  63.  */
  64. $GLOBALS['TL_CONFIG']['boxmaker_currency']              = 'CHF';
  65. $GLOBALS['TL_CONFIG']['boxmaker_currencyFormat']        = "10'000.00";
  66. $GLOBALS['TL_CONFIG']['boxmaker_priceCalculateFactor']  = 1;
  67. /*
  68.  * Verfahren
  69.  */
  70. $GLOBALS['BOXMAKER']['productionMethods'] = array
  71. (
  72.     'p',
  73.     'ht',
  74.     'ap'
  75. );
  76. $GLOBALS['BOXMAKER']['productionMethodsLabel'] = array
  77. (
  78.     'p'     => 'Plotten',
  79.     'ht'    => 'Handtiegel',
  80.     'ap'    => 'Autoplatine'
  81. );
  82. $GLOBALS['BOXMAKER']['printingMethods'] = array
  83. (
  84.     'blank',
  85.     'digitaldruck_1f',
  86.     'digitaldruck_4f',
  87.     'digitaldruckeco_4f',
  88.     'siebdruck_1f',
  89.     'flexodruck_1f',
  90.     'offsetdruck_1f',
  91.     'offsetdruck_4f'
  92. );
  93. $GLOBALS['BOXMAKER']['printingMethodsLabels'] = array
  94. (
  95.     'blank' => 'unbedruckt',
  96.     'digitaldruck_1f' => 'Digitaldruck UV<br>einfarbig',
  97.     'digitaldruck_4f' => 'Digitaldruck UV<br>mehrfarbig',
  98.     'digitaldruckeco_4f' => 'Digitaldruck Eco<br>mehrfarbig',
  99.     'siebdruck_1f' => 'Siebdruck<br>einfarbig',
  100.     'flexodruck_1f' => 'Flexodruck<br>einfarbig',
  101.     'offsetdruck_1f' => 'Offsetdruck<br>einfarbig',
  102.     'offsetdruck_4f' => 'Offsetdruck<br>mehrfarbig',
  103.     '1s' => 'einseitig',
  104.     '2s' => 'beidseitig'
  105. );
  106. $GLOBALS['BOXMAKER']['printingMethodsLabels_short'] = array
  107. (
  108.     'blank' => 'unbedruckt',
  109.     'digitaldruck' => 'Digitaldruck UV',
  110.     'digitaldruck_1f' => 'Digitaldruck UV',
  111.     'digitaldruck_4f' => 'Digitaldruck UV',
  112.     'digitaldruckeco' => 'Digitaldruck Eco',
  113.     'digitaldruckeco_4f' => 'Digitaldruck Eco',
  114.     'digitaldruckeco_4f' => 'Digitaldruck Eco',
  115.     'siebdruck' => 'Siebdruck',
  116.     'siebdruck_1f' => 'Siebdruck',
  117.     'flexodruck' => 'Flexodruck',
  118.     'flexodruck_1f' => 'Flexodruck',
  119.     'offsetdruck' => 'Offsetdruck',
  120.     'offsetdruck_1f' => 'Offsetdruck',
  121.     'offsetdruck_4f' => 'Offsetdruck',
  122.     '1s' => 'einseitig',
  123.     '2s' => 'beidseitig'
  124. );
  125. /**
  126.  * Notification
  127.  */
  128. $GLOBALS['NOTIFICATION_CENTER']['NOTIFICATION_TYPE']['boxmaker'] = array
  129. (
  130.     'boxmaker_order' => array
  131.     (
  132.         'recipients'          => array
  133.         (
  134.             'billing_email',
  135.             'shipping_email'
  136.         ),
  137.         'email_recipient_cc'  => array
  138.         (
  139.             'billing_email',
  140.             'shipping_email'
  141.         ),
  142.         'email_recipient_bcc' => array
  143.         (
  144.             'billing_email',
  145.             'shipping_email'
  146.         ),
  147.         'email_replyTo'       => array
  148.         (
  149.             'billing_email',
  150.             'shipping_email'
  151.         ),
  152.         'email_text'          => array
  153.         (
  154.             'order_id',
  155.             'billing_name',
  156.             'billing_company',
  157.             'billing_strasse',
  158.             'billing_ort',
  159.             'billing_email',
  160.             'billing_phone',
  161.             'enable_shipping_address',
  162.             'shipping_name',
  163.             'shipping_company',
  164.             'shipping_strasse',
  165.             'shipping_ort',
  166.             'shipping_email',
  167.             'shipping_phone',
  168.             'shipping_fsEnd',
  169.             'type_title',
  170.             'stk',
  171.             'laenge',
  172.             'breite',
  173.             'hoehe',
  174.             'welle',
  175.             'farbe',
  176.             'druck_hg',
  177.             'druck_hg_price',
  178.             'order_print',
  179.             'order_options',
  180.             'ep_material',
  181.             'ep_produktion',
  182.             'ep_stanzen',
  183.             'ep_stanzmesser',
  184.             'ep_kleben',
  185.             'ep_drucken',
  186.             'ep_total_stk',
  187.             'ep_total',
  188.             'ep_options',
  189.             'ep_gesamt',
  190.             'vp_total_stk',
  191.             'vp_gesamt',
  192.             'method',
  193.             'methode_selected',
  194.             'delivery_time',
  195.             'produktion_p_material',
  196.             'produktion_p_produktion',
  197.             'produktion_p_stanzen',
  198.             'produktion_p_stanzmesser',
  199.             'produktion_p_kleben',
  200.             'produktion_p_total',
  201.             'produktion_ht_material',
  202.             'produktion_ht_produktion',
  203.             'produktion_ht_stanzen',
  204.             'produktion_ht_stanzmesser',
  205.             'produktion_ht_kleben',
  206.             'produktion_ht_total',
  207.             'produktion_ap_material',
  208.             'produktion_ap_produktion',
  209.             'produktion_ap_stanzen',
  210.             'produktion_ap_stanzmesser',
  211.             'produktion_ap_kleben',
  212.             'produktion_ap_total',
  213.             'druck_Digitaldruck_1f',
  214.             'druck_Digitaldruck_4f',
  215.             'druck_Digitaldruckeco_4f',
  216.             'druck_Siebdruck_1f',
  217.             'druck_Flexodruck_1f',
  218.             'druck_Offsetdruck_1f',
  219.             'druck_Offsetdruck_4f',
  220.             'marge_prozent',
  221.             'mwst_satz',
  222.             'boxmaker_currency',
  223.             'cart',
  224.             'cart_zwischensumme',
  225.             'mwst',
  226.             'mwst_satz',
  227.             'cart_total'
  228.         )
  229.     )
  230. );
  231. $GLOBALS['NOTIFICATION_CENTER']['NOTIFICATION_TYPE']['boxmaker']['boxmaker_order']['email_html'] = &$GLOBALS['NOTIFICATION_CENTER']['NOTIFICATION_TYPE']['boxmaker']['boxmaker_order']['email_text'];
  232. $GLOBALS['NOTIFICATION_CENTER']['NOTIFICATION_TYPE']['boxmaker']['boxmaker_offer']= array
  233. (
  234.     'recipients'          => array
  235.     (
  236.         'email'
  237.     ),
  238.     'email_recipient_cc'  => array
  239.     (
  240.         'email'
  241.     ),
  242.     'email_recipient_bcc' => array
  243.     (
  244.         'email'
  245.     ),
  246.     'email_replyTo'       => array
  247.     (
  248.         'email',
  249.     ),
  250.     'email_text'          => array
  251.     (
  252.         'text',
  253.     ),
  254.     'attachment_tokens'    => array
  255.     (
  256.         'attachment'
  257.     )
  258. );
  259. $GLOBALS['NOTIFICATION_CENTER']['NOTIFICATION_TYPE']['boxmaker']['boxmaker_offer']['email_html'] = &$GLOBALS['NOTIFICATION_CENTER']['NOTIFICATION_TYPE']['boxmaker']['boxmaker_offer']['email_text'];