WordPress Integration
Easily integrate your WordPress blog with your Magento eCommerce store in a matter of minutes with this free Magento community extension. The module works with 1.3.*, 1.4* and 1.5.* versions of Magento as well as the Professional and Enterprise editions. Installation Choose which installation method is best for you, check the change log or the release archive. Install WordPress Magento Connect Manual Install Version Compatibility Rele......
Direct SQL Queries In Magento
Magento's use of data models provide a great way to access and modify data. Using aptly named methods and clever abstraction, Varien hide away the complex SQL needed to perform data operations. While this makes learning models easier, it often impacts the speed of the operation and therefore the responsiveness of your site. This is especially true when saving models that use the EAV architecture. More often that not, this cannot be avoided, however there are some situations where executing direct SQL queries would be simpler and much quicker. An example of this is updating product pric......
Create a Drop-Down of Countries
When I first needed to access a collection of countries in Magento I assumed it would work like all other data collections but was shocked to find that this wasn't the case. Rather than store country data in the database, Magento stores country data in an XML file and loads it in on each request. Fortunately though, there are some simple functions that we can use to access country names and codes in Magento. Get An Array of Country Names/Codes in Magento ? 1 2 3 4 5 ......
Add Custom Tabs to the Magento Product Admin
In Magento eCommerce, it is possible to add new attributes to product models and edit the values for these attributes on the Product edit page. This is fine if we only want to add standard data (attributes) to a product, but what if we wanted to do something more custom? While developing Fishpig's Magento WordPress Integration extension, I found a simple way to add custom tabs (and content) to the Magento product edit page. This article will show you how to develop a simple Magento custom module to do this. How the Custom Module Works The custom module we are about to make will make......
Category Navigation Listings in Magento
wrote an article a while about illustrating how to show categories in a tree format. The code could be altered to display categories, categories and the current category's subcategory or categories and all sub-categories. While this code works fine, I have recently stumbled on a much better, neater way to accomplish this. This method requires less database interaction and therefore should render faster on the frontend. Listing Categories in Magento 1.4.1.1 Firstly, you need to make sure the block that you're working is of the type catalog/navigation. If you're editing catalog/......
分享 我喜欢这些话,很激励人。特别是在我最失意的时候~
1、没有伞的孩子必须努力奔跑! .2、你不勇敢,没人替你坚强。 .3、如果心胸不似海,又怎能有海一样的事业。 .4、只有经历过地狱般的折磨,才有征服天堂的力量。只有流过血的手指才能弹出世间的绝唱。 5、流过泪的眼睛更明亮,滴过血的心灵更坚强! 6、志在山顶的人,不会贪念山腰的风景… 7、.前有阻碍,奋力把它冲开,运用炙热的激情,转动心中的期待,血在澎湃,吃苦流汗算什么。 8、对的,坚持;错的,放弃! 9、.宁愿跑起来被拌倒无数次......
php 判断数据类型
<? $str=1; $type=gettype($str); echo $type; ?> 返回的字符串的可能值为: “boolean”(从 PHP 4 起) “integer” “double”(由于历史原因,如果是浮点型则返回“double”,而不是“float”) “string” “array” “object” “resource”(从 PHP 4 起) “NULL”(从 PHP 4 起) “user function”(只用于 PHP ......
Magento: How to change order status programmatically?
Here, I will show you, how you can change your order status programmatically (with PHP coding). First, you need to load your order. If you have order id, you can load order in the following way:- $orderId = YOUR_ORDER_ID; $order = Mage::getModel('sales/order') ->load($orderId); If you have order increment id, you can load order in the following way:- ......
magento get distinct Data by sql
$order =Mage::getModel('sales/order')->getCollection()->addAttributeToSelect('pp_souche')->distinct(true)->getSelect(); $query = (string) $order; var_dump($query); $row = Mage::getSingleton('core/resource')->getConnection('core_read')->query($query)->fetchAll(); ......
- Page:52/145 1448 Blogs
周日 | 周一 | 周二 | 周三 | 周四 | 周五 | 周六 |
文章分类
- 默认(748)
- 日志(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)