magento产品页面价格出现2遍

In app\design\frontend\default\default\template\catalog\product\view\type\Simple.phtml
Just change…

<block type="catalog/product_view" name="product.clone_prices" as="prices" template="catalog/product/view/price_clone.phtml" />

TO

<!-- <block type="catalog/product_view" name="product.clone_prices" as="prices" template="catalog/product/view/price_clone.phtml" /> -->

注释掉就可以了.

Magento Homepage

{{block type="catalog/product_new" name="home.catalog.product.new" alias="product_homepage" template="catalog/product/new.phtml"}}
<reference name="left">
<block type=" amshopby/catalog_layer_view " name="amshopby.navleft" after="currency" template="catalog/layer/view.phtml"/>
</reference>
{{block type="catalog/product_list" column_count="4" category_id="7" template="catalog/product/list.phtml"}}

The homepage is set from the admin side.
but if you want to add content yo your homepage from the layout files just edit the content of the <cms_index_index>tag in the cms.xml file.

Adding CMS Layout Templates

Demystifying Magento’s Layout XML – Part 1

Magento. Display new products on the home page (XML)
http://www.templatemonster.com/help/magento-display-new-products-on-the-home-page-xml.html

<reference  name="content">
<block type="catalog/product_new" name="product_new" template="catalog/product/list.phtml">
<action method="setColumnCount"><column_count>6</column_count></action>
<action method="setProductsCount"><count>0</count></action>
</block>
</reference>

如何修改magento默认的产品图片的大小尺寸

第一个地方,产品列表页的产品图片

文件位置:app\design\frontend\default\helloblank\template\catalog\product\list.phtml
在此文件中搜 “resize”,发现有两处,因为列表页有 List 和 Grid 两种显示方式,第一个resize一般是List列表显示中的产品图片,第二个resize一般是 Grid 列表显示中的产品图片。
截取代码片段:

$this->helper(‘catalog/image’)->init($_product, ‘small_image’)->resize(135, 135); ?>” width=”135″ height=”135″

代码分析:
resize(135, 135),就是设置产品图片 尺寸的函数,以像素为单位的。width=”135″ height=”135″就是css的设置。例如,想改成 150像素宽,200像素高。那么代码就改成

$this->helper(‘catalog/image’)->init($_product, ‘small_image’)->resize(150, 200); ?>” width=”150″ height=”200″

第二个地方,产品详细页产品图片

文件位置:app\design\frontend\default\helloblank\template\catalog\product\view\media.phtml
在此文件中搜“resize”。我们会找到两处,第一处是产品大图的,第二个是大图下面小图的。
代码片段截取:

resize(265)
resize(48, 48); ?>” width=”48″ height=”48″

代码分析:
当resize里面只有一个参数的时候就是设置宽和高是一样的。resize(265) 等于resize(265,256)。
这页有大量css的修饰代码,请务必用firebug等工具检查下,最大可以修改到多大
第三个地方,相关产品图片,upsell产品图片,crosssell产品图片

相关产品图片修改文件位置:app\design\frontend\default\helloblank\template\catalog\product\list\related.phtml
upsell产品图片修改文件位置:app\design\frontend\default\helloblank\template\catalog \product\list\upsell.phtml
crosssell产品图片修改文件位置:app\design\frontend\default\helloblank\template\checkout\cart\upsell.phtml
设置图尺寸的函数还是resize()函数,也基本和前面说的是一样的。
第四个地方,页面边栏购物车里产品图片

文件位置:app\design\frontend\default\helloblank\template\checkout\cart\item\default.phtml
基本就这些了,还有别的地方要改的,开启下magento模板路径看下,在哪里,改的方法也一样。最重要的是,要和你的css修饰代码配合好。

Magento如何删除Add to Compare和Add to Wishlist

app/design/frontend/default/yourtheme/template/catalog/product / List.phtml
移除

                    <ul class="add-to-links">
<?php if ($this->helper('wishlist')->isAllow()) : ?>
<li><a rel="nofollow" href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
<?php endif; ?>
<?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
<li><span class="separator">|</span> <a rel="nofollow" href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
<?php endif; ?>
</ul>

如仅仅需要移除 add to compare.则

<?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
<li><span class="separator">|</span> <a rel="nofollow" href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
<?php endif; ?>

如果你想要清除者两个模块以实现节省那么一点点资源的目的那么可以参照magento官方相关介绍
http://www.magentocommerce.com/wiki/4_-_themes_and_template_customization/catalog/how_to_remove_add_to_compare

innodb-fix.sql

alter table admin_assert                                engine=innodb;
alter table admin_role engine=innodb;
alter table admin_rule engine=innodb; alter table admin_user engine=innodb;
alter table adminnotification_inbox engine=innodb;
alter table catalog_category_entity engine=innodb;
alter table catalog_category_entity_datetime engine=innodb;
alter table catalog_category_entity_decimal engine=innodb;
alter table catalog_category_entity_int engine=innodb;
alter table catalog_category_entity_text engine=innodb;
alter table catalog_category_entity_varchar engine=innodb;
alter table catalog_category_product engine=innodb;
alter table catalog_category_product_index engine=innodb;
alter table catalog_compare_item engine=innodb;
alter table catalog_product_bundle_option engine=innodb;
alter table catalog_product_bundle_option_link engine=innodb;
alter table catalog_product_bundle_option_value engine=innodb;
alter table catalog_product_bundle_selection engine=innodb;
alter table catalog_product_enabled_index engine=innodb;
alter table catalog_product_entity engine=innodb;
alter table catalog_product_entity_datetime engine=innodb;
alter table catalog_product_entity_decimal engine=innodb;
alter table catalog_product_entity_gallery engine=innodb;
alter table catalog_product_entity_int engine=innodb;
alter table catalog_product_entity_media_gallery engine=innodb;
alter table catalog_product_entity_media_gallery_value engine=innodb;
alter table catalog_product_entity_text engine=innodb;
alter table catalog_product_entity_tier_price engine=innodb;
alter table catalog_product_entity_varchar engine=innodb;
alter table catalog_product_link engine=innodb;
alter table catalog_product_link_attribute engine=innodb;
alter table catalog_product_link_attribute_decimal engine=innodb;
alter table catalog_product_link_attribute_int engine=innodb;
alter table catalog_product_link_attribute_varchar engine=innodb;
alter table catalog_product_link_type engine=innodb;
alter table catalog_product_option engine=innodb;
alter table catalog_product_option_price engine=innodb;
alter table catalog_product_option_title engine=innodb;
alter table catalog_product_option_type_price engine=innodb;
alter table catalog_product_option_type_title engine=innodb;
alter table catalog_product_option_type_value engine=innodb;
alter table catalog_product_super_attribute engine=innodb;
alter table catalog_product_super_attribute_label engine=innodb;
alter table catalog_product_super_attribute_pricing engine=innodb;
alter table catalog_product_super_link engine=innodb;
alter table catalog_product_website engine=innodb;
alter table catalogindex_eav engine=innodb;
alter table catalogindex_minimal_price engine=innodb;
alter table catalogindex_price engine=innodb;
alter table cataloginventory_stock engine=innodb;
alter table cataloginventory_stock_item engine=innodb;
alter table catalogrule engine=innodb;
alter table catalogrule_product engine=innodb;
alter table catalogrule_product_price engine=innodb;
alter table catalogsearch_query engine=innodb;
alter table checkout_agreement engine=innodb;
alter table checkout_agreement_store engine=innodb;
alter table cms_block engine=innodb;
alter table cms_block_store engine=innodb;
alter table cms_page engine=innodb;
alter table cms_page_store engine=innodb;
alter table core_config_data engine=innodb;
alter table core_email_template engine=innodb;
alter table core_layout_link engine=innodb;
alter table core_layout_update engine=innodb;
alter table core_resource engine=innodb;
alter table core_session engine=innodb;
alter table core_store engine=innodb;
alter table core_store_group engine=innodb;
alter table core_translate engine=innodb;
alter table core_url_rewrite engine=innodb;
alter table core_website engine=innodb;
alter table cron_schedule engine=innodb;
alter table customer_address_entity engine=innodb;
alter table customer_address_entity_datetime engine=innodb;
alter table customer_address_entity_decimal engine=innodb;
alter table customer_address_entity_int engine=innodb;
alter table customer_address_entity_text engine=innodb;
alter table customer_address_entity_varchar engine=innodb;
alter table customer_entity engine=innodb;
alter table customer_entity_datetime engine=innodb;
alter table customer_entity_decimal engine=innodb;
alter table customer_entity_int engine=innodb;
alter table customer_entity_text engine=innodb;
alter table customer_entity_varchar engine=innodb;
alter table customer_group engine=innodb;
alter table dataflow_batch engine=innodb;
alter table dataflow_batch_export engine=innodb;
alter table dataflow_batch_import engine=innodb;
alter table dataflow_import_data engine=innodb;
alter table dataflow_profile engine=innodb;
alter table dataflow_profile_history engine=innodb;
alter table dataflow_session engine=innodb;
alter table design_change engine=innodb;
alter table directory_country engine=innodb;
alter table directory_country_format engine=innodb;
alter table directory_country_region engine=innodb;
alter table directory_country_region_name engine=innodb;
alter table directory_currency_rate engine=innodb;
alter table eav_attribute engine=innodb;
alter table eav_attribute_group engine=innodb;
alter table eav_attribute_option engine=innodb;
alter table eav_attribute_option_value engine=innodb;
alter table eav_attribute_set engine=innodb;
alter table eav_entity engine=innodb;
alter table eav_entity_attribute engine=innodb;
alter table eav_entity_datetime engine=innodb;
alter table eav_entity_decimal engine=innodb;
alter table eav_entity_int engine=innodb;
alter table eav_entity_store engine=innodb;
alter table eav_entity_text engine=innodb;
alter table eav_entity_type engine=innodb;
alter table eav_entity_varchar engine=innodb;
alter table gift_message engine=innodb;
alter table googlecheckout_api_debug engine=innodb;
alter table newsletter_problem engine=innodb;
alter table newsletter_queue engine=innodb;
alter table newsletter_queue_link engine=innodb;
alter table newsletter_queue_store_link engine=innodb;
alter table newsletter_subscriber engine=innodb;
alter table newsletter_template engine=innodb;
alter table paygate_authorizenet_debug engine=innodb;
alter table paypal_api_debug engine=innodb;
alter table paypaluk_api_debug engine=innodb;
alter table poll engine=innodb;
alter table poll_answer engine=innodb;
alter table poll_store engine=innodb;
alter table poll_vote engine=innodb;
alter table product_alert_price engine=innodb;
alter table rating engine=innodb;
alter table rating_entity engine=innodb;
alter table rating_option engine=innodb;
alter table rating_option_vote engine=innodb;
alter table rating_option_vote_aggregated engine=innodb;
alter table rating_store engine=innodb;
alter table rating_title engine=innodb;
alter table report_event engine=innodb;
alter table report_event_types engine=innodb;
alter table review engine=innodb;
alter table review_detail engine=innodb;
alter table review_entity engine=innodb;
alter table review_entity_summary engine=innodb;
alter table review_status engine=innodb;
alter table review_store engine=innodb;
alter table sales_counter engine=innodb;
alter table sales_discount_coupon engine=innodb;
alter table sales_flat_order_item engine=innodb;
alter table sales_flat_quote engine=innodb;
alter table sales_flat_quote_address engine=innodb;
alter table sales_flat_quote_address_item engine=innodb;
alter table sales_flat_quote_item engine=innodb;
alter table sales_flat_quote_item_option engine=innodb;
alter table sales_flat_quote_payment engine=innodb;
alter table sales_flat_quote_shipping_rate engine=innodb;
alter table sales_giftcert engine=innodb;
alter table sales_order engine=innodb;
alter table sales_order_datetime engine=innodb;
alter table sales_order_decimal engine=innodb;
alter table sales_order_entity engine=innodb;
alter table sales_order_entity_datetime engine=innodb;
alter table sales_order_entity_decimal engine=innodb;
alter table sales_order_entity_int engine=innodb;
alter table sales_order_entity_text engine=innodb;
alter table sales_order_entity_varchar engine=innodb;
alter table sales_order_int engine=innodb;
alter table sales_order_tax engine=innodb;
alter table sales_order_text engine=innodb;
alter table sales_order_varchar engine=innodb;
alter table sales_quote engine=innodb;
alter table sales_quote_address engine=innodb;
alter table sales_quote_address_decimal engine=innodb;
alter table sales_quote_address_int engine=innodb;
alter table sales_quote_address_text engine=innodb;
alter table sales_quote_address_varchar engine=innodb;
alter table sales_quote_decimal engine=innodb;
alter table sales_quote_entity engine=innodb;
alter table sales_quote_entity_datetime engine=innodb;
alter table sales_quote_entity_decimal engine=innodb;
alter table sales_quote_entity_int engine=innodb;
alter table sales_quote_entity_text engine=innodb;
alter table sales_quote_entity_varchar engine=innodb;
alter table sales_quote_int engine=innodb;
alter table sales_quote_item engine=innodb;
alter table sales_quote_item_decimal engine=innodb;
alter table sales_quote_item_int engine=innodb;
alter table sales_quote_item_text engine=innodb;
alter table sales_quote_item_varchar engine=innodb;
alter table sales_quote_rule engine=innodb;
alter table sales_quote_text engine=innodb;
alter table sales_quote_varchar engine=innodb;
alter table salesrule engine=innodb;
alter table salesrule_customer engine=innodb;
alter table shipping_tablerate engine=innodb;
alter table sitemap engine=innodb;
alter table tag engine=innodb;
alter table tag_relation engine=innodb;
alter table tag_summary engine=innodb;
alter table tax_calculation engine=innodb;
alter table tax_calculation_rate engine=innodb;
alter table tax_calculation_rate_title engine=innodb;
alter table tax_calculation_rule engine=innodb;
alter table tax_class engine=innodb;
alter table tax_rate engine=innodb;
alter table tax_rate_data engine=innodb;
alter table tax_rate_type engine=innodb;
alter table tax_rule engine=innodb;
alter table wishlist engine=innodb;
alter table wishlist_item engine=innodb;
 
 
 

magento问题集的更多相关文章

  1. magento问题集3

    MISSING LANGUAGE FILES OR DIRECTORIES A:已经装了俄语包,也是russian目录,在前台也可以用.但是在后台最上面总是显示MISSING LANGUAGE FIL ...

  2. magento问题集2

    SQLSTATE[42S02]: Base table or view not found: 1146 Table XXXXXX 安装Galathemes.com theme插件. 首页无法打开,提示 ...

  3. magento 小问题解决方案集

    magento错误 Mage registry key "_singleton/core/resource" already exists解决方法:1.清理magento的var/ ...

  4. Magento table rates表运费设置

    在magento中集成了Table rate表运费,这种运输方式.表运费就是我们自己写个运费表,根据距离和商品重量设置运费,制做成一张csv格式的表,导入到magento中,来实现运费的控制. 在我的 ...

  5. Redis集群部署

    1.1.1redis简介 Redis 是一个开源的使用 ANSI C 语言编写.支持网络.可基于内存亦可持久化的日志 型. Key-Value数据库 1.1.2redis常见使用场景 1.会话缓存(S ...

  6. Magento创建configurable产品的要点

    接着上一篇用API创建可配置的产品Configurable Product说事.Magento的产品类型可分为Simple Product.Group Product.Configurable Pro ...

  7. magento -- 如何为商品分类(category)添加自定义属性

    在magento 中,由于使用了强大的EAV设计方法,我们可以很方便的给商品添加任意数量的属性.然而magento 没有给我们提供给商品分类添 加属性的功能.尽管我们知道magento所采用的EAV设 ...

  8. magento搜索属性值的设置方法

    前台特性(Frontend Properties)在快速搜索中应用(Use in quick search) - 开启此选项,在客户使用Header中的 搜索功能时Magento将搜索所有产品这个At ...

  9. magento产品eav笔记【持续跟新...】

    //magento把产品信息分在子表中,最顶上的表是catalog_product_entity,仅仅包含产品的信息(SKU) //表eav_attribute,这张表在magento里为全部不 同的 ...

随机推荐

  1. Nodejs异步异常处理domain

    前言 程序开发中,最麻烦的事情之一就是异常处理:对于Nodejs程序开发,最麻烦的事情莫过于异步异常处理. 以MVC的多层架构设计角度,异常总是要一层一层向上抛出,最后在客户端出打印错误.但是,Nod ...

  2. VS输入输出基本操作以及数据类型和类型转换

    (一)   C#项目的组成结构 项目结构 .config ---配置文件(存放配置参数文件) .csproj ---项目文件(管理文件项) .sln   ---解决方案文件(管理项目) .cs   - ...

  3. das,nas,san区别——大型数据中心会用NAS+SAN软硬结合思路

    DAS(Direct Access Storage-直接连接存储)是指将存储设备通过SCSI接口或光纤通道直接连接到一台计算机上.NAS(Network Attached Storage网络连接存储) ...

  4. vs2016 vsto excel addin deploy error: vsto 无法解析属性type的值

    https://social.msdn.microsoft.com/Forums/vstudio/en-US/ea33e391-21d7-4f54-92cb-c7af72f19c61/outlook- ...

  5. c# 关键字delegate、event(委托与事件)[MSDN原文摘录][1]

    A delegate is a type that safely encapsulates a method, similar to a function pointer in C and C++. ...

  6. redhat enterprixe 5.0 samba 服务器 rpm 安装及配置

    Samba是著名的开源软件项目,在Linux/UNIX系统中实现了SMB/CIFS网络协议,因此使得跨平台的文件共享变得容易.在部署Windows.Linux/UNIX混合平台的企业环境时,使用Sam ...

  7. qml 一些知识点

    1.pagestack进行页面调整的时候,需要对页面状态做一些跟踪: Stack.onStatusChanged: { if (Stack.status == Stack.Active) { //可以 ...

  8. 流控panabit的安装及配置

    软件: 在panabit的下载页面上,没有最新的版本.刚开始就是从这个地方下载的,但是有一块网卡怎么也找不到.各种加载网卡驱动,最后失败. 之后,从其论坛中发现了最新的2013.05版本,将ISO刻盘 ...

  9. ASP.NET MVC 输出字符串

    @{Output.Write("<h1>输出字符串</h1>");}

  10. 读取raw文件的方法。

    Android开发者有些文件比如音频,视频,.html,.mp3等等这些文件不希望编译器编译而保持原始原貌打包进apk文件(这在游戏开发中很常见和普遍,如游戏用到的游戏音乐.图等资源),那么可以使用A ...