最新消息:爱T-blog 最新域名 blog.itiwin.cn !!! php技术博客 magento博客

magento 发票系统-个人、公司、增值税发票

magento 发票系统-个人、公司、增值税发票,  前台结账页面添加新的步骤,后台订单可查看发票 以及发送的订单

邮件都可以显示所填发票内容

magento 发票系统

magento 发票系统

magento 发票系统

magento 发票系统

一:配置config.xml

[xml]

<?xml version=”1.0″?>
<config>
<modules>
<More_ChinaInvoice>
<version>0.4.0</version>
</More_ChinaInvoice>
</modules>
<global>
<models>
<chinainvoice>
<class>More_ChinaInvoice_Model</class>
</chinainvoice>
<checkout>
<rewrite>
<type_onepage>More_ChinaInvoice_Model_Type_Onepage</type_onepage>
</rewrite>
</checkout>
<sales>
<rewrite>
<order>More_ChinaInvoice_Model_Order</order>
</rewrite>
</sales>
<moreadminthemecontroller>
<class>More_ChinaInvoice_Controller</class>
</moreadminthemecontroller>
</models>
<helpers>
<chinainvoice>
<class>More_ChinaInvoice_Helper</class>
</chinainvoice>
</helpers>
<blocks>
<checkout>
<rewrite>
<onepage>More_ChinaInvoice_Block_Onepage</onepage>
<onepage_progress>More_ChinaInvoice_Block_Onepage_Progress</onepage_progress>
</rewrite>
</checkout>
<chinainvoice>
<class>More_ChinaInvoice_Block</class>
</chinainvoice>
<chinainvoiceonepage>
<class>More_ChinaInvoice_Block_Onepage</class>
</chinainvoiceonepage>
</blocks>
<resources>
<chinainvoice_setup>
<setup>
<module>More_ChinaInvoice</module>
<class>Mage_Sales_Model_Mysql4_Setup</class>
</setup>
<connection>
<use>core_setup</use>
</connection>
</chinainvoice_setup>
</resources>
<events>
<adminhtml_controller_action_predispatch_start>
<observers>
<more_themeoverride_observer>
<type>singleton</type>
<!– moreadminthemecontroller/observer –>
<class>More_ChinaInvoice_Controller_Observer</class>
<method>overrideTheme</method>
</more_themeoverride_observer>
</observers>
</adminhtml_controller_action_predispatch_start>

</events>
</global>
<frontend>
<routers>
<checkout>
<args>
<modules>
<More_ChinaInvoice before=”Mage_Checkout”>More_ChinaInvoice</More_ChinaInvoice>
</modules>
</args>
</checkout>
</routers>
<events>
<sales_model_service_quote_submit_success>
<observers>
<hooksystem_order_success>
<type>model</type>
<class>chinainvoice/observer</class>
<method>hookToOrderSaveEvent</method>
</hooksystem_order_success>
</observers>
</sales_model_service_quote_submit_success>
<!–  order save event –>
</events>
<layout>
<updates>
<chinainvoice>
<file>chinainvoice.xml</file>
</chinainvoice>
</updates>
</layout>
<translate>
<modules>
<More_ChinaInvoice>
<files>
<default>More_ChinaInvoice.csv</default>
</files>
</More_ChinaInvoice>
</modules>
</translate>
</frontend>
<adminhtml>
<layout>
<updates>
<chinainvoice>
<file>chinainvoice.xml</file>
</chinainvoice>
</updates>
</layout>
<translate>
<modules>
<More_ChinaInvoice>
<files>
<default>More_ChinaInvoice.csv</default>
</files>
</More_ChinaInvoice>
</modules>
</translate>
</adminhtml>
</config>

[/xml]

download magneto

download magneto

企鹅交流 More 87 4938 361

转载请注明:爱T-blog » magento 发票系统-个人、公司、增值税发票

与本文相关文章

2条回应:“magento 发票系统-个人、公司、增值税发票”

  1. magento_shaun说道:

    我安装了您写的这发票 系统,现在发现是在sales_flat_order表中新增的那些发票相关的字段 按照您现在开发的逻辑来走,并不能保存发票相关的数据,不知何解?

发表评论

电子邮件地址不会被公开。 必填项已用*标注