magento随机显示产品-可在cms中调用
magento随机显示产品-可在cms中调用 在可以cms静态块中调用,可以以在产品页面插入, 1.建立phtml文件, 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 <?php $chosen_category = Mage::getModel('catalog/category')->load($this->getCategoryId()); $_helper = $this->helper('catalog/output'); $_productCollection = $this......
htaccess
#RewriteBase /magento/ RewriteCond %{REQUEST_URI} ^/$ [NC] RewriteRule (.*) http://www.magento1510.com/default/$1 [R=301,L] rewrite index.php to default store index cms page......
still display attributes in layer
app/code/core/Mage/Catalog/Model/Layer/Filter/Attribute.php public function apply(Zend_Controller_Request_Abstract $request, $filterBlock) { $filter = $request->getParam($this->_requestVar); if (is_array($filter)) { return $this; } $text = $this->_getOptionText($filter); if ($filter && $text) { $this->_getResource()->applyFilterToCollection($this, $filter); $this->getLayer()->getState()->addFilter($this->_createItem($text, $filter)); //注释掉下面这行 // $this......
phpmyadmin
<?php /* Servers configuration */ $i = 0; /* Server: localhost [1] */ $i++; $cfg['Servers'][$i]['verbose'] = 'localhost'; $cfg['Servers'][$i]['host'] = 'localhost'; $cfg['Servers'][$i]['port'] = ''; $cfg['Servers'][$i]['socket'] = ''; $cfg['Servers'][$i]['connect_type'] = 'tcp'; $cfg['Servers'][$i]['extension'] = 'mysqli'; $cfg['Servers'][$i]['auth_type'] = 'config'; $cfg['Servers'][$i]['user'......
草头格习字 让您练得一手好字!
分享到: http://demohour.com/projects/302573 草头格,一种新型练字格,摒弃传统田字格、米字格的低效甚至贻害,适合任何年龄段的人练习写字,写一手好字。 关于我 我,徐长辉,70后。同事们多是80、90后,都亲昵地称我为“老徐”。 从事书法教育培训多年,眼见上大学的越来越多了,可是能写出一手好字的越来越少了,甚急。总想着怎样让更多的人轻轻松松地写一手好字......
magento varian form datetime,date
$dateFormatIso = 'yyyy-M-d HH:mm:ss'; $fieldset->addField( 'start_time', 'date', array( 'name' => 'start_time', 'time' => true, &nb......
magento date
$date="2012-7-18 14:00:00"; $change= Mage::getModel('core/date')->gmtDate("Y-m-d H:i:s", $date); Zend_Debug::dump($change); Zend_Debug::dump(Mage::getModel('core/date')->date("Y-m-d H:i:s", $change)); die(); ......
- Page:22/146 1460 Blogs
周日 | 周一 | 周二 | 周三 | 周四 | 周五 | 周六 |
文章分类
- 默认(760)
- 日志(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)