magento分类下的博客

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)  |  浏览(5890)  |  评论(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)  |  浏览(3267)  |  评论(0)

国外专业magento教程

piaoling  2011-06-21 16:28:27

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

类别 :  magento(258)  |  浏览(3312)  |  评论(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)  |  浏览(3648)  |  评论(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)  |  浏览(3337)  |  评论(0)

Using Collections in Magento

piaoling  2011-06-17 15:39:42

链接地址:http://www.magentocommerce.com/wiki/5_-_modules_and_development/catalog/using_collections_in_magento Last modified by houtsnip on Fri, June 25, 2010 10:54 Edit this page | Old Revisions      Table of Contents Using Collection s in Magento Collection Manipulation Methods Varien_Data_Collection Varien_Data_Collection _Db Mage_Eav_Model_Entity_Collection ......

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

magento 技术博客

piaoling  2011-06-17 15:37:18

http://www.popo4j.com/category/magento.html ......

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

Creating or updating products with Magento SOAP v2 API - a very challenging adventure

piaoling  2011-06-16 16:30:54

In one of our current projects we have to set up a Magento shop for a customer. This project includes the development of an import / export interface to his ERP system. First, I had to make the decision which of the offered Magento Core API's I'll use: XML-RPC, SOAP or SOAP v2. I personally dislike XML-RPC webservices, so I had a closer look at the older SOAP API and the newer v2 one. Deciding between the two SOAP alternatives - or "start the fight with the SOAP v2 API" The biggest advantage of the older version is that is far better documented than the v2 interfa......

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

magento 为表添加列

piaoling  2011-06-16 11:07:01

$installer = $this; $installer->startSetup(); $installer->getConnection()->addColumn(     $installer->getTable('core_store_group'),     'pp_souche',     "VARCHAR(50) DEFAULT NULL" ); $installer->getConnection()->addColumn(     $installer->getTable('sales_flat_order'),     'pp_souche',     "VARCHAR(50) DEFAULT NULL" ); $installer->getConnection()->addColumn(     $installer->getTable('sales......

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

深入理解Magento – 第六章 – 高级Magento模型

piaoling  2011-06-15 13:59:50

我们讲过Magento有两种模型,简单模型和EAV(Entity Attribute Value)模型。上一章我们讲过所有的Magento模型都是继承自Mage_Core_Model_Abstract / Varien_Object。简单模型和EAV模型的区别在于资源模型(Model Resource)。虽然所有的资源模型都最终继承“Mage_Core_Model_Resrouce_Abstract”,但是简单模型是直接继承 “Mage_Core_Model_Mysql4_Abstract”,而EAV模型是直接继承 “Mage_Eav_Model_Entity_Abstract”。 Magento这么做是由它的道理的。对于大部分开发人员或者用户来说......

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

    文章分类