• magento-使用第三方PHP库

    path里了,所以如果有3rd包如Varien放到lib目录下,有一个php文件全名为$magento_home/lib/Varien/Object.php 那么在Magento的代码中只要:include_once('Varien/Object.php');就可以调用里面的类和函数了。出处:...
    文章 2010-04-10 1029浏览量
  • 有用的Magento Collection函数

    There are different important functions that you can implement in your Collection object.The functions are present in Varien_Data_Collection_Db class.The class file is present in lib/Varien/Data/...
    文章 2011-01-07 1134浏览量
  • magento-用Magento的方式读写XML

    I will be using Varien_Simplexml_Element class to read write xml nodes.The path to this class file is lib/Varien/Simplexml/Element.phpHere is a sample XML file which I am going to read through Magento...
    文章 2011-01-10 935浏览量
  • magento-如何改善前台图片质量

    第一步:把"/lib/Varien/Image/Adapter/Gd2.php" 文件拷贝到"/app/code/local/Varien/Image/Adapter/Gd2.php" 第二步:打开Gd2.php,在大概第80行找到 call_user_func($this->getCallback('output'),$this->...
    文章 2010-03-10 1086浏览量
  • magento开发-再说Magento时间输出问题

    大家知道date()函数输出的是当前时区的时间,如果php全局设定了时区以该时区...toString(Varien_Date:DATETIME_INTERNAL_FORMAT);dStr 可以用于存储到数据库的datetime字段. 源文:http://koda.javaeye.com/blog/652401
    文章 2010-04-26 971浏览量
  • “约定优于配置”与Magento改造尝试三之routerName...

    需要修改的文件是Mage_Core_Controller_Varien_Router_Standard,详见 https://github.com/walexer/Yli_Coc/blob/master/app/code/local/Mage/Core/Controller/Varien/Router/Standard.php 主要修改的方法是:public...
    文章 2016-01-11 1321浏览量
  • magento1.4-预编译(Compilation)开启后后台插件管理...

    html/includes/downloader/pearlib/php:/home/ebluebell/public_html/includes/src:.:/usr/share/pear:/usr/share/php')in/home/ebluebell/public_html/includes/src/Varien/Pear.php on line 265 经检查网站根目录下...
    文章 2010-05-12 1083浏览量
  • Magento CURL Json

    curl=new Varien_Http_Adapter_Curl();curl->setConfig(array('timeout'=gt;5))->write(Zend_Http_Client::GET,$apiUrl,'1.1');response=$curl->read();httpCode = Zend_Http_Response::extractCode($...
    文章 2016-05-12 1279浏览量
  • Magento系统中应用的12种设计模式

    Models are backed by Varien’s ORM.Most business logic happens in the models whereas the controllers map the model-data to the views. Because Magento its views are“fat”– they often contain a lot of...
    文章 2015-12-11 1376浏览量
  • 增强AW_Blog插件之后台文章编辑新增一图片字段

    form=new Varien_Data_Form(array 'id'=gt;'edit_form', 'action'=gt;this->getUrl('*/*/save',array('id'=gt;this->getRequest()->getParam('id'))), 'method'=gt;'post', 'enctype'=gt;'multipart/form-...
    文章 2012-01-10 1073浏览量
  • WHY YOU SHOULDN&39;T MERGE JAVASCRIPT IN MAGENTO

    varien/configurable.js<script>lt;group>product<group>lt;action>lt;reference>lt;catalog_product_view>Notice the addition of the paramter group?Instead of all of the Javascript ...
    文章 2013-10-11 994浏览量
  • magento-如何修改后台列表(Grid)的默认行数

    public function applyLimitToGrid(Varien_Event_Observer$observer) { $block=$observer->getEvent()->getBlock(); if(($block instanceof Mage_Adminhtml_Block_Widget_Grid)&amp;($block instanceof ...
    文章 2010-03-02 1050浏览量
  • magento 1.4-再论如何改善前台图片质量

    之前写过文章说怎么在Magento1.3下修改前台产品图片质量,http://blog.csdn.net/shuishui8310/archive/2010/03/11/5364583.aspx,最近开始使用1.4后,发现根目录下/lib/Varien/Image/Adapter/Gd2.php文件内容与1.3...
    文章 2010-05-14 1010浏览量
  • magento 1.4-后台分类页和产品页字段名无法翻译的bug...

    经查找发现这里的字段名用到了getLabelHtml函数来输出,找到这个函数发现是在基础类库里面,打开文件/lib/Varien/Data/Form/Element/Abstract.php,找到getLabelHtml函数,会发现标签输出时并没有做处理: ...
    文章 2010-05-21 1201浏览量
  • magento-可配置产品的选项如何默认选中第一项

    If you ever tried to do anything with Magento configurable products view page,most likely you needed changes in/js/varien/product.js in case you wanted to manipulate dropdowns. This will be one of the...
    文章 2010-09-20 1170浏览量
  • magento站点还原到本地

    这样会跳转到localhost/xampp,如果以localhost/wenjianjia/index.php/admin形式访问,则每次点击login一直停留在登录页面,至于注释varien.php文件,这个我早就注释了,可见问题不在这里 解决步骤 原因是因为我在做...
    文章 2014-09-20 816浏览量
  • Magento的灵活性带来的负担一例

    var$attributeItem Varien_Object*/ attrId=$attributeItem->getData('attribute_id');if!isset($attributes[$attrId])|empty($attributes[$attrId])){ subProduct=null;break;} } } 上面这段代码出自Mage_...
    文章 2014-11-20 1320浏览量
  • Magento 添加后台管理 addColumn

    protected function_checkFiterAction($action,Varien_Object$row){ result=false;if(isset($action['filter'])&amp;is_array($action['filter'])){ foreach($action['filter']as$key=gt;filter){ if($row[$key...
    文章 2016-05-12 2465浏览量
  • magento 开发-另一种方式用xml来布局

    varien/product.js gt;lt;mce:script>lt;action> <action method="addItem">lt;type>js_css<type>lt;name>calendar/calendar-win2k-1.css<name>lt;params/gt;lt;lt;if/gt;lt;...
    文章 2010-05-17 941浏览量
  • Magento 中的事件

    param$observer Varien_Event_Observer public function myOrderProcess($observer) { Mage:log("Enter myOrderProcess");order=new Mage_Sales_Model_Order();incrementId=Mage:getSingleton('checkout/...
    文章 2016-05-12 1784浏览量
  • Magento-GRID FILTER FOR COLUMNS WITH COMPLEX ...

    publicfunctionrender(Varien_Object row) { value=$row->getData('city') ','. row->getData('street') ','. row->getData('postcode');return$value;} } After these steps we are able to see the new ...
    文章 2013-12-12 1222浏览量
  • magento helper

    protected function_getElementHtml(Varien_Data_Form_Element_Abstract$element){ date=new Varien_Data_Form_Element_Date;format='yyyy-MM-dd HH:mm:ss';data=array 'name'=gt;element->getName(), '...
    文章 2016-05-12 1392浏览量
  • 深入理解Magento-第九章-修改、扩展、重写Magento...

    作为一个开发者的你,肯定要修改Magento代码去适应你的业务需求,但是在很多时候我们不希望修改Magento的核心代码,这里有很多原因, 例如将来还希望升级Magento、还想使用更多的Magento代码。如果你正在寻找修改...
    文章 2010-06-17 1333浏览量
  • Magento 常用方法和插件

    得到路径E:\ddl\Trunk\3_Development\03_Sourcecode\test.com\www\app\design\frontend\default\ddl_v2\template Java代码 Mage:getDesign()->getBaseDir(array('_area'=gt;'frontend','_package'=gt;...
    文章 2016-05-12 3079浏览量
  • Magento Adminhtml Form

    开发Magento后台的时候经常用到表单(Varien_Data_Form),下面是所有表单元素的添加方法: 非必填 注释掉 Java代码 'class'=gt;'required-entry', 'required'=gt;true, 1.input type='text' Java代码 fieldset->...
    文章 2016-05-12 1727浏览量
  • magento model collection

    magento当使用group语句进行分页出现bug,需修改文件 lib/Varien/Data/Collection/Db.php Java代码 public function getSelectCountSql() { this->renderFilters();countSelect=clone$this->getSelect();...
    文章 2016-05-12 1860浏览量
  • magento 开发-深入理解Magento第七章 – 自定义...

    第七章 – 自定义Magento系统配置 Magento拥有十分强大的后台管理系统。作为一名开发人员,这套后台管理系统可以让你的用户简单直接的配置Magento系统或者你创建的模块。和Magento的其他功能一样,你第一次使用这套...
    文章 2010-04-30 1312浏览量
  • Magento 添加后台管理

    Magento Grid关联了多表后,表与表之间有相同字段出现。在后台点查询时出现报错解决用filter_index Java代码 this->addColumn('name',array 'header'=gt;'返利商家', 'align'=gt;'right', 'width'=gt;...
    文章 2016-05-12 2747浏览量

云产品推荐

视频直播 大数据计算服务 MaxCompute 国内短信套餐包 开发者问答 阿里云建站 新零售智能客服 万网 小程序开发制作 视频内容分析 视频集锦 代理记账服务 阿里云AIoT 阿里云科技驱动中小企业数字化