聚合

Magento获取全部分类代码

magento获得全部的菜单分类,这段代码的好处就是可以放在任意的phtml文件中,并且做了诸多的条件判断。我们可以参考灵活运用,供初学者参考。 此段代码来自互联网:http://www.magentocommerce.com/boards/viewthread/24947/P15/ function nodeToArray(Varien_Data_Tree_Node $node) { $result = array(); $result['category_id'] = $node->getId(); $result['parent_id'] = $node->getParentId(); $result['name'] = $node->getName(); $result['is_active'] = $node->getIsActive(); $result['position'] = $node->getPosition(); $result['level'] = $node->getLevel(); $result['children'] = array(); foreach ($node->getChildren() as $child) { $result['children'][] = nodeToArray($child); } return $result; } function load_tree() { $tree = Mage::getResourceSingleton(‘catalog/category_tree’) ->load(); $store = 1; $parentId = 1;…

LiveZilla与OpenCart整合

LiveZilla的安装方法这里也不说了.如果需要,请看 livezilla在线客服系统安装教程 其实将LiveZilla与OpenCart整合 跟 LiveZilla与Magento整合 方法相同,相对于系统庞大复杂的Magento,与OpenCart整合更加的简单.不过每次换模板,升级模板之类的,都要重新添加一次代码,挺麻烦的.这两天就自己写了个OpenCart添加LiveZilla的插件.   注意事项 本插件仅适用于LiveZilla的Float Button方法,也就是漂浮图标的显示方式.漂浮的位置由LiveZilla生成的代码控制. 安装方法: 下载并解压缩插件包. 将admin,catalog两个文件夹上传至OpenCart的根目录 后台Extensions->Module 安装LiveZilla插件,并编辑 Status这个就不说了.肯定是Enable.LiveZilla CODE请填入LiveZilla的Float Button的Script/Code, 显示位置由LiveZilla 的Scrip/Code控制,如图   保存以后,到首页刷新一下看效果吧 Module页面LiveZilla插件显示的Position不用理会,默认Left的.呵呵   LiveZilla插件下载 :

LiveZilla与Magento整合

此文章仅讲述如何将安装好的LiveZilla与Magento整合,LiveZilla的安装方法这里不再叙述,如果你不知道如何安装LiveZilla请看LiveZIlla在线客服系统安装教程这篇文章. 其实将LiveZilla添加入Magento有很多方法,这里就介绍三个比较普遍的方法. 如果你只想在某个或几个固定页面的显示LiveZilla的图标,那么你可在magento后台创建一个static block,在其中粘贴上LiveZilla提供给你的Script/Code代码 <!– LiveZilla Chat Button Link Code (ALWAYS PLACE IN BODY ELEMENT) –><div style=”text-align: center; width: 145px;”><a href=”javascript:void(window.open(‘http://jidda.name/livezilla/chat.php’,”,’width=590,height=610,left=0,top=0,resizable=yes,menubar=no,location=no,status=yes,scrollbars=yes’))”><img src=”http://jidda.name/livezilla/image.php?id=01&amp;type=inlay” width=”145″ height=”69″ border=”0″ alt=”LiveZilla Live Help” /></a><div style=”margin-top: 2px;”><a href=”http://www.livezilla.net” target=”_blank” title=”LiveZilla Live Help” style=”font-size: 10px; color: #bfbfbf; text-decoration: none; font-family: verdana, arial, tahoma;”>LiveZillaLive Help</a></div></div><!– http://www.LiveZilla.net Chat Button Link Code –><!– LiveZilla Tracking…

LiveZilla在线客服系统安装教程

LiveZilla是功能强大且免费开源的在线客服系统.LiveZilla以强大的功能,卓越的品质,稳定的系统迅速成为最好的网站网店免费开源在线客服解决方案. LiveZilla官方网站:http://www.livezilla.net LiveZilla官方下载地址:http://www.livezilla.net/downloads/en/ LiveZilla的优点: 真正完全免费开源的没有任何功能限制的在线客服软件,没有网站、用户数量限制,亦可用于商业网站. 安装简单,可用于任何网站.(与网站的结合需要一点HTML知识) 支持网络视频对话,让您提供更有特色的服务. 可以清晰的跟踪客户所在地理位置. 不借助第三方平台,在您的网站主机和本地计算机即可安装使用,能够完全自主掌控所有数据. 可定制化程度极高.可自由定制图标、文字、界面、网站上的显示方式. 实时聊天帮助,能提供更人性化的客户服务.提高网站的用户体验.并可以设置多部门的客服,以及能对客服进行评分. 提供访客监控功能.能够监控访客所在的国家地区、浏览器、操作系统、浏览器语言、浏览器分辨率、来自哪个网站、页面关键词和IP. LiveZilla的缺点: 需要在自己的电脑上安装软件. 对网站服务器资源占用较高 LiveZilla安装教程: 下载LiveZIlla安装包,并一直下一步安装LiveZilla(不多说了) 运行LiveZilla Client,点击Edit Server 点击Server Admin创建配置 如果你有一个新网站并未安装Livezilla Server就选择第一个Create New LiveZilla Server,如果此网站以前安装过LiveZilla Server要在本机导入,就选第二个,测试,选择第三个- -这里我们选择第一个Create New LiveZilla Server 填写该网站客服的ID,姓名,邮箱及设置密码 填写此账户的部门,第一次所创建的也有管理权限 上传你的LiveZilla Server至网站服务器,一般来说都选择第一项FTP Upload上传,如果你的网站服务器是在本机,就选择第二项 FTP上传LiveZilla Server设置,见图 点击下一步后,就会出现上传LiveZilla Server的窗口,见图 传输完成后会提示设置文件及文件夹的权限(类UNIX服务器中),直接下一步设置. 填写网站的域名及LiveZilla Server的路径 配置数据库,点击Create Tables创建LiveZilla Server相关的表,跟着提示,LiveZilla Server就算安装完成了 剩下的就是配置LiveZilla的在线图标等,跟着一步一步做,很简单的 选择才建的LiveZilla Server,下一步 输入登录信息,下一步 剩下最后一步,配置LiveZilla在网站显示的代码了~这里不详细解释了,看图 最后一步,在你网站合适的位置加入 Scripts…

Magento错误报警Layout.php on line 529

Magento 1.4的模板用到Magento 1.5中,之前写了一篇文章将如何升级模板,今天将遇到的报警特别的作为一篇文章写出来,供大家参考。 在安装新的magento模板的时候,出现了报警信息:app\code\core\Mage\Core\Model\Layout.php on line 529 。 Google查阅资料:http://stackoverflow.com/questions/3055128/magento-started-showing-php-language-errors-since-i-downloaded-the-blank-theme-us 对比Magento 1.4的page.xml与1.5的page.xml模板的layout文件发现如下代码的变化后发现1.4与1.5的区别。 将Magento 1.4模板的layout中的page.xml内容,如上图 <block type=”core/profiler” output=”toHtml” /> 修改为Magento 1.5中的 <block type=”core/profiler” output=”toHtml” name=”core_profiler”/> 修改后,刷新Magento后台缓存。Magento恢复正常。 参考:magento1.4模板升级到1.5 转载表明出处:www.hellokeykey.com

自定制magento登陆验证过程

现在有一个客户需要将Magento与另一个系统整合,在Magento中产生购买的时候,要求用户使用原系统用户名密码登陆,验证此用户信息为合法用户后,用户信息存入到Magento中,并且完成购买流程。得知原系统使用用户名来完成注册登陆,并且标示用户唯一性,与Magento使用邮箱登陆不同。 这个要求需要注意的是: 1.用户只在原先的系统完成注册。 2.需要通过接口去原先系统验证用户的登陆信息是否合法。 3.Magento 的用户是通过邮件地址来登陆的,所以要给原系统的用户名后加个邮箱,再存到Magento中去。(不想大改,直接实现用户名登陆比较复杂。一个基于邮箱的系统,改成基于用户名的意义还有待考虑)。 于是: 1.关闭Magento的注册功能,使用户只能在原先的系统平台注册。 2.关闭游客结账功能,在结账页面让用户输入原系统用户名、密码。 3.下面我们就开始修改下这个登陆验证的流程了,我们关闭了注册功能也禁止了游客结账,那么我们就剩下在结账页面的登陆框了(如上图),这里就是我们的需要hack的地方。 a.在模板文件中 app/design/frontend/default/default/template/checkout/onepage/login.phtml 修改登陆表单为 <div class=”col2-set”> <div class=”col-1″> </div> <div class=”col-2″> <h3><?php echo $this->__(‘Login’) ?></h3> <?php echo $this->getMessagesBlock()->getGroupedHtml() ?> <form id=”login-form” action=”<?php echo $this->getloginasusernamePost() ?>” method=”post”> <h4><?php echo $this->__(‘Already registered?’) ?></h4> <p><?php echo $this->__(‘Please log in below:’) ?></p> <ul class=”form-list”> <li> <label for=”login-username” class=”required”><em>*</em><?php echo $this->__(‘Email [...]

将Magento运费计算移动到商品详情页面

此Magento插件会将运费计算的模块显示在商品详情页面,如上面图片。 插件地址:http://www.magentocommerce.com/magento-connect/Ecommerce+Developers/extension/3860/ecomdev_productpageshipping 此插件目前为稳定版,支持到1.4,1.5可以试下,插件一般跨版本能力比较强。 转载表明出处:www.hellokeykey.com

使用Magento实现平民的手机B2C平台

Magento在外贸方面很给力,越来越多的外贸网站都转向使用Magento了。Magento在国内应用程度很不给力的情况下,我的Magento还能做些什么呢? 我无钱无人脉,只做过淘宝店,我想做个手机的B2C平台卖卖东西,这个怎么弄呢?既然没有钱,就在功能上阉割一把,基本实现在线浏览商品,在线下订单,货到付款的支付方式。呼呼,这个也没有阉割太多。当然这些是基于Magento的。 好,我们来看下,搭建一个手机的B2C平台需要多少开销吧,看看算不算是很平民的价格: 1.域名,这个东西60元人民币左右一年,很便宜,建议去大的域名商网站购买,如:godaddy等。 2.服务器,我博客有推荐的Magento专用服务器,100多元人民币一个月。吓,服务器在国外,这个会不会网速有问题。试试,不行就用蹩脚的国内服务器吧。好吧,如果用国内的服务器,内存最好到1G的VPS,价格吗?似乎在300多元一个月。 3.安装配置好Magento手机版,需要一定的专业知识,但是算不上有太多的技术含量。这里有一款免费的Magento手机模板 http://www.magentocommerce.com/magento-connect/Magento+Core/extension/4457/magento_mobile 对于安卓和iphone应该都可以访问,关于设置见文章下面的相关资料。人工费用暂算1000元吧。找个设计弄个logo,300元(我不会给设计定价,猜的)。 4.付款方式,这个还是选货到付款吧。谁叫我们是平民。 5.上货,没钱清人就自己上货。 6.营业,没钱找人做,就自己做推广维护。 大功告成了!花销上算下来2000元的一样,以后每个月的开销在服务器费用,和人力维护上。如果自己可以做的基本就可以自己做了。 呼呼,我省掉了备案等诸多法律环节,大家自己补上。似乎很容易蒙混过关。 相关资料: 一个在线的Magento手机模板演示,这个是iphone的,安卓也应该没有压力,似乎有几个外国公司在卖Magento手机模板:http://themeforest.net/item/iphone-shop-magento-theme/full_screen_preview/153684 这是一款手机主题,是收费的,我喜欢这个公司的产品,也有demo地址:http://ecommerce.aheadworks.com/magento-extensions/iphone-theme.html 如何设置当用户使用手机访问Magento的时候,看到的是手机模板,使用电脑访问网站的时候,看到的是普通模板:http://magebase.com/magento-tutorials/how-to-mobilize-your-magento-site-for-iphone-android-mobile-commerce/   转载表明出处:www.hellokeykey.com

将Magento评论移动至产品页面

首先先找到 <block type=”catalog/product_view_tabs” name=”product.info.tabs” as=”info_tabs” template=”catalog/product/view/tabs.phtml” > <action method=”addTab” translate=”title” module=”catalog”><alias>description</alias><title>Product Description</title><block>catalog/product_view_description</block><template>catalog/product/view/description.phtml</template></action> <action method=”addTab” translate=”title” module=”catalog”><alias>additional</alias><title>Additional Information</title><block>catalog/product_view_attributes</block><template>catalog/product/view/attributes.phtml</template></action> <block type=”review/form” name=”product.review.form” as=”review_form”> <block type=”page/html_wrapper” name=”product.review.form.fields.before” as=”form_fields_before”> <action method=”setMayBeInvisible”><value>1</value></action> </block> </block></block> 替换为 <block type=”catalog/product_view_tabs” name=”product.info.tabs” as=”info_tabs” template=”catalog/product/view/tabs.phtml” ><action method=”addTab” translate=”title” module=”catalog”><alias>description</alias><title>Product Description</title><block>catalog/product_view_description</block><template>catalog/product/view/description.phtml</template></action><action method=”addTab” translate=”title” module=”catalog”><alias>additional</alias><title>Additional Information</title><block>catalog/product_view_attributes</block><template>catalog/product/view/attributes.phtml</template></action><block type=”review/product_view_list” name=”product.info.product_additional_data” as=”product_review” template=”review/product/view/list.phtml”> <block type=”review/form” name=”product.review.form” as=”review_form”> <block type=”page/html_wrapper” name=”product.review.form.fields.before”…

Prototype的简单Ajax

function getContents() { var request_url = “test1.html”; // 需要获取内容的url var request_pars = ”;//请求参数 var myAjax = new Ajax.Updater(‘result’, request_url,{ // 将request_url返回内容绑定到id为result的容器中 method : ‘get’, //HTTP请求的方法,get or post parameters : request_pars, //请求参数 onFailure : reportError, //失败的时候调用 reportError 函数 onLoading : loading, //正在获得内容的时候 onComplete : done //内容获取完毕的时候 }); } function loading() { $(‘loading’).style.display = ‘block’; } function…

TOP Online Store
1.Girls' Generation, a Fantasy Jewelry online Store. Nobody Can Keep Away From the Beauty:tiffany ca 2.China Wholesale Electronics:China Wholesale Electronics 3.The android phone is best:Android sale.The Android Ice cream sandwich well be best Android OS. 4.R4 3DS for sale:R4 ds shops,and support Japanese R4:R4 販売. 5.fashion bag:armani watches and MBT shoes.
R4 V1.4.2 and your R4i Gold 1.4.2 and R4i GOLD 3DS card V1.4.2 can not work on it.
Please update your R4i Gold 1.4.2 and R4i GOLD 3DS card V1.4.2 card with this patch. Please read readme.txt attached firstly.Just do as the procedures listed in readme.