- 博客(5)
- 资源 (3)
- 收藏
- 关注
转载 magento上插入、编辑、删除、查询语法
It is very easy to select, insert, delete and update therecord in magento site. following functions are helpful in magento site fordatabase queries. You can also use this function outside magento envi
2012-01-31 15:57:57 1418
转载 Magento 常用技巧与方法
1:获取session $session = Mage::getSingleton('customer/session'); 2:Request对象 Mage::app()->getRequest() 3:调用Model对象 Mage::getModel('infinity/model'); 4:获取当前时间 Mage::getModel('core/date')->date();d
2012-01-31 14:52:17 2080
原创 Magento连接数据库查询想要的数据
$connection = Mage::getSingleton('core/resource')->getConnection('core_read'); $select = $connection->select() ->from('catalog_product_entity', array('*')) // 选择查询所有字段,如果只想查询一个字段,把*改成字段名 ->where('e
2012-01-31 14:46:28 1487
转载 magento获取指定目录分类的子分类
if($category->hasChildren()) { //判断是否有子目录 $ids = $category->getChildren(); //提取子目录id清单 $subCategories = Mage::getModel('catalog/category')->getCollection(); $subCategories->getSelect()->w
2012-01-31 11:05:16 1476 1
转载 获得当前分类ID,产品详细信息页面得到当前产品默认商店的的商品名称
1 产品详细信息页面得到当前产品默认商店的的商品名称 ---NAME,和链接 $storeId = Mage::app()->getStore()->getId(); if($storeId!=1){ $product = Mage::getModel('catalog/product') ->setStoreId(1) ->lo
2012-01-31 11:00:22 1592
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人