video activity

piaoling  2011-11-01 15:57:39

付费文章,点击进入查看......

类别 :  日志(47)  |  浏览(0)  |  评论(0)

magento product collection filter by status and visibility

piaoling  2011-11-01 11:22:03

Hello, I am trying to create a product feed. When I load the product collection, any filter I try to not include disabled product do not work. Code: <?php require_once \'app/Mage.php\'; umask(0); Mage::app(\'default\'); $products = Mage::getModel(\'catalog/product\')->getCollection(); $products->addAttributeToSelect(\'*\'); //$products->addAttributeToFilter(\'stat......

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

magento Filter Google Base based on product status [SOLVED]

piaoling  2011-11-01 11:05:47

class Mage_GoogleBase_Block_Adminhtml_Items_Product extends Mage_Adminhtml_Block_Widget_Grid {     public function __construct()     {         parent::__construct();         $this->setId('googlebase_selection_search_grid');         $this->setDefaultSort('id');         $this->setUseAjax(true);     }   &nbs......

类别 :  magento(258)  |  浏览(4005)  |  评论(2)

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)  |  浏览(3519)  |  评论(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)  |  浏览(6087)  |  评论(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)  |  浏览(5524)  |  评论(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)  |  浏览(3972)  |  评论(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)  |  浏览(3665)  |  评论(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)  |  浏览(4628)  |  评论(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)  |  浏览(4113)  |  评论(0)
  • Page:31/146  1451 Blogs
    <<
    >>
    20088
    周日 周一 周二 周三 周四 周五 周六

    文章分类