Magento: Fatal error: Class 'Mage_Giftcards_Helper_Data' не найден в … / app / Mage.php в строке 546

Я установил одно расширение модуля, которое вызывает фатальную ошибку «Fatal error: Class» Mage_Giftcards_Helper_Data 'не найден в …. / app / Mage.php в строке 546 "в admin.

Я добавил эту ссылку https://stackoverflow.com/a/9191286/2919940 и эту ссылку, а также https://magento.stackexchange.com/a/7133/3693

Но у меня есть

<global> <helpers> <giftcards> <class>Webtex_Giftcards_Helper</class> </giftcards> </helpers> </global> 

в моем config.xml, и у меня этот класс

 class Webtex_Giftcards_Helper_Data extends Mage_Core_Helper_Data{ // my methods } 

объявлен на пути «/app/code/local/Webtex/Giftcards/Helper/Data.php».

Я отключил компилятор и очистил кеш, создав пустую директорию «var / cache».

Я обнаружил, что config.xml должен иметь вспомогательный класс, а Data.php должен объявить этот вспомогательный класс.

Но у меня есть оба в моем случае, что может быть причиной этой ошибки? Я тестировал этот модуль на моей новой установке magento,

Версия Magento – 1.7.0.2

Пожалуйста, помогите с этой ошибкой ?? Если есть конфликты имен классов, как мы можем отлаживать это?

UPDATE: вот мое приложение / etc / modules / Webtex_Giftcards.xml.

 <?xml version="1.0"?> <config> <modules> <Webtex_Giftcards> <active>true</active> <codePool>local</codePool> <name>Webtex Gift Cards</name> </Webtex_Giftcards> </modules> </config> 

И вот мой файл system.xml

 <?xml version="1.0"?> <config> <tabs> <webtex translate="label" module="giftcards"> <label>WebTex</label> <sort_order>300</sort_order> </webtex> </tabs> <sections> <giftcards module="giftcards"> <tab>webtex</tab> <label>Gift Cards</label> <frontend_type>text</frontend_type> <sort_order>200</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> <groups> <default module="giftcards"> <label>Defaults</label> <frontend_type>text</frontend_type> <sort_order>10</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> <fields> <min_card_value> <label>Min Gift Card Value</label> <frontend_type>text</frontend_type> <sort_order>20</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> </min_card_value> <max_card_value> <label>Max Gift Card Value</label> <frontend_type>text</frontend_type> <sort_order>21</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> </max_card_value> <show_in_shopping_cart> <label>Show In Shopping Cart Page</label> <frontend_type>select</frontend_type> <source_model>adminhtml/system_config_source_yesno</source_model> <sort_order>22</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> </show_in_shopping_cart> <show_as_payment_method> <label>Show As Payment Method</label> <frontend_type>select</frontend_type> <source_model>adminhtml/system_config_source_yesno</source_model> <sort_order>22</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> </show_as_payment_method> <show_mail_delivery_date_field> <label>Show email delivery date field</label> <frontend_type>select</frontend_type> <source_model>adminhtml/system_config_source_yesno</source_model> <sort_order>23</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> </show_mail_delivery_date_field> </fields> </default> <email module="giftcards"> <label>Email Options</label> <frontend_type>text</frontend_type> <sort_order>50</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> <fields> <card_picture> <label>Use default GiftCard picture for Email</label> <frontend_type>select</frontend_type> <source_model>adminhtml/system_config_source_yesno</source_model> <sort_order>24</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> <comment>Set "No" for use product picture</comment> </card_picture> <email_template> <label>Template for e-mail</label> <frontend_type>select</frontend_type> <source_model>adminhtml/system_config_source_email_template</source_model> <sort_order>30</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> </email_template> <print_template> <label>Template for print</label> <frontend_type>select</frontend_type> <source_model>adminhtml/system_config_source_email_template</source_model> <sort_order>30</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> </print_template> <offline_template> <label>Template for offline</label> <frontend_type>select</frontend_type> <source_model>adminhtml/system_config_source_email_template</source_model> <sort_order>30</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> </offline_template> <confirm_template> <label>Template for confirmation</label> <frontend_type>select</frontend_type> <source_model>adminhtml/system_config_source_email_template</source_model> <sort_order>30</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> </confirm_template> </fields> </email> </groups> </giftcards> </sections> </config> по <?xml version="1.0"?> <config> <tabs> <webtex translate="label" module="giftcards"> <label>WebTex</label> <sort_order>300</sort_order> </webtex> </tabs> <sections> <giftcards module="giftcards"> <tab>webtex</tab> <label>Gift Cards</label> <frontend_type>text</frontend_type> <sort_order>200</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> <groups> <default module="giftcards"> <label>Defaults</label> <frontend_type>text</frontend_type> <sort_order>10</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> <fields> <min_card_value> <label>Min Gift Card Value</label> <frontend_type>text</frontend_type> <sort_order>20</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> </min_card_value> <max_card_value> <label>Max Gift Card Value</label> <frontend_type>text</frontend_type> <sort_order>21</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> </max_card_value> <show_in_shopping_cart> <label>Show In Shopping Cart Page</label> <frontend_type>select</frontend_type> <source_model>adminhtml/system_config_source_yesno</source_model> <sort_order>22</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> </show_in_shopping_cart> <show_as_payment_method> <label>Show As Payment Method</label> <frontend_type>select</frontend_type> <source_model>adminhtml/system_config_source_yesno</source_model> <sort_order>22</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> </show_as_payment_method> <show_mail_delivery_date_field> <label>Show email delivery date field</label> <frontend_type>select</frontend_type> <source_model>adminhtml/system_config_source_yesno</source_model> <sort_order>23</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> </show_mail_delivery_date_field> </fields> </default> <email module="giftcards"> <label>Email Options</label> <frontend_type>text</frontend_type> <sort_order>50</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> <fields> <card_picture> <label>Use default GiftCard picture for Email</label> <frontend_type>select</frontend_type> <source_model>adminhtml/system_config_source_yesno</source_model> <sort_order>24</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> <comment>Set "No" for use product picture</comment> </card_picture> <email_template> <label>Template for e-mail</label> <frontend_type>select</frontend_type> <source_model>adminhtml/system_config_source_email_template</source_model> <sort_order>30</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> </email_template> <print_template> <label>Template for print</label> <frontend_type>select</frontend_type> <source_model>adminhtml/system_config_source_email_template</source_model> <sort_order>30</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> </print_template> <offline_template> <label>Template for offline</label> <frontend_type>select</frontend_type> <source_model>adminhtml/system_config_source_email_template</source_model> <sort_order>30</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> </offline_template> <confirm_template> <label>Template for confirmation</label> <frontend_type>select</frontend_type> <source_model>adminhtml/system_config_source_email_template</source_model> <sort_order>30</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> </confirm_template> </fields> </email> </groups> </giftcards> </sections> </config> по <?xml version="1.0"?> <config> <tabs> <webtex translate="label" module="giftcards"> <label>WebTex</label> <sort_order>300</sort_order> </webtex> </tabs> <sections> <giftcards module="giftcards"> <tab>webtex</tab> <label>Gift Cards</label> <frontend_type>text</frontend_type> <sort_order>200</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> <groups> <default module="giftcards"> <label>Defaults</label> <frontend_type>text</frontend_type> <sort_order>10</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> <fields> <min_card_value> <label>Min Gift Card Value</label> <frontend_type>text</frontend_type> <sort_order>20</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> </min_card_value> <max_card_value> <label>Max Gift Card Value</label> <frontend_type>text</frontend_type> <sort_order>21</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> </max_card_value> <show_in_shopping_cart> <label>Show In Shopping Cart Page</label> <frontend_type>select</frontend_type> <source_model>adminhtml/system_config_source_yesno</source_model> <sort_order>22</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> </show_in_shopping_cart> <show_as_payment_method> <label>Show As Payment Method</label> <frontend_type>select</frontend_type> <source_model>adminhtml/system_config_source_yesno</source_model> <sort_order>22</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> </show_as_payment_method> <show_mail_delivery_date_field> <label>Show email delivery date field</label> <frontend_type>select</frontend_type> <source_model>adminhtml/system_config_source_yesno</source_model> <sort_order>23</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> </show_mail_delivery_date_field> </fields> </default> <email module="giftcards"> <label>Email Options</label> <frontend_type>text</frontend_type> <sort_order>50</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> <fields> <card_picture> <label>Use default GiftCard picture for Email</label> <frontend_type>select</frontend_type> <source_model>adminhtml/system_config_source_yesno</source_model> <sort_order>24</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> <comment>Set "No" for use product picture</comment> </card_picture> <email_template> <label>Template for e-mail</label> <frontend_type>select</frontend_type> <source_model>adminhtml/system_config_source_email_template</source_model> <sort_order>30</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> </email_template> <print_template> <label>Template for print</label> <frontend_type>select</frontend_type> <source_model>adminhtml/system_config_source_email_template</source_model> <sort_order>30</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> </print_template> <offline_template> <label>Template for offline</label> <frontend_type>select</frontend_type> <source_model>adminhtml/system_config_source_email_template</source_model> <sort_order>30</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> </offline_template> <confirm_template> <label>Template for confirmation</label> <frontend_type>select</frontend_type> <source_model>adminhtml/system_config_source_email_template</source_model> <sort_order>30</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> </confirm_template> </fields> </email> </groups> </giftcards> </sections> </config> 

И вот мой файл config.xml.

 <?xml version="1.0"?> <config> <modules> <Webtex_Giftcards> <version>3.3.1</version> </Webtex_Giftcards> </modules> <admin> <routers> <giftcards> <use>admin</use> <args> <module>Webtex_Giftcards</module> <frontName>giftcards</frontName> </args> </giftcards> <adminhtml> <args> <modules> <Webtex_Giftcards before="Mage_Adminhtml">Webtex_Giftcards_Adminhtml</Webtex_Giftcards> </modules> </args> </adminhtml> </routers> </admin> <frontend> <routers> <checkout> <args> <modules> <Webtex_Giftcards before="Mage_Checkout">Webtex_Giftcards</Webtex_Giftcards> </modules> </args> </checkout> </routers> <layout> <updates> <giftcards> <file>giftcards.xml</file> </giftcards> </updates> </layout> <translate> <modules> <Webtex_Giftcards> <files> <default>Webtex_Giftcards.csv</default> </files> </Webtex_Giftcards> </modules> </translate> </frontend> <global> <rewrite> <giftcards_giftcards_index> <from><![CDATA[#^/customer/giftcards/#]]></from> <to>/giftcards/giftcards/</to> </giftcards_giftcards_index> <giftcards_giftcards_balance> <from><![CDATA[#^/customer/giftcards/balance/#]]></from> <to>/giftcards/giftcards/balance/</to> </giftcards_giftcards_balance> <giftcards_giftcards_print> <from><![CDATA[#^/customer/giftcards/print/#]]></from> <to>/giftcards/giftcards/print/</to> </giftcards_giftcards_print> <giftcards_giftcards_apply> <from><![CDATA[#^/customer/giftcards/apply/#]]></from> <to>/giftcards/giftcards/apply/</to> </giftcards_giftcards_apply> </rewrite> <models> <giftcards> <class>Webtex_Giftcards_Model</class> <resourceModel>giftcards_mysql4</resourceModel> </giftcards> <giftcards_mysql4> <class>Webtex_Giftcards_Model_Mysql4</class> <entities> <giftcards> <table>giftcards_card</table> </giftcards> <cardslist> <table>giftcards_cardlist</table> </cardslist> <order> <table>giftcard_order</table> </order> </entities> </giftcards_mysql4> <sales> <rewrite> <order>Webtex_Giftcards_Model_Sales_Order</order> </rewrite> </sales> </models> <resources> <giftcards_setup> <setup> <module>Webtex_Giftcards</module> <class>Mage_Catalog_Model_Resource_Eav_Mysql4_Setup</class> </setup> <connection> <use>core_setup</use> </connection> </giftcards_setup> </resources> <helpers> <giftcards> <class>Webtex_Giftcards_Helper</class> </giftcards> </helpers> <blocks> <giftcards> <class>Webtex_Giftcards_Block</class> </giftcards> </blocks> <events> <catalog_product_save_before> <observers> <webtex_giftcards_observer_catalog_product_save_after> <type>singleton</type> <class>giftcards/observer</class> <method>catalogProductSaveBefore</method> </webtex_giftcards_observer_catalog_product_save_after> </observers> </catalog_product_save_before> <order_cancel_after> <observers> <webtex_giftcards_observer_sales_order_cancel_after> <type>singleton</type> <class>giftcards/observer</class> <method>salesOrderCancelAfter</method> </webtex_giftcards_observer_sales_order_cancel_after> </observers> </order_cancel_after> <sales_order_payment_refund> <observers> <webtex_giftcards_observer_sales_order_creditmemo_refund> <type>singleton</type> <class>giftcards/observer</class> <method>saleOrderPaymentRefund</method> </webtex_giftcards_observer_sales_order_creditmemo_refund> </observers> </sales_order_payment_refund> <sales_order_save_after> <observers> <webtex_giftcards_observer_sales_order_save_after> <type>singleton</type> <class>giftcards/observer</class> <method>salesOrderSaveAfter</method> </webtex_giftcards_observer_sales_order_save_after> </observers> </sales_order_save_after> <sales_model_service_quote_submit_after> <observers> <webtex_giftcards_observer_checkout_type_onepage_save_order_after> <type>singleton</type> <class>giftcards/observer</class> <method>checkoutTypeOnepageSaveOrderAfter</method> </webtex_giftcards_observer_checkout_type_onepage_save_order_after> </observers> </sales_model_service_quote_submit_after> <core_block_abstract_to_html_after> <observers> <webtex_giftcards_observer_checkpriceiszero> <type>singleton</type> <class>giftcards/observer</class> <method>checkpriceiszero</method> </webtex_giftcards_observer_checkpriceiszero> </observers> </core_block_abstract_to_html_after> <sales_quote_collect_totals_after> <observers> <webtex_giftcards_discount_observer_testdiscountquote> <type>singleton</type> <class>giftcards/discount_observer</class> <method>testDiscountQuote</method> </webtex_giftcards_discount_observer_testdiscountquote> </observers> </sales_quote_collect_totals_after> </events> <template> <email> <giftcards_email_email_template translate="label" module="giftcards"> <label>Gift Card E-mail</label> <file>giftcard_email.html</file> <type>html</type> </giftcards_email_email_template> <giftcards_email_print_template translate="label" module="giftcards"> <label>Gift Card Print</label> <file>giftcard_print.html</file> <type>html</type> </giftcards_email_print_template> <giftcards_email_offline_template translate="label" module="giftcards"> <label>Gift Card Offline</label> <file>giftcard_offline.html</file> <type>html</type> </giftcards_email_offline_template> <giftcards_email_confirm_template translate="label" module="giftcards"> <label>Gift Card Confirm</label> <file>giftcard_confirm.html</file> <type>html</type> </giftcards_email_confirm_template> </email> </template> <catalog> <product> <type> <giftcards module="giftcards"> <label>Gift Card</label> <model>giftcards/product_type_giftcards</model> <price_model>giftcards/product_price</price_model> <is_qty>1</is_qty> <composite>0</composite> </giftcards> </type> </product> </catalog> <sales> <quote> <totals> <discount> <class>giftcards/discount</class> <after>subtotal,shipping</after> <before>grand_total</before> </discount> </totals> </quote> </sales> </global> <adminhtml> <sales> <order> <create> <available_product_types> <giftcards /> </available_product_types> </create> </order> </sales> </adminhtml> <default> <giftcards> <email> <email_template>giftcards_email_email_template</email_template> <print_template>giftcards_email_print_template</print_template> <offline_template>giftcards_email_offline_template</offline_template> <confirm_template>giftcards_email_confirm_template</confirm_template> </email> </giftcards> </default> <adminhtml><layout><updates><blog><file>webtex/giftcards/giftcards.xml</file></blog></updates></layout></adminhtml> <crontabs> <jobs> <schedule><cron_expr>0 1 * * *</cron_expr></schedule> <run><model>giftcards/observer::sendEmailByDeliveryDate</model></run> </jobs> </crontabs> </config> по <?xml version="1.0"?> <config> <modules> <Webtex_Giftcards> <version>3.3.1</version> </Webtex_Giftcards> </modules> <admin> <routers> <giftcards> <use>admin</use> <args> <module>Webtex_Giftcards</module> <frontName>giftcards</frontName> </args> </giftcards> <adminhtml> <args> <modules> <Webtex_Giftcards before="Mage_Adminhtml">Webtex_Giftcards_Adminhtml</Webtex_Giftcards> </modules> </args> </adminhtml> </routers> </admin> <frontend> <routers> <checkout> <args> <modules> <Webtex_Giftcards before="Mage_Checkout">Webtex_Giftcards</Webtex_Giftcards> </modules> </args> </checkout> </routers> <layout> <updates> <giftcards> <file>giftcards.xml</file> </giftcards> </updates> </layout> <translate> <modules> <Webtex_Giftcards> <files> <default>Webtex_Giftcards.csv</default> </files> </Webtex_Giftcards> </modules> </translate> </frontend> <global> <rewrite> <giftcards_giftcards_index> <from><![CDATA[#^/customer/giftcards/#]]></from> <to>/giftcards/giftcards/</to> </giftcards_giftcards_index> <giftcards_giftcards_balance> <from><![CDATA[#^/customer/giftcards/balance/#]]></from> <to>/giftcards/giftcards/balance/</to> </giftcards_giftcards_balance> <giftcards_giftcards_print> <from><![CDATA[#^/customer/giftcards/print/#]]></from> <to>/giftcards/giftcards/print/</to> </giftcards_giftcards_print> <giftcards_giftcards_apply> <from><![CDATA[#^/customer/giftcards/apply/#]]></from> <to>/giftcards/giftcards/apply/</to> </giftcards_giftcards_apply> </rewrite> <models> <giftcards> <class>Webtex_Giftcards_Model</class> <resourceModel>giftcards_mysql4</resourceModel> </giftcards> <giftcards_mysql4> <class>Webtex_Giftcards_Model_Mysql4</class> <entities> <giftcards> <table>giftcards_card</table> </giftcards> <cardslist> <table>giftcards_cardlist</table> </cardslist> <order> <table>giftcard_order</table> </order> </entities> </giftcards_mysql4> <sales> <rewrite> <order>Webtex_Giftcards_Model_Sales_Order</order> </rewrite> </sales> </models> <resources> <giftcards_setup> <setup> <module>Webtex_Giftcards</module> <class>Mage_Catalog_Model_Resource_Eav_Mysql4_Setup</class> </setup> <connection> <use>core_setup</use> </connection> </giftcards_setup> </resources> <helpers> <giftcards> <class>Webtex_Giftcards_Helper</class> </giftcards> </helpers> <blocks> <giftcards> <class>Webtex_Giftcards_Block</class> </giftcards> </blocks> <events> <catalog_product_save_before> <observers> <webtex_giftcards_observer_catalog_product_save_after> <type>singleton</type> <class>giftcards/observer</class> <method>catalogProductSaveBefore</method> </webtex_giftcards_observer_catalog_product_save_after> </observers> </catalog_product_save_before> <order_cancel_after> <observers> <webtex_giftcards_observer_sales_order_cancel_after> <type>singleton</type> <class>giftcards/observer</class> <method>salesOrderCancelAfter</method> </webtex_giftcards_observer_sales_order_cancel_after> </observers> </order_cancel_after> <sales_order_payment_refund> <observers> <webtex_giftcards_observer_sales_order_creditmemo_refund> <type>singleton</type> <class>giftcards/observer</class> <method>saleOrderPaymentRefund</method> </webtex_giftcards_observer_sales_order_creditmemo_refund> </observers> </sales_order_payment_refund> <sales_order_save_after> <observers> <webtex_giftcards_observer_sales_order_save_after> <type>singleton</type> <class>giftcards/observer</class> <method>salesOrderSaveAfter</method> </webtex_giftcards_observer_sales_order_save_after> </observers> </sales_order_save_after> <sales_model_service_quote_submit_after> <observers> <webtex_giftcards_observer_checkout_type_onepage_save_order_after> <type>singleton</type> <class>giftcards/observer</class> <method>checkoutTypeOnepageSaveOrderAfter</method> </webtex_giftcards_observer_checkout_type_onepage_save_order_after> </observers> </sales_model_service_quote_submit_after> <core_block_abstract_to_html_after> <observers> <webtex_giftcards_observer_checkpriceiszero> <type>singleton</type> <class>giftcards/observer</class> <method>checkpriceiszero</method> </webtex_giftcards_observer_checkpriceiszero> </observers> </core_block_abstract_to_html_after> <sales_quote_collect_totals_after> <observers> <webtex_giftcards_discount_observer_testdiscountquote> <type>singleton</type> <class>giftcards/discount_observer</class> <method>testDiscountQuote</method> </webtex_giftcards_discount_observer_testdiscountquote> </observers> </sales_quote_collect_totals_after> </events> <template> <email> <giftcards_email_email_template translate="label" module="giftcards"> <label>Gift Card E-mail</label> <file>giftcard_email.html</file> <type>html</type> </giftcards_email_email_template> <giftcards_email_print_template translate="label" module="giftcards"> <label>Gift Card Print</label> <file>giftcard_print.html</file> <type>html</type> </giftcards_email_print_template> <giftcards_email_offline_template translate="label" module="giftcards"> <label>Gift Card Offline</label> <file>giftcard_offline.html</file> <type>html</type> </giftcards_email_offline_template> <giftcards_email_confirm_template translate="label" module="giftcards"> <label>Gift Card Confirm</label> <file>giftcard_confirm.html</file> <type>html</type> </giftcards_email_confirm_template> </email> </template> <catalog> <product> <type> <giftcards module="giftcards"> <label>Gift Card</label> <model>giftcards/product_type_giftcards</model> <price_model>giftcards/product_price</price_model> <is_qty>1</is_qty> <composite>0</composite> </giftcards> </type> </product> </catalog> <sales> <quote> <totals> <discount> <class>giftcards/discount</class> <after>subtotal,shipping</after> <before>grand_total</before> </discount> </totals> </quote> </sales> </global> <adminhtml> <sales> <order> <create> <available_product_types> <giftcards /> </available_product_types> </create> </order> </sales> </adminhtml> <default> <giftcards> <email> <email_template>giftcards_email_email_template</email_template> <print_template>giftcards_email_print_template</print_template> <offline_template>giftcards_email_offline_template</offline_template> <confirm_template>giftcards_email_confirm_template</confirm_template> </email> </giftcards> </default> <adminhtml><layout><updates><blog><file>webtex/giftcards/giftcards.xml</file></blog></updates></layout></adminhtml> <crontabs> <jobs> <schedule><cron_expr>0 1 * * *</cron_expr></schedule> <run><model>giftcards/observer::sendEmailByDeliveryDate</model></run> </jobs> </crontabs> </config> по <?xml version="1.0"?> <config> <modules> <Webtex_Giftcards> <version>3.3.1</version> </Webtex_Giftcards> </modules> <admin> <routers> <giftcards> <use>admin</use> <args> <module>Webtex_Giftcards</module> <frontName>giftcards</frontName> </args> </giftcards> <adminhtml> <args> <modules> <Webtex_Giftcards before="Mage_Adminhtml">Webtex_Giftcards_Adminhtml</Webtex_Giftcards> </modules> </args> </adminhtml> </routers> </admin> <frontend> <routers> <checkout> <args> <modules> <Webtex_Giftcards before="Mage_Checkout">Webtex_Giftcards</Webtex_Giftcards> </modules> </args> </checkout> </routers> <layout> <updates> <giftcards> <file>giftcards.xml</file> </giftcards> </updates> </layout> <translate> <modules> <Webtex_Giftcards> <files> <default>Webtex_Giftcards.csv</default> </files> </Webtex_Giftcards> </modules> </translate> </frontend> <global> <rewrite> <giftcards_giftcards_index> <from><![CDATA[#^/customer/giftcards/#]]></from> <to>/giftcards/giftcards/</to> </giftcards_giftcards_index> <giftcards_giftcards_balance> <from><![CDATA[#^/customer/giftcards/balance/#]]></from> <to>/giftcards/giftcards/balance/</to> </giftcards_giftcards_balance> <giftcards_giftcards_print> <from><![CDATA[#^/customer/giftcards/print/#]]></from> <to>/giftcards/giftcards/print/</to> </giftcards_giftcards_print> <giftcards_giftcards_apply> <from><![CDATA[#^/customer/giftcards/apply/#]]></from> <to>/giftcards/giftcards/apply/</to> </giftcards_giftcards_apply> </rewrite> <models> <giftcards> <class>Webtex_Giftcards_Model</class> <resourceModel>giftcards_mysql4</resourceModel> </giftcards> <giftcards_mysql4> <class>Webtex_Giftcards_Model_Mysql4</class> <entities> <giftcards> <table>giftcards_card</table> </giftcards> <cardslist> <table>giftcards_cardlist</table> </cardslist> <order> <table>giftcard_order</table> </order> </entities> </giftcards_mysql4> <sales> <rewrite> <order>Webtex_Giftcards_Model_Sales_Order</order> </rewrite> </sales> </models> <resources> <giftcards_setup> <setup> <module>Webtex_Giftcards</module> <class>Mage_Catalog_Model_Resource_Eav_Mysql4_Setup</class> </setup> <connection> <use>core_setup</use> </connection> </giftcards_setup> </resources> <helpers> <giftcards> <class>Webtex_Giftcards_Helper</class> </giftcards> </helpers> <blocks> <giftcards> <class>Webtex_Giftcards_Block</class> </giftcards> </blocks> <events> <catalog_product_save_before> <observers> <webtex_giftcards_observer_catalog_product_save_after> <type>singleton</type> <class>giftcards/observer</class> <method>catalogProductSaveBefore</method> </webtex_giftcards_observer_catalog_product_save_after> </observers> </catalog_product_save_before> <order_cancel_after> <observers> <webtex_giftcards_observer_sales_order_cancel_after> <type>singleton</type> <class>giftcards/observer</class> <method>salesOrderCancelAfter</method> </webtex_giftcards_observer_sales_order_cancel_after> </observers> </order_cancel_after> <sales_order_payment_refund> <observers> <webtex_giftcards_observer_sales_order_creditmemo_refund> <type>singleton</type> <class>giftcards/observer</class> <method>saleOrderPaymentRefund</method> </webtex_giftcards_observer_sales_order_creditmemo_refund> </observers> </sales_order_payment_refund> <sales_order_save_after> <observers> <webtex_giftcards_observer_sales_order_save_after> <type>singleton</type> <class>giftcards/observer</class> <method>salesOrderSaveAfter</method> </webtex_giftcards_observer_sales_order_save_after> </observers> </sales_order_save_after> <sales_model_service_quote_submit_after> <observers> <webtex_giftcards_observer_checkout_type_onepage_save_order_after> <type>singleton</type> <class>giftcards/observer</class> <method>checkoutTypeOnepageSaveOrderAfter</method> </webtex_giftcards_observer_checkout_type_onepage_save_order_after> </observers> </sales_model_service_quote_submit_after> <core_block_abstract_to_html_after> <observers> <webtex_giftcards_observer_checkpriceiszero> <type>singleton</type> <class>giftcards/observer</class> <method>checkpriceiszero</method> </webtex_giftcards_observer_checkpriceiszero> </observers> </core_block_abstract_to_html_after> <sales_quote_collect_totals_after> <observers> <webtex_giftcards_discount_observer_testdiscountquote> <type>singleton</type> <class>giftcards/discount_observer</class> <method>testDiscountQuote</method> </webtex_giftcards_discount_observer_testdiscountquote> </observers> </sales_quote_collect_totals_after> </events> <template> <email> <giftcards_email_email_template translate="label" module="giftcards"> <label>Gift Card E-mail</label> <file>giftcard_email.html</file> <type>html</type> </giftcards_email_email_template> <giftcards_email_print_template translate="label" module="giftcards"> <label>Gift Card Print</label> <file>giftcard_print.html</file> <type>html</type> </giftcards_email_print_template> <giftcards_email_offline_template translate="label" module="giftcards"> <label>Gift Card Offline</label> <file>giftcard_offline.html</file> <type>html</type> </giftcards_email_offline_template> <giftcards_email_confirm_template translate="label" module="giftcards"> <label>Gift Card Confirm</label> <file>giftcard_confirm.html</file> <type>html</type> </giftcards_email_confirm_template> </email> </template> <catalog> <product> <type> <giftcards module="giftcards"> <label>Gift Card</label> <model>giftcards/product_type_giftcards</model> <price_model>giftcards/product_price</price_model> <is_qty>1</is_qty> <composite>0</composite> </giftcards> </type> </product> </catalog> <sales> <quote> <totals> <discount> <class>giftcards/discount</class> <after>subtotal,shipping</after> <before>grand_total</before> </discount> </totals> </quote> </sales> </global> <adminhtml> <sales> <order> <create> <available_product_types> <giftcards /> </available_product_types> </create> </order> </sales> </adminhtml> <default> <giftcards> <email> <email_template>giftcards_email_email_template</email_template> <print_template>giftcards_email_print_template</print_template> <offline_template>giftcards_email_offline_template</offline_template> <confirm_template>giftcards_email_confirm_template</confirm_template> </email> </giftcards> </default> <adminhtml><layout><updates><blog><file>webtex/giftcards/giftcards.xml</file></blog></updates></layout></adminhtml> <crontabs> <jobs> <schedule><cron_expr>0 1 * * *</cron_expr></schedule> <run><model>giftcards/observer::sendEmailByDeliveryDate</model></run> </jobs> </crontabs> </config> тем <?xml version="1.0"?> <config> <modules> <Webtex_Giftcards> <version>3.3.1</version> </Webtex_Giftcards> </modules> <admin> <routers> <giftcards> <use>admin</use> <args> <module>Webtex_Giftcards</module> <frontName>giftcards</frontName> </args> </giftcards> <adminhtml> <args> <modules> <Webtex_Giftcards before="Mage_Adminhtml">Webtex_Giftcards_Adminhtml</Webtex_Giftcards> </modules> </args> </adminhtml> </routers> </admin> <frontend> <routers> <checkout> <args> <modules> <Webtex_Giftcards before="Mage_Checkout">Webtex_Giftcards</Webtex_Giftcards> </modules> </args> </checkout> </routers> <layout> <updates> <giftcards> <file>giftcards.xml</file> </giftcards> </updates> </layout> <translate> <modules> <Webtex_Giftcards> <files> <default>Webtex_Giftcards.csv</default> </files> </Webtex_Giftcards> </modules> </translate> </frontend> <global> <rewrite> <giftcards_giftcards_index> <from><![CDATA[#^/customer/giftcards/#]]></from> <to>/giftcards/giftcards/</to> </giftcards_giftcards_index> <giftcards_giftcards_balance> <from><![CDATA[#^/customer/giftcards/balance/#]]></from> <to>/giftcards/giftcards/balance/</to> </giftcards_giftcards_balance> <giftcards_giftcards_print> <from><![CDATA[#^/customer/giftcards/print/#]]></from> <to>/giftcards/giftcards/print/</to> </giftcards_giftcards_print> <giftcards_giftcards_apply> <from><![CDATA[#^/customer/giftcards/apply/#]]></from> <to>/giftcards/giftcards/apply/</to> </giftcards_giftcards_apply> </rewrite> <models> <giftcards> <class>Webtex_Giftcards_Model</class> <resourceModel>giftcards_mysql4</resourceModel> </giftcards> <giftcards_mysql4> <class>Webtex_Giftcards_Model_Mysql4</class> <entities> <giftcards> <table>giftcards_card</table> </giftcards> <cardslist> <table>giftcards_cardlist</table> </cardslist> <order> <table>giftcard_order</table> </order> </entities> </giftcards_mysql4> <sales> <rewrite> <order>Webtex_Giftcards_Model_Sales_Order</order> </rewrite> </sales> </models> <resources> <giftcards_setup> <setup> <module>Webtex_Giftcards</module> <class>Mage_Catalog_Model_Resource_Eav_Mysql4_Setup</class> </setup> <connection> <use>core_setup</use> </connection> </giftcards_setup> </resources> <helpers> <giftcards> <class>Webtex_Giftcards_Helper</class> </giftcards> </helpers> <blocks> <giftcards> <class>Webtex_Giftcards_Block</class> </giftcards> </blocks> <events> <catalog_product_save_before> <observers> <webtex_giftcards_observer_catalog_product_save_after> <type>singleton</type> <class>giftcards/observer</class> <method>catalogProductSaveBefore</method> </webtex_giftcards_observer_catalog_product_save_after> </observers> </catalog_product_save_before> <order_cancel_after> <observers> <webtex_giftcards_observer_sales_order_cancel_after> <type>singleton</type> <class>giftcards/observer</class> <method>salesOrderCancelAfter</method> </webtex_giftcards_observer_sales_order_cancel_after> </observers> </order_cancel_after> <sales_order_payment_refund> <observers> <webtex_giftcards_observer_sales_order_creditmemo_refund> <type>singleton</type> <class>giftcards/observer</class> <method>saleOrderPaymentRefund</method> </webtex_giftcards_observer_sales_order_creditmemo_refund> </observers> </sales_order_payment_refund> <sales_order_save_after> <observers> <webtex_giftcards_observer_sales_order_save_after> <type>singleton</type> <class>giftcards/observer</class> <method>salesOrderSaveAfter</method> </webtex_giftcards_observer_sales_order_save_after> </observers> </sales_order_save_after> <sales_model_service_quote_submit_after> <observers> <webtex_giftcards_observer_checkout_type_onepage_save_order_after> <type>singleton</type> <class>giftcards/observer</class> <method>checkoutTypeOnepageSaveOrderAfter</method> </webtex_giftcards_observer_checkout_type_onepage_save_order_after> </observers> </sales_model_service_quote_submit_after> <core_block_abstract_to_html_after> <observers> <webtex_giftcards_observer_checkpriceiszero> <type>singleton</type> <class>giftcards/observer</class> <method>checkpriceiszero</method> </webtex_giftcards_observer_checkpriceiszero> </observers> </core_block_abstract_to_html_after> <sales_quote_collect_totals_after> <observers> <webtex_giftcards_discount_observer_testdiscountquote> <type>singleton</type> <class>giftcards/discount_observer</class> <method>testDiscountQuote</method> </webtex_giftcards_discount_observer_testdiscountquote> </observers> </sales_quote_collect_totals_after> </events> <template> <email> <giftcards_email_email_template translate="label" module="giftcards"> <label>Gift Card E-mail</label> <file>giftcard_email.html</file> <type>html</type> </giftcards_email_email_template> <giftcards_email_print_template translate="label" module="giftcards"> <label>Gift Card Print</label> <file>giftcard_print.html</file> <type>html</type> </giftcards_email_print_template> <giftcards_email_offline_template translate="label" module="giftcards"> <label>Gift Card Offline</label> <file>giftcard_offline.html</file> <type>html</type> </giftcards_email_offline_template> <giftcards_email_confirm_template translate="label" module="giftcards"> <label>Gift Card Confirm</label> <file>giftcard_confirm.html</file> <type>html</type> </giftcards_email_confirm_template> </email> </template> <catalog> <product> <type> <giftcards module="giftcards"> <label>Gift Card</label> <model>giftcards/product_type_giftcards</model> <price_model>giftcards/product_price</price_model> <is_qty>1</is_qty> <composite>0</composite> </giftcards> </type> </product> </catalog> <sales> <quote> <totals> <discount> <class>giftcards/discount</class> <after>subtotal,shipping</after> <before>grand_total</before> </discount> </totals> </quote> </sales> </global> <adminhtml> <sales> <order> <create> <available_product_types> <giftcards /> </available_product_types> </create> </order> </sales> </adminhtml> <default> <giftcards> <email> <email_template>giftcards_email_email_template</email_template> <print_template>giftcards_email_print_template</print_template> <offline_template>giftcards_email_offline_template</offline_template> <confirm_template>giftcards_email_confirm_template</confirm_template> </email> </giftcards> </default> <adminhtml><layout><updates><blog><file>webtex/giftcards/giftcards.xml</file></blog></updates></layout></adminhtml> <crontabs> <jobs> <schedule><cron_expr>0 1 * * *</cron_expr></schedule> <run><model>giftcards/observer::sendEmailByDeliveryDate</model></run> </jobs> </crontabs> </config> тем <?xml version="1.0"?> <config> <modules> <Webtex_Giftcards> <version>3.3.1</version> </Webtex_Giftcards> </modules> <admin> <routers> <giftcards> <use>admin</use> <args> <module>Webtex_Giftcards</module> <frontName>giftcards</frontName> </args> </giftcards> <adminhtml> <args> <modules> <Webtex_Giftcards before="Mage_Adminhtml">Webtex_Giftcards_Adminhtml</Webtex_Giftcards> </modules> </args> </adminhtml> </routers> </admin> <frontend> <routers> <checkout> <args> <modules> <Webtex_Giftcards before="Mage_Checkout">Webtex_Giftcards</Webtex_Giftcards> </modules> </args> </checkout> </routers> <layout> <updates> <giftcards> <file>giftcards.xml</file> </giftcards> </updates> </layout> <translate> <modules> <Webtex_Giftcards> <files> <default>Webtex_Giftcards.csv</default> </files> </Webtex_Giftcards> </modules> </translate> </frontend> <global> <rewrite> <giftcards_giftcards_index> <from><![CDATA[#^/customer/giftcards/#]]></from> <to>/giftcards/giftcards/</to> </giftcards_giftcards_index> <giftcards_giftcards_balance> <from><![CDATA[#^/customer/giftcards/balance/#]]></from> <to>/giftcards/giftcards/balance/</to> </giftcards_giftcards_balance> <giftcards_giftcards_print> <from><![CDATA[#^/customer/giftcards/print/#]]></from> <to>/giftcards/giftcards/print/</to> </giftcards_giftcards_print> <giftcards_giftcards_apply> <from><![CDATA[#^/customer/giftcards/apply/#]]></from> <to>/giftcards/giftcards/apply/</to> </giftcards_giftcards_apply> </rewrite> <models> <giftcards> <class>Webtex_Giftcards_Model</class> <resourceModel>giftcards_mysql4</resourceModel> </giftcards> <giftcards_mysql4> <class>Webtex_Giftcards_Model_Mysql4</class> <entities> <giftcards> <table>giftcards_card</table> </giftcards> <cardslist> <table>giftcards_cardlist</table> </cardslist> <order> <table>giftcard_order</table> </order> </entities> </giftcards_mysql4> <sales> <rewrite> <order>Webtex_Giftcards_Model_Sales_Order</order> </rewrite> </sales> </models> <resources> <giftcards_setup> <setup> <module>Webtex_Giftcards</module> <class>Mage_Catalog_Model_Resource_Eav_Mysql4_Setup</class> </setup> <connection> <use>core_setup</use> </connection> </giftcards_setup> </resources> <helpers> <giftcards> <class>Webtex_Giftcards_Helper</class> </giftcards> </helpers> <blocks> <giftcards> <class>Webtex_Giftcards_Block</class> </giftcards> </blocks> <events> <catalog_product_save_before> <observers> <webtex_giftcards_observer_catalog_product_save_after> <type>singleton</type> <class>giftcards/observer</class> <method>catalogProductSaveBefore</method> </webtex_giftcards_observer_catalog_product_save_after> </observers> </catalog_product_save_before> <order_cancel_after> <observers> <webtex_giftcards_observer_sales_order_cancel_after> <type>singleton</type> <class>giftcards/observer</class> <method>salesOrderCancelAfter</method> </webtex_giftcards_observer_sales_order_cancel_after> </observers> </order_cancel_after> <sales_order_payment_refund> <observers> <webtex_giftcards_observer_sales_order_creditmemo_refund> <type>singleton</type> <class>giftcards/observer</class> <method>saleOrderPaymentRefund</method> </webtex_giftcards_observer_sales_order_creditmemo_refund> </observers> </sales_order_payment_refund> <sales_order_save_after> <observers> <webtex_giftcards_observer_sales_order_save_after> <type>singleton</type> <class>giftcards/observer</class> <method>salesOrderSaveAfter</method> </webtex_giftcards_observer_sales_order_save_after> </observers> </sales_order_save_after> <sales_model_service_quote_submit_after> <observers> <webtex_giftcards_observer_checkout_type_onepage_save_order_after> <type>singleton</type> <class>giftcards/observer</class> <method>checkoutTypeOnepageSaveOrderAfter</method> </webtex_giftcards_observer_checkout_type_onepage_save_order_after> </observers> </sales_model_service_quote_submit_after> <core_block_abstract_to_html_after> <observers> <webtex_giftcards_observer_checkpriceiszero> <type>singleton</type> <class>giftcards/observer</class> <method>checkpriceiszero</method> </webtex_giftcards_observer_checkpriceiszero> </observers> </core_block_abstract_to_html_after> <sales_quote_collect_totals_after> <observers> <webtex_giftcards_discount_observer_testdiscountquote> <type>singleton</type> <class>giftcards/discount_observer</class> <method>testDiscountQuote</method> </webtex_giftcards_discount_observer_testdiscountquote> </observers> </sales_quote_collect_totals_after> </events> <template> <email> <giftcards_email_email_template translate="label" module="giftcards"> <label>Gift Card E-mail</label> <file>giftcard_email.html</file> <type>html</type> </giftcards_email_email_template> <giftcards_email_print_template translate="label" module="giftcards"> <label>Gift Card Print</label> <file>giftcard_print.html</file> <type>html</type> </giftcards_email_print_template> <giftcards_email_offline_template translate="label" module="giftcards"> <label>Gift Card Offline</label> <file>giftcard_offline.html</file> <type>html</type> </giftcards_email_offline_template> <giftcards_email_confirm_template translate="label" module="giftcards"> <label>Gift Card Confirm</label> <file>giftcard_confirm.html</file> <type>html</type> </giftcards_email_confirm_template> </email> </template> <catalog> <product> <type> <giftcards module="giftcards"> <label>Gift Card</label> <model>giftcards/product_type_giftcards</model> <price_model>giftcards/product_price</price_model> <is_qty>1</is_qty> <composite>0</composite> </giftcards> </type> </product> </catalog> <sales> <quote> <totals> <discount> <class>giftcards/discount</class> <after>subtotal,shipping</after> <before>grand_total</before> </discount> </totals> </quote> </sales> </global> <adminhtml> <sales> <order> <create> <available_product_types> <giftcards /> </available_product_types> </create> </order> </sales> </adminhtml> <default> <giftcards> <email> <email_template>giftcards_email_email_template</email_template> <print_template>giftcards_email_print_template</print_template> <offline_template>giftcards_email_offline_template</offline_template> <confirm_template>giftcards_email_confirm_template</confirm_template> </email> </giftcards> </default> <adminhtml><layout><updates><blog><file>webtex/giftcards/giftcards.xml</file></blog></updates></layout></adminhtml> <crontabs> <jobs> <schedule><cron_expr>0 1 * * *</cron_expr></schedule> <run><model>giftcards/observer::sendEmailByDeliveryDate</model></run> </jobs> </crontabs> </config> по <?xml version="1.0"?> <config> <modules> <Webtex_Giftcards> <version>3.3.1</version> </Webtex_Giftcards> </modules> <admin> <routers> <giftcards> <use>admin</use> <args> <module>Webtex_Giftcards</module> <frontName>giftcards</frontName> </args> </giftcards> <adminhtml> <args> <modules> <Webtex_Giftcards before="Mage_Adminhtml">Webtex_Giftcards_Adminhtml</Webtex_Giftcards> </modules> </args> </adminhtml> </routers> </admin> <frontend> <routers> <checkout> <args> <modules> <Webtex_Giftcards before="Mage_Checkout">Webtex_Giftcards</Webtex_Giftcards> </modules> </args> </checkout> </routers> <layout> <updates> <giftcards> <file>giftcards.xml</file> </giftcards> </updates> </layout> <translate> <modules> <Webtex_Giftcards> <files> <default>Webtex_Giftcards.csv</default> </files> </Webtex_Giftcards> </modules> </translate> </frontend> <global> <rewrite> <giftcards_giftcards_index> <from><![CDATA[#^/customer/giftcards/#]]></from> <to>/giftcards/giftcards/</to> </giftcards_giftcards_index> <giftcards_giftcards_balance> <from><![CDATA[#^/customer/giftcards/balance/#]]></from> <to>/giftcards/giftcards/balance/</to> </giftcards_giftcards_balance> <giftcards_giftcards_print> <from><![CDATA[#^/customer/giftcards/print/#]]></from> <to>/giftcards/giftcards/print/</to> </giftcards_giftcards_print> <giftcards_giftcards_apply> <from><![CDATA[#^/customer/giftcards/apply/#]]></from> <to>/giftcards/giftcards/apply/</to> </giftcards_giftcards_apply> </rewrite> <models> <giftcards> <class>Webtex_Giftcards_Model</class> <resourceModel>giftcards_mysql4</resourceModel> </giftcards> <giftcards_mysql4> <class>Webtex_Giftcards_Model_Mysql4</class> <entities> <giftcards> <table>giftcards_card</table> </giftcards> <cardslist> <table>giftcards_cardlist</table> </cardslist> <order> <table>giftcard_order</table> </order> </entities> </giftcards_mysql4> <sales> <rewrite> <order>Webtex_Giftcards_Model_Sales_Order</order> </rewrite> </sales> </models> <resources> <giftcards_setup> <setup> <module>Webtex_Giftcards</module> <class>Mage_Catalog_Model_Resource_Eav_Mysql4_Setup</class> </setup> <connection> <use>core_setup</use> </connection> </giftcards_setup> </resources> <helpers> <giftcards> <class>Webtex_Giftcards_Helper</class> </giftcards> </helpers> <blocks> <giftcards> <class>Webtex_Giftcards_Block</class> </giftcards> </blocks> <events> <catalog_product_save_before> <observers> <webtex_giftcards_observer_catalog_product_save_after> <type>singleton</type> <class>giftcards/observer</class> <method>catalogProductSaveBefore</method> </webtex_giftcards_observer_catalog_product_save_after> </observers> </catalog_product_save_before> <order_cancel_after> <observers> <webtex_giftcards_observer_sales_order_cancel_after> <type>singleton</type> <class>giftcards/observer</class> <method>salesOrderCancelAfter</method> </webtex_giftcards_observer_sales_order_cancel_after> </observers> </order_cancel_after> <sales_order_payment_refund> <observers> <webtex_giftcards_observer_sales_order_creditmemo_refund> <type>singleton</type> <class>giftcards/observer</class> <method>saleOrderPaymentRefund</method> </webtex_giftcards_observer_sales_order_creditmemo_refund> </observers> </sales_order_payment_refund> <sales_order_save_after> <observers> <webtex_giftcards_observer_sales_order_save_after> <type>singleton</type> <class>giftcards/observer</class> <method>salesOrderSaveAfter</method> </webtex_giftcards_observer_sales_order_save_after> </observers> </sales_order_save_after> <sales_model_service_quote_submit_after> <observers> <webtex_giftcards_observer_checkout_type_onepage_save_order_after> <type>singleton</type> <class>giftcards/observer</class> <method>checkoutTypeOnepageSaveOrderAfter</method> </webtex_giftcards_observer_checkout_type_onepage_save_order_after> </observers> </sales_model_service_quote_submit_after> <core_block_abstract_to_html_after> <observers> <webtex_giftcards_observer_checkpriceiszero> <type>singleton</type> <class>giftcards/observer</class> <method>checkpriceiszero</method> </webtex_giftcards_observer_checkpriceiszero> </observers> </core_block_abstract_to_html_after> <sales_quote_collect_totals_after> <observers> <webtex_giftcards_discount_observer_testdiscountquote> <type>singleton</type> <class>giftcards/discount_observer</class> <method>testDiscountQuote</method> </webtex_giftcards_discount_observer_testdiscountquote> </observers> </sales_quote_collect_totals_after> </events> <template> <email> <giftcards_email_email_template translate="label" module="giftcards"> <label>Gift Card E-mail</label> <file>giftcard_email.html</file> <type>html</type> </giftcards_email_email_template> <giftcards_email_print_template translate="label" module="giftcards"> <label>Gift Card Print</label> <file>giftcard_print.html</file> <type>html</type> </giftcards_email_print_template> <giftcards_email_offline_template translate="label" module="giftcards"> <label>Gift Card Offline</label> <file>giftcard_offline.html</file> <type>html</type> </giftcards_email_offline_template> <giftcards_email_confirm_template translate="label" module="giftcards"> <label>Gift Card Confirm</label> <file>giftcard_confirm.html</file> <type>html</type> </giftcards_email_confirm_template> </email> </template> <catalog> <product> <type> <giftcards module="giftcards"> <label>Gift Card</label> <model>giftcards/product_type_giftcards</model> <price_model>giftcards/product_price</price_model> <is_qty>1</is_qty> <composite>0</composite> </giftcards> </type> </product> </catalog> <sales> <quote> <totals> <discount> <class>giftcards/discount</class> <after>subtotal,shipping</after> <before>grand_total</before> </discount> </totals> </quote> </sales> </global> <adminhtml> <sales> <order> <create> <available_product_types> <giftcards /> </available_product_types> </create> </order> </sales> </adminhtml> <default> <giftcards> <email> <email_template>giftcards_email_email_template</email_template> <print_template>giftcards_email_print_template</print_template> <offline_template>giftcards_email_offline_template</offline_template> <confirm_template>giftcards_email_confirm_template</confirm_template> </email> </giftcards> </default> <adminhtml><layout><updates><blog><file>webtex/giftcards/giftcards.xml</file></blog></updates></layout></adminhtml> <crontabs> <jobs> <schedule><cron_expr>0 1 * * *</cron_expr></schedule> <run><model>giftcards/observer::sendEmailByDeliveryDate</model></run> </jobs> </crontabs> </config> по <?xml version="1.0"?> <config> <modules> <Webtex_Giftcards> <version>3.3.1</version> </Webtex_Giftcards> </modules> <admin> <routers> <giftcards> <use>admin</use> <args> <module>Webtex_Giftcards</module> <frontName>giftcards</frontName> </args> </giftcards> <adminhtml> <args> <modules> <Webtex_Giftcards before="Mage_Adminhtml">Webtex_Giftcards_Adminhtml</Webtex_Giftcards> </modules> </args> </adminhtml> </routers> </admin> <frontend> <routers> <checkout> <args> <modules> <Webtex_Giftcards before="Mage_Checkout">Webtex_Giftcards</Webtex_Giftcards> </modules> </args> </checkout> </routers> <layout> <updates> <giftcards> <file>giftcards.xml</file> </giftcards> </updates> </layout> <translate> <modules> <Webtex_Giftcards> <files> <default>Webtex_Giftcards.csv</default> </files> </Webtex_Giftcards> </modules> </translate> </frontend> <global> <rewrite> <giftcards_giftcards_index> <from><![CDATA[#^/customer/giftcards/#]]></from> <to>/giftcards/giftcards/</to> </giftcards_giftcards_index> <giftcards_giftcards_balance> <from><![CDATA[#^/customer/giftcards/balance/#]]></from> <to>/giftcards/giftcards/balance/</to> </giftcards_giftcards_balance> <giftcards_giftcards_print> <from><![CDATA[#^/customer/giftcards/print/#]]></from> <to>/giftcards/giftcards/print/</to> </giftcards_giftcards_print> <giftcards_giftcards_apply> <from><![CDATA[#^/customer/giftcards/apply/#]]></from> <to>/giftcards/giftcards/apply/</to> </giftcards_giftcards_apply> </rewrite> <models> <giftcards> <class>Webtex_Giftcards_Model</class> <resourceModel>giftcards_mysql4</resourceModel> </giftcards> <giftcards_mysql4> <class>Webtex_Giftcards_Model_Mysql4</class> <entities> <giftcards> <table>giftcards_card</table> </giftcards> <cardslist> <table>giftcards_cardlist</table> </cardslist> <order> <table>giftcard_order</table> </order> </entities> </giftcards_mysql4> <sales> <rewrite> <order>Webtex_Giftcards_Model_Sales_Order</order> </rewrite> </sales> </models> <resources> <giftcards_setup> <setup> <module>Webtex_Giftcards</module> <class>Mage_Catalog_Model_Resource_Eav_Mysql4_Setup</class> </setup> <connection> <use>core_setup</use> </connection> </giftcards_setup> </resources> <helpers> <giftcards> <class>Webtex_Giftcards_Helper</class> </giftcards> </helpers> <blocks> <giftcards> <class>Webtex_Giftcards_Block</class> </giftcards> </blocks> <events> <catalog_product_save_before> <observers> <webtex_giftcards_observer_catalog_product_save_after> <type>singleton</type> <class>giftcards/observer</class> <method>catalogProductSaveBefore</method> </webtex_giftcards_observer_catalog_product_save_after> </observers> </catalog_product_save_before> <order_cancel_after> <observers> <webtex_giftcards_observer_sales_order_cancel_after> <type>singleton</type> <class>giftcards/observer</class> <method>salesOrderCancelAfter</method> </webtex_giftcards_observer_sales_order_cancel_after> </observers> </order_cancel_after> <sales_order_payment_refund> <observers> <webtex_giftcards_observer_sales_order_creditmemo_refund> <type>singleton</type> <class>giftcards/observer</class> <method>saleOrderPaymentRefund</method> </webtex_giftcards_observer_sales_order_creditmemo_refund> </observers> </sales_order_payment_refund> <sales_order_save_after> <observers> <webtex_giftcards_observer_sales_order_save_after> <type>singleton</type> <class>giftcards/observer</class> <method>salesOrderSaveAfter</method> </webtex_giftcards_observer_sales_order_save_after> </observers> </sales_order_save_after> <sales_model_service_quote_submit_after> <observers> <webtex_giftcards_observer_checkout_type_onepage_save_order_after> <type>singleton</type> <class>giftcards/observer</class> <method>checkoutTypeOnepageSaveOrderAfter</method> </webtex_giftcards_observer_checkout_type_onepage_save_order_after> </observers> </sales_model_service_quote_submit_after> <core_block_abstract_to_html_after> <observers> <webtex_giftcards_observer_checkpriceiszero> <type>singleton</type> <class>giftcards/observer</class> <method>checkpriceiszero</method> </webtex_giftcards_observer_checkpriceiszero> </observers> </core_block_abstract_to_html_after> <sales_quote_collect_totals_after> <observers> <webtex_giftcards_discount_observer_testdiscountquote> <type>singleton</type> <class>giftcards/discount_observer</class> <method>testDiscountQuote</method> </webtex_giftcards_discount_observer_testdiscountquote> </observers> </sales_quote_collect_totals_after> </events> <template> <email> <giftcards_email_email_template translate="label" module="giftcards"> <label>Gift Card E-mail</label> <file>giftcard_email.html</file> <type>html</type> </giftcards_email_email_template> <giftcards_email_print_template translate="label" module="giftcards"> <label>Gift Card Print</label> <file>giftcard_print.html</file> <type>html</type> </giftcards_email_print_template> <giftcards_email_offline_template translate="label" module="giftcards"> <label>Gift Card Offline</label> <file>giftcard_offline.html</file> <type>html</type> </giftcards_email_offline_template> <giftcards_email_confirm_template translate="label" module="giftcards"> <label>Gift Card Confirm</label> <file>giftcard_confirm.html</file> <type>html</type> </giftcards_email_confirm_template> </email> </template> <catalog> <product> <type> <giftcards module="giftcards"> <label>Gift Card</label> <model>giftcards/product_type_giftcards</model> <price_model>giftcards/product_price</price_model> <is_qty>1</is_qty> <composite>0</composite> </giftcards> </type> </product> </catalog> <sales> <quote> <totals> <discount> <class>giftcards/discount</class> <after>subtotal,shipping</after> <before>grand_total</before> </discount> </totals> </quote> </sales> </global> <adminhtml> <sales> <order> <create> <available_product_types> <giftcards /> </available_product_types> </create> </order> </sales> </adminhtml> <default> <giftcards> <email> <email_template>giftcards_email_email_template</email_template> <print_template>giftcards_email_print_template</print_template> <offline_template>giftcards_email_offline_template</offline_template> <confirm_template>giftcards_email_confirm_template</confirm_template> </email> </giftcards> </default> <adminhtml><layout><updates><blog><file>webtex/giftcards/giftcards.xml</file></blog></updates></layout></adminhtml> <crontabs> <jobs> <schedule><cron_expr>0 1 * * *</cron_expr></schedule> <run><model>giftcards/observer::sendEmailByDeliveryDate</model></run> </jobs> </crontabs> </config> 

благодаря

Solutions Collecting From Web of "Magento: Fatal error: Class 'Mage_Giftcards_Helper_Data' не найден в … / app / Mage.php в строке 546"

Мой ответ очень похож на вопрос @Pedram Behroozi, я мог бы добавить его в качестве комментария, если бы не было странного ограничения репутации для комментариев.

Когда у меня возникла эта проблема, это было из-за путаницы над атрибутом «module» в adminhtml.xml.

 <config> <menu> <catalog> <children> <productfeed translate="title" module="productfeed"> <title>Product Data Feed</title> <action>adminhtml/productfeed/</action> <sort_order>90</sort_order> </productfeed> </children> </catalog> </menu> </config> 

Pedram не совсем корректен, когда говорит, что имя модуля должно быть строчным и без пространства имен. Когда вы предоставляете атрибут «translate», соответствующий атрибут «module» сообщает Magento, какой помощник должен использовать для этого перевода. Итак, важно то, что он точно соответствует имени узла внутри узла хелперов в файле config.xml. Моя была неправильной, потому что в этом узле я включил пространство имен:

 <config> <global> <helpers> <etw_productfeed> <class>Etw_Productfeed_Helper</class> </etw_productfeed> </helpers> </global> </config> 

В статье Алана Сторма «Admin Hello World Revisited» вы можете видеть, что он использует пространство имен в своих ссылках на модули, и это все еще работает. Таким образом, любой из способов в порядке, до тех пор, пока что в adminhtml.xml соответствует тому, что находится в config.xml.

Я столкнулся с этой ошибкой дважды, и в обоих случаях возникла проблема внутри моих xml-файлов.

Мои проблемы не закрывали тег (пример):

 <frontend> <routers> <!-- ... --> <routers> 

И указание атрибута module не так (в etc/adminhtml.xml ):

 <config> <menu> <report> <children> <foo_bar translate="title" module="bar"> <!-- module has to be lower case here and without the package name. Foo_Bar or Bar are wrong and cause the error. --> <title>My own report</title> <action>adminhtml/bar</action> </foo_bar> </children> </report> </menu> </config> 

Обратите внимание на комментарий в коде выше.

К сожалению, нет простого способа проверить xml-файлы для опечаток и ошибок, но один из способов будет частично комментировать коды и посмотреть, не исчезла ли ошибка.

Надеюсь, поможет.

Проверьте, включена ли компиляция из admin> system> Tools> compilation. Если вы добавили расширение без отключения компиляции, это может вызвать эту проблему. Очистите кеш и снова запустите процесс компиляции. Надеюсь, это может решить вашу проблему.

В вашем модуле config.xml вы должны определить узел Helpers, иначе он всегда будет искать Mage _… Вместо локального или сообщества

<global> <helpers> <mymodulename><class>XXX_YYY_Helper</class> </mymodulename> </helpers> </global>

Ваш вспомогательный класс должен быть таким,

 class Webtex_Giftcards_Helper_Data extends Mage_Core_Helper_Abstract{ // my methods } 

Проверьте класс расширения. Вы должны расширить свой класс от

 Mage_Core_Helper_Abstract 

Не из

 Mage_Core_Helper_Data 

вы забыли добавить frontName в frontend node

  <frontend> <routers> <giftcards> <use>standard</use> <args> <module>Webtex_Giftcards</module> <frontName>giftcards</frontName> </args> </giftcards> <checkout> <args> <modules> <Webtex_Giftcards before="Mage_Checkout">Webtex_Giftcards</Webtex_Giftcards> </modules> </args> </checkout> </routers> <layout> <updates> <giftcards> <file>giftcards.xml</file> </giftcards> </updates> </layout> </frontend> 

надеюсь, это поможет вам

Эта ошибка вызвана файлом автозагрузки. Чтобы его решить, не используйте «_» в имени файла где-нибудь, особенно в config.xml, поскольку он будет заменен на «/» и выбросит такие ошибки.

Пример: giftcard_confirm.html

Принудительное использование: giftcardconfirm.html

У меня такая же проблема. Я проверил свой config.xml и проверил свой макет xml:

  <layout> <updates> <module_name> <file>module_name.xml</file> </module_name> </updates> </layout> 
 I have done mistake in module_name.xml. I have remove that code which is not needed.