logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

magento admin module -- part-1

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

magento获取指定attribute collection

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

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

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

magento中打印运行的SQL语句

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

简单教你修改magento topLink

一般会在local.xml下:1、新增链接My AccountMy Account10Log InLog In100Log OutLog Out100wishlist_link2、自定义链接<!-- Add custom links. Pre

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

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

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

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

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

到底了