magento分类下的博客

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)  |  浏览(4204)  |  评论(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)  |  浏览(3684)  |  评论(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)  |  浏览(3562)  |  评论(0)

magento errors

piaoling  2011-09-08 17:12:15

2011-09-08T07:42:17+00:00 ERR (3): exception 'Varien_Exception' with message 'Invalid method Mage_Wishlist_Model_Item::isGrouped(Array ( ) )' in D:\wamp\www\salesteampro\1600\lib\Varien\Object.php:652 Stack trace: #0 [internal function]: Varien_Object->__call('isGrouped', Array) #1 D:\wamp\www\salesteampro\1600\app\design\frontend\base\default\template\catalog\product\price.phtml(51): Mage_Wishlist_Model_Item->isGrouped() #2 D:\wamp\www\salesteampro\1600\app\code\core\Mage\Core\Block\Template.php(241): include('D:\wamp\www\sal...') #3 D:\wamp\www......

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

Magento利用input type=”file”上传图片

piaoling  2011-09-06 14:48:26

Magento利用input type=”file”上传图片  2011 年 09 月 02 日 暂时没有发现Magentoe使用input type=”file”上传图片的功能,自行研究了一番,总算有点收获。现在把我研究的东东分享出来,给有需要的同仁参考一下。 首先在模板文件加个表单,内容如下: <form action=”<?php echo $this->getUploadFile();?>” method=”post” enctype=”multipart/form-data”> <input type=”file” name=”upload_file”><br/> <input ......

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

magento event list

piaoling  2011-09-05 13:13:26

file prefix event name postfix comment core/Mage/Adminhtml/Controller/Action.php   adminhtml_controller_action_predispatch_start     core/Mage/Adminhtml/controllers/Catalog/CategoryController.php   catalog_controller_category_delete     core/Mage/Adminhtml/controllers/Catalog/CategoryController.php   category_move &n......

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

magento addfieldtofilter

piaoling  2011-08-24 12:11:45

$collection = $this->_addProductAttributesAndPrices($collection)             ->addStoreFilter()             ->addFieldToFilter(array(array('attribute'=>'produit_a_la_une','eq'=>'1')))             ->setPageSize(6)             ->setCurPage(1) ......

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

Image Upload Failure on Magento Product Page

piaoling  2011-08-18 14:06:53

We’ve have been informed of a problem in the Magento back-end, whereby users’ are having problems trying to upload images to a product. Unlike another error where the user cannot see the browse box after clicking “Browse” – this time, users are able to browse for the image and upload it – however the image just simply add itself to the image list. Similarly, you may also find that if anything is clicked (aside from the left colun links), you may be booted out to the admin login screen. Once you re-log in you’ll find that image is nowhere to be seen ......

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

add attribute to category

piaoling  2011-08-17 11:20:16

<?php /**  * Magento Enterprise Edition  *  * NOTICE OF LICENSE  *  * This source file is subject to the Magento Enterprise Edition License  * that is bundled with this package in the file LICENSE_EE.txt.  * It is also available through the world-wide-web at this URL:  * http://www.magentocommerce.com/license/enterprise-edition  * If you did not receive a copy of the license and are unable to  * obtain it through the world-wide-web, please send an email  * to license@magentocommerce.com so we can send you a copy immediately......

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

add attribute to eav attribute

piaoling  2011-08-16 16:36:50

<?php /**  * Magento Enterprise Edition  *  * NOTICE OF LICENSE  *  * This source file is subject to the Magento Enterprise Edition License  * that is bundled with this package in the file LICENSE_EE.txt.  * It is also available through the world-wide-web at this URL:  * http://www.magentocommerce.com/license/enterprise-edition  * If you did not receive a copy of the license and are unable to  * obtain it through the world-wide-web, please send an email  * to license@magentocommerce.com so we can send you a copy immediately......

类别 :  magento(258)  |  浏览(3970)  |  评论(0)
  • Page:6/26  258 Blogs
    <<
    >>
    20088
    周日 周一 周二 周三 周四 周五 周六

    文章分类