Magento没有订单提交按钮

Magento没有订单提交按钮
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>

要更新为

<!--
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 type="core/text_list" name="checkout.onepage.review.info.items.after" as="items_after" translate="label">
                <label>Items After</label>
            </block>
            <block type="checkout/agreements" name="checkout.onepage.agreements" as="agreements" template="checkout/onepage/agreements.phtml"/>
            <block type="core/template" name="checkout.onepage.review.button" as="button" template="checkout/onepage/review/button.phtml"/>
        </block>
    </checkout_onepage_review>

我们通过对比可以发现XML少了两行的声明。

一般我们去分析XML文件的时候,没有谁可以直接看到问题所在,要通过与当前版本的default模板中的XML文件做下对比,才容易确定问题所在。

此问题也证明,平时收集Magento模板存起来意义不大,因为Magento升级太快了,跨两个版本模板就不好兼容了。比如1.3的模板用到1.5上,基本不会成功。所以大家不用存那么多的模板。

转载表明出处:www.hellokeykey.com

 

《Magento没有订单提交按钮》有17个想法

  1. 钥匙大哥,我也用了这个模板,不过发现这个模板在IE7IE8chome苹果等浏览器都没有问题,但是在IE6里面就会出现头部的搜索条排版错乱,请看我的网站www.chinaexportshop.com,您看看怎么解决啊,多谢。我的模板是se101

  2. 谢谢钥匙大哥,根据你的说法,我去搜索了下,有说法:

    IE都能识别*;标准浏览器(如Firefox,Opera,Netscape)不能识别*;IE6能识别*,但不能识别 !important,IE7能识别*,也能识别!important;FF不能识别*,但能识别!important;

    那我岂不是对skinfrontenddefaultse101cssstyles.css文件中的带!important的地方重点关注并修改测试就行了。
    因为在非IE6浏览器都是正常的,就说明问题出在IE6不能识别的地方咯。对么?

      1. 先谢谢你。我做了一下以下改变,有点思路,但是因为我经验不足,还没有完全完成。
        1、在styles.css里的第600行
        .header { text-align:right; position:relative; z-index:999; }修改为
        .header { text-align:left; position:relative; z-index:999; }
        效果就是搜索条和搜索条下面的热词能排列正常了。但是头部的mini cart依然错位。
        我在chome浏览器里审查元素,试着关闭header-middle里的float: left; 发现chome浏览器的显示效果和ie6里的一样了,都是购物包图标mini cart下移。所以,我觉得问题就出在这里。就是1945行里的.header-middle{wdith:480px; float:left; margin-top:12px;}里的 float:left和某个CSS冲突了。而且这个冲突导致在1945行里的不能执行。怀疑是其他的地方加了!importent。。。。。。苦于能力有限,找不出问题的CSS行列及如何修改,还请大哥有空帮忙,多谢多谢。

        1. 参考这个文章:http://www.hellokeykey.com/css-compatibility/ 如果只是ie6有问题,就只加对ie6起作用的代码。不要修改了也影响其它浏览器

  3. 钥匙大哥,我发现了,问题可能是在form.mini.phtml上,这个文件里定义了长宽高,导致和CCS里冲突。。。。。

  4. 这款模板安装后,有个小BUG,在用户登录后的MY ACCOUNT页面下,左边栏里有2个Compare Products,请钥匙告知在哪里修改啊,谢谢!

  5. 1.6.2.0版本的装了这个模版后,直接是点了proceed to checkout就没反应了,哪里出错了,帮忙看看

    1. 你的描述太笼统了,我无法分析出是什么原因,一般来说如果安装没有问题,也没有装插件的话,可能是你服务器的问题。

评论已关闭。