自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(19)
  • 资源 (2)
  • 收藏
  • 关注

原创 magento add custom column to order grid

Add sales_flat_order.order_uuid columnexample:We are going to first copy the core file to a local directory, then code a bit.Copy /app/code/core/Mage/Adminhtml/Block/Sales/Order/Grid.php to /app/c

2012-10-10 16:44:09 1120

原创 magento custom category api (2) --- collectioninfo

获取指定分类信息,及所有改分类下的product信息查看custom api 配置请点击:magento custom api configuration /* Retrieve category collection info * * @param int $categoryId * @param string|int $store * @pa

2012-10-08 18:03:04 527

原创 magento custom category api (1) --- collectiontree

获取指定product category  id 自身及其所有子类信息/* Retrieve category collection tree * * @param int $parent * @param string|int $store * @return array */ public function collecti

2012-10-08 17:59:22 548

原创 magento custom product api(4) --- getallproducts

获取所有status 为true的product collection想看配置custom api请点击:magento custom api configuration/* * Retrieve All actived products */ public function getallproducts(){ $collection = Mage::getModel

2012-10-08 17:51:54 380

原创 magento custom product api (3) --- getupdatedproducts

获取指定时间之后的有更新的所有products collection至于api配置部分就不再重复,想看配置custom api请点击:magento custom api configuration/* * List of product that has been created or updated since a date * * @param

2012-10-08 17:48:59 394

原创 magento custom product api (2) --- getskubyurl

注意:首先要保证url key 唯一至于api配置部分就不再重复,想看配置custom api请点击:magento custom api configuration/* * Get product sku by url_key * @param string $urlKey * @param null $store * * @retu

2012-10-08 17:41:11 579

原创 magento custom api configuration

首先假设你的目录结构:-- PackageName -- ModuleName -- etc -- Model -- Scope -- Api.php -- Api -- v2.php -- controllers

2012-10-08 17:36:44 655

原创 magento custom product api (1)--- infomobile

本api是根据magento 自有api product.info改写而来,大家可以自己根据项目需求改写api返回内容。至于api配置部分就不再重复,想看配置custom api请点击:magento custom api configuration /** * Retrieve product info * * @param int|string

2012-10-08 16:22:52 714

原创 Get Product ID and Product Name in Magento

1) Product details from Product ID.<?php$model = Mage::getModel('catalog/product') //getting product model $_product = $model->load($productid); //getting product object for particular product id

2012-08-29 16:34:44 949

原创 Magento CMS pages - getting cms page content from URL key/identifier

$cmsPage = Mage::getModel('cms/page')->load('YourCustomUrlKey', 'identifier');$data = $cmsPage->getData();froeach($data as $k=>$v){ echo $k.'='.$v;}you can get the current CMS page title us

2012-08-29 16:26:44 799

转载 Get Reviews for a product in magento

Hi Guys,Here i have added some Magento Code for Get reviews collection or Reviews Summary collection data of a Product in Magento CMS. I hope it helps lot for beginners.$_reviews = Mage::getMode

2012-08-29 16:04:26 592

原创 create magento custom api

i.e. customer_account.login apidir pathPACKAGENAME                 ---Customer           ---etc             ---api.xml             ---config.xml             ---wsdl.xml        --

2012-08-24 11:54:16 1748

原创 Customize Magento using Event/Observer

CustomizeMagento using Event/Observer OOP way is overriding methods by subclassing Magento’s coreBlocks and ModelsEvent-Observer methodology, Magento has been programmed toraise events in crucia

2012-07-16 14:15:20 577

原创 Magento’s Class Instantiation Abstraction and Autoload

PHP Autoload function __autoload($class_name){   require('lib/'.strToLower($class_name).'.class.php');} Magento Autoload You cansplit all Magento classes into four parts that we’ll cal

2012-07-16 14:14:26 773

原创 MagentoSetup Resources

Adding the Setup Resource                             Bysoft_Weblog            Bysoft_Weblog_Model_Resource_Mysql4_Setup                            core_setup

2012-07-16 14:13:10 398

原创 Magento 学习记录(二)

Products :Simple ProductCustom Options in Simple Product:Setting up Configration and Attributes:在创建产品之前,有一个设置需要配置好:税务种类(Tax Class);除此之外,你要保证已经创建了分配到新建产品所需的产品属性(Attribute)和属性集(Attribute Set),产品的A

2012-07-11 14:32:09 920

原创 Magento 基础学习记录(一)

Category :       Is Anchor :             Yes:1.加锚的分类将在分类页中显示所有该分类产品同时,还显示其子目录的产品                  2.加锚的分类在分类页中左侧的层级式导航栏(Layered Navigation)会显示所有可以进行商品属性筛选的选择      Attribute Properties :

2012-07-11 14:31:38 767

翻译 magento 配置(一)

Magento 的配置系统就像是 Magento 的心脏, 支撑着 Magento 的运行。 这套配置系统掌管着几乎所有“module/model/class/template/etc”。它把整个Magento 系统抽象出来,用一个配置文件来描述。这里的“配置文件”并不是一个物理上存在的文件,而是 Magento 根据当前的系统状态动态生成的一段 XML。大多数的 PHP 开发者并不习惯于这样

2012-07-11 14:29:54 461

原创 MagentoModels and ORM Basics(summary)

Object Relational Mapping (ORM)Most Magento Models can categorized in one of two way.There’s a basic,ActiveRecord-like/one-object-one-table Model, andthere’s also anEntity Attribute Value (EAV) Mode

2012-07-11 14:25:07 346

139.jQuery源码分析-魔术方法.rar

139.jQuery源码分析-魔术方法.rar

2011-06-20

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除