category visible ,status enable in product collection

piaoling  2011-11-01 10:54:24

Mage::getSingleton('catalog/product_status')->addVisibleFilterToCollection($collection); Mage::getSingleton('catalog/product_visibility')->addVisibleInCatalogFilterToCollection($collection); ......

类别 :  magento(258)  |  浏览(3419)  |  评论(0)

Adding Multi-select Attributes using an Installer in Magento

piaoling  2011-10-14 10:50:30

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......

类别 :  magento(258)  |  浏览(5983)  |  评论(0)

About ckeditor.js file size

piaoling  2011-10-13 10:42:06

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 ......

类别 :  JS(21)  |  浏览(5328)  |  评论(0)

magetno collection filter

piaoling  2011-10-12 16:09:43

 $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......

类别 :  magento(258)  |  浏览(3857)  |  评论(0)

magetno reindex

piaoling  2011-10-11 09:57:41

$indexer    = Mage::getSingleton('index/indexer'); $process = $indexer->getProcessById(5); if ($process) {  $process->reindexEverything(); } ......

类别 :  magento(258)  |  浏览(3561)  |  评论(0)

magento category product count,salable

piaoling  2011-10-10 11:39:56

$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......

类别 :  magento(258)  |  浏览(4529)  |  评论(0)

brands home cms page

piaoling  2011-10-09 15:50:48

<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......

类别 :  magento(258)  |  浏览(4003)  |  评论(0)

10 个步骤让你成为高效的 Web 开发者

piaoling  2011-09-28 18:46:06

要成为高产、高效的Web开发者,这需要我们做很多工作,来提高我们的工作方式,以及改善我们的劳动成果。 下面是10个提高效率的步骤,虽然不能保证解决你在开发中的所有问题,但至少是非常实用的,可以简化你的Web开发流程,使开发的每一个环节快速、流畅。还可以帮助你节省大量的时间,以便开发更多、更好的项目。 1. 使用Web开发框架   一个良好的Web开发框架,可以帮助你 解决常见的Web开发问题,如标准的Web页面布局、Web表单处理、浏览器兼容性解决等)......

类别 :  IT咨询(11)  |  浏览(5078)  |  评论(0)

magento xml

piaoling  2011-09-26 11:56:52

        $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......

类别 :  magento(258)  |  浏览(3895)  |  评论(0)

锦江之星

piaoling  2011-09-22 16:16:54

锦江之星 (合肥金寨路中科大店)地址:‎ 安徽省 合肥 蜀山区 金寨路133号 ......

类别 :  默认(748)  |  浏览(3144)  |  评论(0)
  • Page:31/145  1448 Blogs
    <<
    >>
    20088
    周日 周一 周二 周三 周四 周五 周六

    文章分类