Magento Default System Configuration Values
Like this article? Frustrated by Magento? Then you’ll love Commerce Bug, the must have debugging extension for anyone using Magento. Whether you’re just starting out or you’re a seasoned pro, Commerce Bug will save you and your team hours everyday. Grab a copy and start working with Magento instead of against it. This is more of an addendum to my previous articles on the System Configuration system than an entirely new article. Go back and read up if anything’s over your head. When you create a new System Configuration path, Magento doesn’t store a default va......
magento -- 计划任务(cron job)在magento中的作用和使用教程
计划任务(cron job)是Magento系统中一个很有用甚至可以说必须使用的功能,而最近在网上跟人聊天发现很多Magento的使用者不知道这个功能或者知道却认为可有可无,我在这里建议各位Magento的使用者,把这个功能使用起来吧。 在之前关于Newsletter的那篇博文我有讲到,要使新闻 能按设定的时间自动发送,就必须设置好计划任务(cron job)。计划任务(cron job)简单的来说就是在系统中每隔一段时间来重复操作一件事,比如每隔多少时间清理日志,比如每天提交Sitemap给google等等......
Magento API / web service work
Magento has strong web service features. I can say Magento’s web service is one step ahead than others e-commerce. Magneto has soap, v2_soap(soap 2) and xmlrpc adapter facilities. Using magento web services you can synchronize customer, categories, products, orders etc data with existing stores. Here I am going to describe magento’s web service deals step by step. Setup API: At first create api user and api key from Magento’s admin. Follow below steps. 1. Create api user from admin->system->web services-> Users->Add New User->User Info. See picture. ......
magento file 树形结构
http://www.8tiny.com/source/magento/nav.html?index.html ......
Create Shipping Method Module
Introduction This tutorial is similar to Creation of Payment Method module, and differs the most in adapter model. Each shipping method can be done as separate module or few methods can be combined in same module if they share functionality or could be used together. Our new module will be called NewModule. Replace all instances of ‘NewModule’ with name of your module and ‘newmodule’ with simplified code, that contains only alphanumeric characters and underscore. Replace all instances of ‘YourCompany......
Create An External Database Connection in Magento
While I'm confident that many people in the Magenosphere have figured this one out, it took a whole Saturday night and part of my soul for me to achieve it. Hopefully, by presenting this code here, I can save you from the pain I endured :) Creating The Connection To create your connection, create a custom module and add the following to your config.xml. The code below is the bare minimum needed to get the external database connection working. ? 1 2 3 4 5 ......
Run Magento Code Externally
If you're working with Magento often you'll find sometimes you need to use Magento functions and classes outside of the Magento platform. This can be easily achieved with the following lines of code. ? 1 2 3 4 5 6 7 8 9 10 require_once('app/Mage.php'); //Path to Magento umask(0); Mage::app(); // Now you can r......
Accessing Static Blocks In Magento
Sometimes a client asks to be able to manage certain areas of their Magento ecommerce website that would usually require access to template files. While this is okay, most clients consider HTML a foreign language and would probably do more harm than good. To remedy this, a lot of developers would consider creating a custom module. While this isn't bad, sometimes it can require too much work if the client only wants to change one line of text! A much easier and quicker solution is to use a static block. Static Blocks can be included into your design in three main ways: Inside a ......
addAttributeToFilter Conditionals In Magento
addAttributeToFilter is a function that can be called on a product collection in Magento. In short, it adds a condition to the WHERE part of the MySQL query used to extract a product collection from the database. ? 1 2 3 4 $_products = Mage::getModel('catalog/product')->getCollection() ->addAttributeToSelect(array('name', 'product_url', 'small_image')) ->addAttributeToF......
- Page:13/26 258 Blogs
周日 | 周一 | 周二 | 周三 | 周四 | 周五 | 周六 |
文章分类
- 默认(751)
- 日志(47)
- 感悟(15)
- testIT(4)
- PHP_XML(5)
- PHP(78)
- 明星(1)
- 笑话(31)
- 毕业论文(2)
- 生活(60)
- HTML(11)
- CSS(6)
- 考研(3)
- JS(21)
- 简历(6)
- svn(3)
- 音乐(1)
- 学习(7)
- jQuery(9)
- 英语口语(9)
- 书籍(2)
- magento(258)
- apache(12)
- 创意(4)
- 设计(4)
- 休闲(1)
- IT咨询(11)
- 工作(23)
- ubuntu(21)
- bysoft(1)
- zend(1)
- web(2)
- software(1)
- sql(5)
- 娱乐(5)
- photoshop(3)
- zend framework(2)
- nginx(3)
- 小说(1)
- 名言(1)
- 牛人(1)
- Mysql(6)
- vim(2)
- wordpress(8)
- drupal(1)