自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(23)
  • 资源 (1)
  • 收藏
  • 关注

翻译 Magento Admin Module – Part-3

这篇文件,将要介绍如何创建admin formsadmin forms

2014-05-29 16:44:54 881

翻译 Magento Admin Module – Part2

这篇文字,我将会介绍一写admin grid里面

2014-05-29 10:44:39 1006

翻译 magento admin module -- part-1

首先在你自定义的Bloc创建Adminhtml

2014-05-22 15:02:59 877

原创 magento 开发 -- 用户自定义发送邮件

以退货之后发送邮件给客服,

2014-05-14 15:13:00 829

原创 magento 开发 -- 新增一个简单的退货流程

1.1.1     功能描述1.1.1     功能描述

2014-05-14 14:56:52 1054

原创 Magento Observer for order state is complete events

当订单的状态为complete 的时候,我们想去处理一些事情,可以通过observer来实现,使用"sales_order_save_commit_after" or "sales_order_invoice_pay" observer然后我们可以获取订单的状态(order status),根据订单的状态去实现你的需求,例子如下:config.xml中配置// for event sa

2013-12-26 17:50:42 1395

转载 Magento shows blank/empty page. How do I solve this?

SymptomsBlank page or white screen is shown in Magento Frontend, Backend or Magento Connect Manager. CauseIf you see a blank page / white screen opening your Store in browser, it indicatesthat

2013-12-26 10:17:33 1730

翻译 How to create Magento invoice from order

Maybe you want to create an invoice from some custom script or through cron script. Here is one very useful example of code.First of all, we have to load some order over model “sales/order”, this is

2013-12-25 11:39:58 774

原创 轻松搞定facebook、twitter、google_plus等分享按钮

Facebook Twitter Google+ Share

2013-10-24 09:08:33 2618

原创 magento 安装错误server not found 的解决方法

当我在安装magento的时候,在地址栏输入localhost/magento,出现 'server not found'.的错误,其他的项目都是OK的,在网上找了很多的资料,终于发现了一个正确的解决方法:在你项目的文件夹下,例如我的 C:\wamp\www\magento\app\code\core\Mage\Core\Controller\Varien\Router文件夹下找到Admin.ph

2013-10-21 21:28:55 1284

转载 Windows 7中安装SQL2005提示IIS未安装 解决办法 .

在Windows 7系统中安装SQL Server 2005时,可能会收到一个警告:提示IIS未安装或者未启用。在通过“控制面板”的“打开或关闭Windows功能”按默认设置安装IIS后,发现仍有这个提示,其原因在于IIS的默认安装设置未安装某些组件,因此只需要在默认安装时再选中以下组件(必须都安全才可以):组件所属列表静态内容常见H

2013-09-09 22:24:37 838

原创 遍历目录将目录中以.php为后缀名的文件改为.txt

最近想研究一个cms的代码,想把代码转换成文本格式放到手机中看,太多文件不想去改后缀,所以自己就写了一个脚本,很简单,贴出来分享一下function php2txt($dir){ $items = scandir($dir) ; foreach ($items as $item){ if ($item=='.' || $item=='..'){ continue;

2013-09-08 22:37:43 1064

转载 Magento 500 错误 How to Solve Magento 500 Internal Server Errors

Many users encounter some weird Magento 500 Internal Server Errors (Error type 500). I will try to list the most common solutions. These errors are not always caused by the same reason. You should try

2013-09-03 21:30:14 1056

翻译 简单教你修改magento topLink

一般会在local.xml下:1、新增链接 My AccountMy Account10 Log InLog In100 Log OutLog Out100 wishlist_link 2、自定义链接 <!-- Add custom links. Pre

2013-08-26 15:29:23 1215

原创 get the tax rate of a product的几种方法搜集

1、获取产品加上税之后的价格:$_finalPriceInclTax = Mage::helper(’tax’)->getPrice($_product, $_product->getFinalPrice(), true); 2、获取产品的税率方法一:// Get the product's tax class' ID $taxClassId = $_product

2013-08-26 15:20:28 869

翻译 magento How to get all associated children product of a configurable product

get associated productIds(获取configurable product关联的simple product id):$childIds = Mage::getModel('catalog/product_type_configurable')->getChildrenIds($_product->getId());get associated products(获取co

2013-08-26 15:14:09 631

原创 magento格式化价格 获取stockqty get media agllery images

1、magento格式化价格$formattedPrice = Mage::helper('core')->currency($finalPrice, true, false);2、magento 获取stockqtyMage::getModel('cataloginventory/stock_item')->loadByProduct($simple)->getQty();3、get

2013-08-26 15:10:37 1438

原创 magento获取 category

1、magento获取root category$_rootCateId=Mage::App()->getStore()->getRootCategoryId();$cate=Mage::getModel('catalog/category')->load($_rootcatID);2、获取父分类集合$parentCategorys=$cate->getParentCategories(

2013-08-26 15:05:26 803

翻译 magento中打印运行的SQL语句

使用colleciton->getSelectSql()输出运行的SQL语句$collection = Mage::getModel('catalog/category')->getCollection(); echo $collection->getSelectSql(true); $collection->getSelectSql()->__toString();magento获取

2013-08-26 15:03:00 822

原创 magento中使用group,order by,limit

magento中使用分组group$collection->getSelect()->group('entity_id'); $collection->groupByAttribute('entity_id');对模型对应的表集合进行排序$collection = Mage::getModel('module/model_name')->getCollection(); $collec

2013-08-26 15:01:03 1617

翻译 magento获取指定attribute collection

获取产品的指定属性集合$attribute = Mage::getModel('eav/config')->getAttribute('catalog_product', 'color');获取产品属性当前的值(用于获取前台)$type=$attribute->getFrontend()->getValue($_product);

2013-08-26 14:57:19 892

翻译 如何改变magento中货币符号的位置

Magento 1.7 use the currency format of Zend Framework. To change currency format, you have edit the locale xml file located into the directory lib/Zend/Locale/DataFor example, to pot the currency sy

2013-08-26 14:51:48 1013

原创 magento 各种获取URL总结

1、Get Base URL Mage::getBaseUrl() => Get base url path e.g. http://yourwebsite.com/ Mage::getBaseUrl('media') => Get MEDIA folder path e.g. http://yourwebsite.com/media/ Mage::getBaseUrl('js') => Ge

2013-08-26 14:44:47 1595

模仿QQ空间发表说说的DIV编辑框

模仿QQ空间发表说说的DIV编辑框,可实现发表心情图片即时显示图片,而不是用字符代替的,可兼容火狐,chrome,IE7以上

2014-03-22

空空如也

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

TA关注的人

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