- 博客(22)
- 资源 (20)
- 收藏
- 关注
原创 piwik 参考资料
http://www.cnblogs.com/bourneli/archive/2013/01/04/2844736.html
2014-05-31 13:58:39 972
原创 magento 负载一路飙涨记录
在做了很多bolck cache的时候,当刷新缓存后,502,卡死了,然后服务器就很卡最后吧var/cache/
2014-05-31 10:31:40 868
转载 Magento 网站报错:connect() to unix:/tmp/fcgi.sock failed 处理
connect() to unix:/tmp/fcgi.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 66.249.65.122, server: tomtop.com, request: "POST /vynamic/customer/info HTTP
2014-05-24 11:57:22 2419
原创 magento - 获取购物车中的总额,运费,tax ,count,grandtotal等
//购物车中产品个数:$totalItemsInCart = Mage::helper('checkout/cart')->getItemsCount(); //total items in cart//$totals = Mage::getSingleton('checkout/session')->getQuote()->getTotals(); //Total object//产品总
2014-05-20 18:12:04 1866
原创 magento - 得到订单各种货币下,换算成USD 的订单总额
$orderCurrency = $order->getData('order_currency_code');$currency_rate = $currency->load('USD')->getAnyRate($orderCurrency);$amount = $_sub / $currency_rate;
2014-05-19 11:56:08 1064
原创 magento 后台创建一个订单
<?php require_once 'app/Mage.php'; Mage::app(); $quote = Mage::getModel('sales/quote') ->setStoreId(Mage::app()->getStore('default')->getId()); $product = Mage::getModel('catalog/produ
2014-05-17 11:02:25 1020
原创 magento 使用 sales_order_place_after event
model spreadxingyun/observer addorder
2014-05-17 10:27:12 1215
转载 php中curl模拟post提交多维数组
今天需要用curl模拟post提交参数,请求同事提供的一个接口;但是传递的参数中,有一个参数的值为数组,用普通的curl post代码提交,会报错误PHP Notice: Array to string conversion in /test/functions.php on line 30Notice: Array to string conversion in /test/f
2014-05-17 10:23:17 3789 1
转载 Magento admin Grid columns 取到的值二次处理,譬如取到的category_id 得到名字
Do next: 1. Add column in your Grid.php file or rewrited file in next way$this->addColumn('mycolumn', array( 'header' = Mage::helper('core')->__('My Column'), 'align'
2014-05-16 17:10:09 643
原创 linux和window文件共享 安装samba
参考:http://www.cnblogs.com/mchina/archive/2012/12/18/2816717.html1.yum install samba samba-client samba-swat2./etc/init.d/smb start/stop/restart来启动、关闭、重启Samba服务3查看samba的服务启动情况servic
2014-05-13 17:52:04 547
原创 linux和window文件共享 安装samba
参考:http://www.cnblogs.com/mchina/archive/2012/12/18/2816717.html1.yum install samba samba-client samba-swat2./etc/init.d/smb start/stop/restart来启动、关闭、重启Samba服务3查看samba的服务启动情况servic
2014-05-13 17:49:06 904
原创 linux和window文件共享 安装samba
参考:http://www.cnblogs.com/mchina/archive/2012/12/18/2816717.html1.yum install samba samba-client samba-swat2./etc/init.d/smb start/stop/restart来启动、关闭、重启Samba服务3查看samba的服务启动情况servic
2014-05-13 17:48:46 571
原创 linux和window文件共享 安装samba
参考:http://www.cnblogs.com/mchina/archive/2012/12/18/2816717.html1.yum install samba samba-client samba-swat2./etc/init.d/smb start/stop/restart来启动、关闭、重启Samba服务3查看samba的服务启动情况service sm
2014-05-13 17:47:35 509
原创 magento 多表相同列名join
$model = Mage::getModel('tomtop_rewards/pointsreport'); $collection = $model->getCollection(); $collection->getSelect()->join(array('table1' => 'customer_entity'), 'table1.entity_id = customer_id',
2014-05-13 10:19:24 1045
转载 magento 提速!
http://www.gxjansen.com/101-ways-to-speed-up-your-magento-e-commerce-website/
2014-05-11 23:19:45 660
转载 magento禁止LOG,写入文件和写入数据库表。
Magento does some excessive logging to track customers. This in return causes your Magento database to expand exponentially in size, and inevitably decreases your sites overall performance.I found
2014-05-11 21:06:16 1155
原创 magento 后台保存分类失败,无法保存产品,ajax一直在转的问题 的解决 - Cannot edit categories in Magento
当网站产品变多的时候,会出现magento分类无法max_input_vars
2014-05-09 16:02:01 1270
转载 mysql 修改root密码 (忘记密码)
MySQL - Resetting a lost MySQL root passwordArticle ID: 405 Last updated on August 31, 2012 Authored by: Rackspace SupportThe MySQL root password allows full access
2014-05-07 19:38:27 722
原创 Magento 快速保存产品属性的代码 - 不能更新flat表
//********product save model*********// function updateAttribute($id,$values,$attribute,$tablename){ $connection = $this->_getConnection('core_write'); $newvalues = $values; $prod
2014-05-06 09:59:06 794
原创 magento索引报错的解决:General error: 1205 Lock wait timeout exceeded
Product Attributes index process unknown error:exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction' in /var/www/html/tom
2014-05-05 05:46:13 3511
原创 规范
问题点:规范性问题性能问题流程性问题功能上线问题技术实现问题1.规范性问题:关于模块的创建:在非必要情况下,不要新建模块,尽量减少模块的数量关于模块的文件结构:controller代码尽量精简,此为控制器Block写功能性代码Phtml写前端显示,此处非特殊必要性,不要在这里出现php的计算代码,这里更多的是使用$this->,调用block
2014-05-05 00:55:52 604
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人