- 博客(17)
- 资源 (1)
- 收藏
- 关注
转载 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
2014-09-30 20:16:36 747
转载 magento 忘记密码
UPDATE admin_user SET password=CONCAT(MD5('sGnewpass'), ':sG') WHERE username='AdminUsername';
2014-09-24 17:50:54 402
原创 magento 判断product 是否 instock
$product=Mage::getModel('catalog/product')->load(123);$inStock=Mage::getModel('cataloginventory/stock_item')->loadByProduct($product)->getIsInStock();
2014-09-23 20:27:58 501
转载 magento get url and dir
This post help you to get url, directory path, to get module URL. This is very basic post, that will help to beginners.Get Base URL Mage::getBaseUrl() => Get base url path e.g. http://yourwebsit
2014-09-21 16:00:10 701
原创 magento sql 获取指定产品的指定属性值
SELECT e.sku,a.attribute_code,v.value,v.store_id FROM catalog_product_entity_decimal v, eav_attribute a,catalog_product_entity e where e.entity_id=v.entity_id and a.attribute_id=v.attribute_id and e.
2014-09-19 20:02:48 337
原创 magento 如何获取admin的用户名和邮箱
$from_email = Mage::getStoreConfig('trans_email/ident_general/email'); //fetch sender email Admin$from_name = Mage::getStoreConfig('trans_email/ident_general/name'); //fetch sender name Admin
2014-09-14 20:21:35 763
转载 magento 获取当前store的信息
// Gets the current store's details$store= Mage::app()->getStore(); // Gets the current store's id$storeId= Mage::app()->getStore()->getStoreId(); // Gets the current store's code$st
2014-09-14 20:04:18 1357
转载 magento 判断是否为可配置产品
$product=Mage::getModel()$product->getTypeId==='configurable'
2014-09-13 19:36:22 656
转载 magento 获取产品库存
1. Load product by product ID$id = 52;$_product = Mage::getModel('catalog/product')->load($id);2. Load product by SKU$sku = "mic
2014-09-13 19:22:03 776
原创 magento “include(Mage/Customemail/Helper/Data.php) cant open the file”
class Package_Test_Helper_Data extends Mage_Core_Helper_Abstract{}and in config.xml Package_Test_Helper in your config.xml should be eno
2014-09-11 21:41:42 470
转载 从数据库中搜索包含一个字段的所有表
SELECT TABLE_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME = '字段名' SELECT TABLE_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME = '字段名'
2014-09-07 20:59:01 763
转载 yum 常用参数
yum(全称为 Yellow dog Updater, Modified)是一个在Fedora和RedHat以及SUSE中的Shell前端软件包管理器。基於RPM包管理,能够从指定的服务器自动下载RPM包并且安装,可以自动处理依赖性关系,并且一次安装所有依赖的软体包,无须繁琐地一次次下载、安装。yum提供了查找、安装、删除某一个、一组甚至全部软件包的命令,而且命令简洁而又好记。yum的命令
2014-09-04 19:40:21 390
原创 centos 更新php、设置xdebug
1. 查询当前所安装的php包1、使用命令 rpm -qa|grep 列出需要卸载的软件包rpm -qa|grep php
2014-09-04 15:20:04 1301
原创 magento sorting varchar 字段排序问题
$this->_productCollection = $layer->getProductCollection() ->setOrder('sorting','DESC');$this->_productCollection->getSelect()->reset(Zend_Db_Select::ORDER);$this->_productCollectio
2014-09-01 20:10:17 413
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人