`
kirenenko04
  • 浏览: 145924 次
  • 性别: Icon_minigender_2
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
所有工具 1 .  机体内TF卡固件存放     a) 将机体内TF卡取出         b) 将机体内TF卡内容进行备份进电脑     
http://www.server110.com/vmware/201309/1705.html
Adding Field to Admin First we need to create the address attribute. There are two ways to do this one is through your module sql file or you can do it through directly through sql query. First we will see it through the module. In your module’s config.xml file, add this in the resource tag. &l ...
<?php class Bysoft_Export_Model_Order extends Mage_Core_Model_Abstract { protected function _construct(){ $this->_init("export/order"); $this->_write = Mage::getSingleton('core/resource')->getConnection('core_write'); } public fu ...
/** * Write item data to csv export file * * @param Varien_Object $item * @param Varien_Io_File $adapter */ function _exportCsvItem(Varien_Object $item, Varien_Io_File $adapter) { $row = array(); foreach ($this->_columns as $column) { if (!$column->get ...

我叫你不出红叉

提莫一大早就高高兴兴的出门了,走着走着遇到了盖伦,盖伦一把抓住提莫,啪啪!抽了他两个大嘴巴,然后说:“我叫你不出红叉!”   第二天,提莫出了红叉又出门了,走着走着又遇见了盖伦,盖伦又一把抓过提莫,啪啪!抽了他两个大嘴巴:“我让你出红叉!”提莫非常郁闷,就跑到皇子那里去投诉盖伦,皇子听了提莫的投诉说,你放心好了,我会帮助你的。皇子找来了盖伦对他说:“盖伦啊,咱俩是多年的好朋友了,今天上午提莫来投诉你,说你没事找事老是欺负他,你看你能不能换个理由揍他,比如你可以说‘提莫,你去给我买个眼来
While developing an extension recently I came across the need to add the ability to allow changes on a store view level. To start off with I wanted to make sure this functioned the same as the built store view selection, to make it easy on the end user (take a look at how store view is handled with ...
public function get_random_same_cate_products() { $_product = $this->getProduct(); $categoryIds = $_product->getCategoryIds(); if(count($categoryIds) ){ foreach ($categoryIds as $cid) { $_category = Mage::getModel('catalog/category')->load($cid); if ($_category->g ...
public function checkPassword($pwd) { if (strlen($pwd)>30 || strlen($pwd)<6) { return array('status'=>false,'msg'=>$this->__('The length of password must be 6 to 30.')); } if(preg_match("/^\d*$/",$pwd)) { return array('statu ...
Sometimes you want to enable IE only stylesheets for Magento. The problem is that the documentation to accomplish this is somewhat lacking. I decided to shed some light on a solution to help you out on your journey to success. It’s a simple solution for IE 6, 7, 8 and 9! In order to understand thes ...
The solution is to use a 'Finset'  query such as: $this->_productCollection->addAttributeToFilter("make", array("finset"=>"38")); A discussion can be seen here: http://www.magentocommerce.com/boards/viewthread/201312/ And a list of different options: http ...
1. add compare html elem:   <!-- compare box --> <div class="compare-box"> <?php echo $this->__('compare')?> <a class="compare-a <?php echo $this->getCompareClass($_product->getId());?>&q ...
首先是这些非英文字符的编码范围: 这里是几个主要非英文语系字符范围 2E80~33FFh:中日韩符号区。收容康熙字典部首、中日韩辅助部首、注音符号、日本假名、韩文音符,中日韩的符号、标点、带圈或带括符文数字、月份 ...
1.add new product attribute <?php //增加一个是否预售的属性,到所有商品 $installer = $this; /* @var $installer Mage_Core_Model_Resource_Setup */ $installer->startSetup(); $objCatalogEavSetup = Mage::getResourceModel('catalog/eav_mysql4_setup', 'core_setup'); //添加jd URL $attrCode = 'jd_url'; $lab ...
1. clean function in controller : //clecn all products in compare list public function cleanajaxAction() { $items = Mage::getResourceModel('catalog/product_compare_item_collection'); if (Mage::getSingleton('customer/session')->isLoggedIn()) { $items->setCustomerId(Mage::getSingle ...
Global site tag (gtag.js) - Google Analytics