category visible ,status enable in product collection
Mage::getSingleton('catalog/product_status')->addVisibleFilterToCollection($collection); Mage::getSingleton('catalog/product_visibility')->addVisibleInCatalogFilterToCollection($collection); ......
Adding Multi-select Attributes using an Installer in Magento
I had to do a modification for a Magento install that required the use of adding a multi-select attribute. Most other people would just add the attribute by hand and forget about it, but I’m one for making the upgrade process easy. However, the Magento developers don’t seem to want you to know about it (or anything else for that matter, given the lack of documentation!!). Anyway, I eventually stumbled across a small snippet of code, and after a bit of tweaking to figure out where all the parameters went, the installer worked. Easy upgrading // File: app/code/lo......
About ckeditor.js file size
About ckeditor.js file size Discuss and participate of this important initiative project. About ckeditor.js file size by yanghuijun » Thu Apr 21, 2011 2:27 am my englisth is poor.so i hope developers can understand my words. ckeditor is a nice web text editor.but the ckeditor.js file size too big(350K).when page reference this file speed is too bad.so,Whether can streamline some file size? best regrads mr.yang china ......
magetno collection filter
$todayDate = Mage::app()->getLocale()->date()->toString(Varien_Date::DATETIME_INTERNAL_FORMAT); $this->_getProductCollection() ->addAttributeToFilter('news_from_date', array('or'=> array( 0 => array('date' => true, 'to' => $todayDate), &nb......
magetno reindex
$indexer = Mage::getSingleton('index/indexer'); $process = $indexer->getProcessById(5); if ($process) { $process->reindexEverything(); } ......
magento category product count,salable
$productCollection = $category->getProductCollection(); //product stock status is 1 that's in stock $productCollection->getSelect()->joinInner(array('pStock'=>'cataloginventory_stock_status'),"pStock.product_id=e.entity_id and pStock.stock_status=1","pStock.stock_status") ->columns('visibility','cat_inde......
brands home cms page
<div class="slide-show-home"><img src="{{media url='headpic/banner_5.jpg'}}" alt="" /></div> <div class="col-main" style="float: right; overflow: hidden; width: 718px;"> <div class="category-banner"><img src="{{media url="wysiwyg/product_list_img/c_nvzhuang_pink.jpg"}}" alt="" /></div> <div class="new-arrival">{{block type="bysoft_catalog/product_new" name="catalog.product.new" template="catalog/product/new.phtm......
10 个步骤让你成为高效的 Web 开发者
要成为高产、高效的Web开发者,这需要我们做很多工作,来提高我们的工作方式,以及改善我们的劳动成果。 下面是10个提高效率的步骤,虽然不能保证解决你在开发中的所有问题,但至少是非常实用的,可以简化你的Web开发流程,使开发的每一个环节快速、流畅。还可以帮助你节省大量的时间,以便开发更多、更好的项目。 1. 使用Web开发框架 一个良好的Web开发框架,可以帮助你 解决常见的Web开发问题,如标准的Web页面布局、Web表单处理、浏览器兼容性解决等)......
magento xml
$parser = new Varien_Convert_Parser_Xml_Excel(); $io = new Varien_Io_File(); $path = Mage::getBaseDir('var') . DS . 'export' . DS; $name = md5(microtime()); $file = $path . DS . $name . '.xml'; $fileName = 'orders.xml'; &nb......
- Page:31/145 1448 Blogs
周日 | 周一 | 周二 | 周三 | 周四 | 周五 | 周六 |
文章分类
- 默认(748)
- 日志(47)
- 感悟(15)
- testIT(4)
- PHP_XML(5)
- PHP(78)
- 明星(1)
- 笑话(31)
- 毕业论文(2)
- 生活(60)
- HTML(11)
- CSS(6)
- 考研(3)
- JS(21)
- 简历(6)
- svn(3)
- 音乐(1)
- 学习(7)
- jQuery(9)
- 英语口语(9)
- 书籍(2)
- magento(258)
- apache(12)
- 创意(4)
- 设计(4)
- 休闲(1)
- IT咨询(11)
- 工作(23)
- ubuntu(21)
- bysoft(1)
- zend(1)
- web(2)
- software(1)
- sql(5)
- 娱乐(5)
- photoshop(3)
- zend framework(2)
- nginx(3)
- 小说(1)
- 名言(1)
- 牛人(1)
- Mysql(6)
- vim(2)
- wordpress(8)
- drupal(1)