magento分类下的博客

option value magento

piaoling  2011-11-21 15:42:42

<?php class Bysoft_Catalog_Model_Adminhtml_Product extends Mage_Core_Model_Abstract{     public function getProductOptionArray($code,$storeId=0){         $option= array();         $entityTypeId=$this->getEntityTypeId('catalog_product');         $data = $this->prepareOptionData($code,$entityTypeId);         if(is_array($data)){             foreach ($data as $item){      &n......

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

Magento with MySQL Master/Slave Replication

piaoling  2011-11-11 11:35:22

Magento with MySQL Master/Slave Replication   lingrlongr   Total Posts:  18 Joined:  2009-06-07 Ignore user   I searched this forum and found posts, but no answers (nor replies, for that matter). I set up my local.xml file to enable the default_setup and default_read database connectio......

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

Performance is Key! - Notes on Magento’s Performance

piaoling  2011-11-11 11:33:35

Magento's performance is key. Over the past few months, we've dedicated significant resources to diagnose and optimize Magento's performance. Now that Magento's 1.0 feature set is mostly complete, we are glad to share some of our work and the effort that has gone towards the goal of making Magento fast and furious. We are extremely happy with the results of our testing and benchmarks. With such extensive features, functionality and flexibility performance may sometimes take a hit, and Magento is no exception to this rule. But there are performance gains in every incre......

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

cron magento

piaoling  2011-11-10 09:41:39

      计划任务(cron job)是Magento系统中一个很有用甚至可以说必须使用的功能,而最近在网上跟人聊天发现很多Magento的使用者不知道这个功能或者知道却认为可有可无,我在这里建议各位Magento的使用者,把这个功能使用起来吧。 在之前关于Newsletter的那篇博文我有讲到,要使新闻能按设定的时间自动发送,就必须设置好计划任务(cron job)。计划任务(cron job)简单的来说就是在系统中每隔一段时间来重复操作一件事,比如每隔多少时间清理日志......

类别 :  magento(258)  |  浏览(3689)  |  评论(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)  |  浏览(11684)  |  评论(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)  |  浏览(3631)  |  评论(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)  |  浏览(3146)  |  评论(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)  |  浏览(5652)  |  评论(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)  |  浏览(3504)  |  评论(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)  |  浏览(3248)  |  评论(0)
  • Page:5/26  258 Blogs
    <<
    >>
    20088
    周日 周一 周二 周三 周四 周五 周六

    文章分类