Advertisement
eyemaginesrobbins

magento-b2b-config

Aug 7th, 2013
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.24 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * EYEMAGINE - The leading Magento Solution Partner
  5. *
  6. * B2B Customer Restrictions
  7. *
  8. * @author    EYEMAGINE <magento@eyemaginetech.com>
  9. * @category  Eyemagine
  10. * @package   Eyemagine_B2b
  11. * @copyright Copyright (c) 2013 EYEMAGINE Technology, LLC (http://www.eyemaginetech.com)
  12. * @license   http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
  13. */
  14. -->
  15. <config>
  16.     <modules>
  17.         <Eyemagine_B2b>
  18.             <version>1.0.0</version>
  19.         </Eyemagine_B2b>
  20.     </modules>
  21.     <global>
  22.         <helpers>
  23.             <b2b>
  24.                 <class>Eyemagine_B2b_Helper</class>
  25.             </b2b>
  26.         </helpers>
  27.         <models>
  28.             <b2b>
  29.                 <class>Eyemagine_B2b_Model</class>
  30.             </b2b>
  31.         </models>
  32.     </global>
  33.     <frontend>
  34.         <events>
  35.             <sales_quote_save_before>
  36.                 <observers>
  37.                     <b2b>
  38.                         <class>b2b/observer</class>
  39.                         <method>checkTotalsCart</method>
  40.                     </b2b>
  41.                 </observers>
  42.             </sales_quote_save_before>
  43.             <controller_action_predispatch_checkout_onepage_index>
  44.                 <observers>
  45.                     <b2b>
  46.                         <class>b2b/observer</class>
  47.                         <method>checkTotalsCheckout</method>
  48.                     </b2b>
  49.                 </observers>
  50.             </controller_action_predispatch_checkout_onepage_index>
  51.             <core_session_abstract_clear_messages>
  52.                 <observers>
  53.                     <b2b>
  54.                         <class>b2b/observer</class>
  55.                         <method>unsetErrorMessage</method>
  56.                     </b2b>
  57.                 </observers>
  58.             </core_session_abstract_clear_messages>
  59.         </events>
  60.     </frontend>
  61.     <default>
  62.         <sales>
  63.             <b2b>
  64.                 <enabled>0</enabled>
  65.                 <subtotal_min>750</subtotal_min>
  66.                 <subtotal_min_subsequent>100</subtotal_min_subsequent>
  67.                 <error_message>You must have a total of %min% before you can checkout.</error_message>
  68.             </b2b>
  69.         </sales>
  70.     </default>
  71. </config>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement