我正在开发Magento 1.6中的自定义SMS模块.
我已设置system.xml文件来管理相关的自定义配置字段.
菜单条目显示,但是当我单击它时,将显示404错误页面而不是预期的配置字段列表.
你能看到我的代码中有任何错误吗?
<config>
<tabs>
<mynew_tab translate="label">
<label>SMS Gateway Integration</label>
<sort_order>100</sort_order>
</mynew_tab>
</tabs>
<sections>
<smsconfig translate="label">
<label>SMS Gateway Integration</label>
<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>
<tab>mynew_tab</tab>
<groups>
<sms_group translate="label">
<label>My Custom Configurations</label>
<comment>This is example of custom configuration.</comment>
<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>
<sms_enabled translate="label tooltip comment">
<label>Is Enabled</label>
<frontend_type>select</frontend_type>
<source_model>adminhtml/system_config_source_yesno</source_model>
<sort_order>0</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Enable this module.</comment>
</sms_enabled>
<sms_username translate="label tooltip comment">
<label>Sender Email</label>
<frontend_type>text</frontend_type>
<sort_order>1</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Username of the SMS gateway.</comment>
</sms_username>
<sms_password translate="label …Run Code Online (Sandbox Code Playgroud) 我需要在Magento中获取当前页面标识符和当前模块.
我使用下面的代码.
Mage::app()->getRequest()->getModuleName() - To get current module.
Mage::getSingleton('cms/page')->getIdentifier() - To get current page
Run Code Online (Sandbox Code Playgroud)
它工作一次清除magento缓存,否则它显示旧页面和模块.
当我们检查主页时,它将"cms"作为模块,将"home"作为页面.现在我点击联系页面,它也显示相同的结果.
清除缓存并检查联系页面后,它将"cms"显示为模块,将"contact"显示为页面标识符.
如何获取当前页面标识符和模块每次没有清除缓存?
我正在使用magento ver-1.6开发一个网站.我尝试为客户注册创建新字段,但它没有创建.我按照与ver-1.5中所遵循的相同的方式进行操作.
1.6中创建客户字段的任何变化?
我正在使用Magento ver1.6.1.我需要获取商店的根类别.我在谷歌搜索没有得到任何好主意/代码.让我知道如何获得商店的根类别?
Mage::app()->getStore()->getRootCategoryId()
Run Code Online (Sandbox Code Playgroud)
上面的代码给出了默认的根类别,但我需要在商店创建过程中选择的类别ID.
我正在使用Magento ver1.6.1.我需要以编程方式清除Magento缓存.
Mage::app()->getCache()->clean()
Run Code Online (Sandbox Code Playgroud)
我使用上面的代码,但它没有清除缓存.
我正在使用Magento社区ver-1.5.1.0.
我想知道订单的发货日期,magento的可能性如何?