Author Archive

Magento组商品显示商品属性

Magento组商品(Magento grouped product),是用来对属于一个系列或者一个组合的商品进行销售。如上图,为默认情况下的Magento组商品,此例子是对于一个沙发组合进行销售。组商品的特点就是你可以根据自己需要,每件可以购买不同的数量。 在某些时候,我们可能需要更加详细的内容显示,如下图,为销售一些五金商品,那么购买者可能需要更多的参数信息。 我们可以看到,这就是对组商品进行扩展,让其显示更多的属性值。 这个是怎样做到的呢? 首先,我们要对Magento的属性组和属性非常熟悉,见我博客商品的Magento中文视频中有详细的教程。我们给组商品建立一个属性组,属性组中就有如上图中的,Diameter inch和Diameter mm等属性,然后在模板文件中将这些属性输出出来。下图,为名字为‘type1’的属性组,红色部分为添加的属性。 我们可能有很多类组商品,并且每一类组商品的表都不一样,那么就需要为每一类组商品创建一个属性组。 然后,当我们的属性组与属性设置好后,添加一个组商品,好看下我们设置的是否正确。因为我们还没有修改模板文件,前台的现实结果还和以前一样。 下面我们就去修改模板文件,模板文件路径为:app/design/frontend/default/你的模板文件夹/template/catalog/product/view/type /grouped.phtml 代码实例如下 <!– type1 –> <?php if($_product->getAttributeSetId() == 11): ?> <table class=”data-table grouped-items-table” id=”super-product-table”> <tr> <td rowspan=”2″><?php echo $this->__(‘Item number’) ?></td> <td colspan=”2″><?php echo $this->__(‘Diameter’) ?></td> <td ><?php echo $this->__(‘Hole diameter’) ?></td> <td colspan=”3″><?php echo $this->__(‘Segment dimension mm’) ?></td> <td rowspan=”2″><?php echo $this->__(‘Number [...]

Magento没有订单提交按钮

最近用Magento兰亭2011模板的人们向我反映,在订单提交页面没有提交按钮,我来说下如何解决此问题。 先来简单说说此兰亭模板。 Magento兰亭2001真是个很不错的模板,本人很佩服制作此模板的人,因为此模板首先是很好的仿了兰亭,其次是功能上也很丰富,很少有模板有如此丰富的功能。并且比我自己写的兰亭模板强多了,自惭形秽,又崇拜。此模板官网地址是:http://www.bestmagento.com/ 希望大家支持正版。此模板的缺点可能是因为功能太丰富,一般的新手无法应付。 我看了其模板.phtml文件,并没有什么明显的问题。我觉得应该是XML文件的问题,可能由于版本问题,XML有错误的地方,不出所料。 app\design\frontend\default\se101\layout\checkout.xml  此文件中约380行位置,如下代码 <!– One page checkout order review block –> <checkout_onepage_review translate=”label”> <label>One Page Checkout Overview</label> <!– Mage_Checkout –> <remove name=”right”/> <remove name=”left”/> <block type=”checkout/onepage_review_info” name=”root” output=”toHtml” template=”checkout/onepage/review/info.phtml”> <action method=”addItemRender”><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action> <action method=”addItemRender”><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/onepage/review/item.phtml</template></action> <action method=”addItemRender”><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/onepage/review/item.phtml</template></action> <block type=”checkout/cart_totals” name=”checkout.onepage.review.info.totals” as=”totals” template=”checkout/onepage/review/totals.phtml”/> <block type=”core/text_list” name=”checkout.onepage.review.info.items.before” as=”items_before” translate=”label”> <label>Items Before</label> </block> </block> </checkout_onepage_review> 要更新为 [...]

去掉Magento边栏Paypal的Logo

如上图,我们在现在的Magento版本中,可以看到侧边栏的Palpay标志,如何去掉它呢?后台是可以设置的。 后台->System->Configuration->Payapl->Frontend Experience Settings 如下图 在 Paypal Product Logo选项中设置为NO,刷新缓存,即可。 本文使用Magento1.5讲解,其它版本类似。 转载表明来自:www.hellokeykey.com

Magento官方提供培训服务

今天看到水水的文章,去Magento官网看下,此页 http://www.magentocommerce.com/services/course-pricing 。 Magento针对各个Magento人群提供各种培训服务。如上图画红线课程为Magento模板制作开发课程,时间为2天,收费为1850美元,当前汇率折合人民币11989元。与我的Magento模板制作包学包会教程相比较,我的价格还是很实惠的。 转载表明出处:www.hellokeykey.com

eBay完全收购Magento

eBay已经同意收购互联网电子商务平台Magento的剩余股份,此前eBay已经拥有Magento的股份。双方没有透露具体条款。通过收购Magento和自家的开源电子商务X Commerce,eBay可以提供支付和网站之外的服务。在10月的X Commerce创新大会上,eBay会透露更多的细节。

使用setTemplate在Controller中设置Magento的页面结构

在Magento中新建一个插件的时候,如何控制我们前台页面的页面结构呢?一个方法是去修改我们的模板XML文件来实现。另一个办法就是在我们插件的Controller(控制器)中来设置Magento的页面结构。 代码如下: $this->loadLayout(); $this->getLayout()->getBlock(‘root’)->setTemplate(‘page/1column.phtml’); $this->renderLayout(); 我们可以看到setTemplate( )的参数是 一栏结构,在此处指定你的前台页面结构。例如如设置成2栏左结构的参数是‘page/2columns-left。’ 转载表明出处:www.hellokeykey.com

使用APC为Magento加速

Centos系统的Lamp环境运行Magento,我们来看下如何使用APC为Magento加速。 网上安装APC的教程很多,我这里将我自己验证过的几个组件的安装命令列出来,大家参考下。如下 #yum install install #yum install php-devel #yum install php-pear #yum install httpd-devel #yum install pcre-devel 先安装如上几个模块,(使用yum就是很省心)。运行如下命令进行APC安装,安装过程中的问题,按照中括号中的建议值填写。 #pecl install apc 安装结束后有如下的提示: # configuration option “php_ini” is not set to php.ini location # You should add “extension=apc.so” to php.ini 意思是说,让我们在php.ihi文件中,声明加载APC这个扩展。 我的php.ini路径是 /etc/php.ini 在里面的扩展声明部分,加上如下内容即可 extension=apc.so [APC] apc.enabled =1 apc.shm_size=256 apc.num_files_hint=10000 apc.user_entries_hint=10000 apc.max_file_size=5M apc.stat=1 在上面php.ini中[APC]后面的内容是对APC参数进行的设置,你可以根据你的情况来自己修改。 APC优化设置可以参考:http://blog.nexcess.net/2011/03/25/optimizing-apc-cache-settings-for-magento/ 重启我们的apache服务器,我们的APC安装就结束了,下面进入Magento的配置环节。 [...]

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; [...]

Magento团购插件

magento现有一款免费的团购插件,官方插件地址为:https://www.magentocommerce.com/magento-connect/Zizio/extension/6378/ziziogroupsale 。需要登录才能获得Magento connect安装,现在是稳定版支持Magento 1.3\1.4\1.5版本。 为了免去大家登录的麻烦公布安装key如下,安装方法见我的magento cennect使用视频。 Magento 1.3 connect安装key为:magento-community/ZizioGroupSale Magento 1.5 connect安装key为:http://connect20.magentocommerce.com/community/ZizioGroupSale magento1.4试下是用1.3的还是1.5的key,由于Magento connect升级,key有变化。 此团购插件安装后,记得刷新Magento的索引管理和Magento的缓存。 通过Magento后台: Promotions->Zizio Group Sale访问此插件。第一次使用此插件需要填写注册信息,都是免费的了,就费心填下吧,填完会发送欢迎信息到你的邮箱。然后就可以添加编辑团购商品了。 团购商品会显示在原商品的分类页面,如下图。所以如果搞团购就新建个团购分类,好将所有的团购商品集中到一起。 转载表明出处:www.hellokeykey.com    

Magento运输方式的设置

本视频讲解如何设置Magento5运输方式,关于表运费见我博客文章:Magento表运费设置。本视频基于Magento 1.5版本录制,其余版本可能稍有不同。 更多中文视频见:Magento中文视频教程   转载表明出处:www.hellokeykey.com

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.