WordPress Integration

piaoling  2011-06-21 18:39:42

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......

类别 :  magento(258)  |  浏览(3533)  |  评论(0)

Direct SQL Queries In Magento

piaoling  2011-06-21 17:53:32

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......

类别 :  magento(258)  |  浏览(3992)  |  评论(3)

Create a Drop-Down of Countries

piaoling  2011-06-21 17:32:14

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 ......

类别 :  magento(258)  |  浏览(3187)  |  评论(0)

Add Custom Tabs to the Magento Product Admin

piaoling  2011-06-21 16:45:30

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......

类别 :  magento(258)  |  浏览(5842)  |  评论(1)

Category Navigation Listings in Magento

piaoling  2011-06-21 16:30:56

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/......

类别 :  magento(258)  |  浏览(3205)  |  评论(0)

国外专业magento教程

piaoling  2011-06-21 16:28:27

http://fishpig.co.uk/magento-tutorials/ ......

类别 :  magento(258)  |  浏览(3238)  |  评论(0)

分享 我喜欢这些话,很激励人。特别是在我最失意的时候~

piaoling  2011-06-20 21:57:04

1、没有伞的孩子必须努力奔跑! .2、你不勇敢,没人替你坚强。 .3、如果心胸不似海,又怎能有海一样的事业。 .4、只有经历过地狱般的折磨,才有征服天堂的力量。只有流过血的手指才能弹出世间的绝唱。 5、流过泪的眼睛更明亮,滴过血的心灵更坚强! 6、志在山顶的人,不会贪念山腰的风景… 7、.前有阻碍,奋力把它冲开,运用炙热的激情,转动心中的期待,血在澎湃,吃苦流汗算什么。 8、对的,坚持;错的,放弃! 9、.宁愿跑起来被拌倒无数次......

类别 :  生活(60)  |  浏览(4599)  |  评论(0)

php 判断数据类型

piaoling  2011-06-20 16:04:37

<? $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   ......

类别 :  PHP(78)  |  浏览(3814)  |  评论(0)

Magento: How to change order status programmatically?

piaoling  2011-06-20 14:50:55

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(258)  |  浏览(3575)  |  评论(0)

magento get distinct Data by sql

piaoling  2011-06-20 11:26:21

           $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(); ......

类别 :  magento(258)  |  浏览(3288)  |  评论(0)
  • Page:52/145  1448 Blogs
    <<
    >>
    20088
    周日 周一 周二 周三 周四 周五 周六

    文章分类