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......
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......
magento errors
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利用input type=”file”上传图片
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 event list
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 addfieldtofilter
$collection = $this->_addProductAttributesAndPrices($collection) ->addStoreFilter() ->addFieldToFilter(array(array('attribute'=>'produit_a_la_une','eq'=>'1'))) ->setPageSize(6) ->setCurPage(1) ......
Image Upload Failure on Magento Product Page
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 ......
add attribute to category
<?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......
add attribute to eav attribute
<?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......
- Page:6/26 258 Blogs
周日 | 周一 | 周二 | 周三 | 周四 | 周五 | 周六 |
文章分类
- 默认(751)
- 日志(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)