J2t_Ajaxcheckout安装

发布于 2024-09-17 18:59:14 字数 376 浏览 3 评论 0原文

问题与magento社区众所周知的J2T Ajax cart有关,可以找到此处

尽管安装看起来很简单,但假定您将文件复制到适当的目录并从管理员面板进行修改。 “成功”安装后,购物车的行为保持不变。我使用了“成功”这个词,因为 JavaScript 文件是与 CSS 一起加载的。

安装过程中是否缺少任何其他步骤? (注:开发magento的版本是1.4.0.1)。

Question has to do with the well known to the magento community, J2T Ajax cart, which can be found here.

Although the installation seems straightforward, you are assumed to copy the files to appropriate directories and modify from the administrator panel. After a "successful" installation cart's behaviour remains the same. I used the term "successful" since the JavaScript files are loading along with the css.

Are there any additional steps missing from the installation procedure?
(note: development magento's version is 1.4.0.1).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

晨曦慕雪 2024-09-24 18:59:14

插件结构

  • frontend/default/default/images/j2t
  • frontend/default/default/css/j2t
  • frontend/default/default/layout/j2tajaxcheckout.xml
  • frontend/default/default/template/j2tajaxcheckout

注释了所有 j2tajaxcheckout.xml 并添加到 catalog.xml

<default>         
 <reference name="before_body_end">
   <block type="core/template" name="j2t_ajax_wrapper" after="-" template="j2tajaxcheckout/ajax_wrapper.phtml" />
 </reference>
</default>

和最终文件 catalog.xml

<!--
AJAX cart modulo
-->

   <j2tajaxcheckout_index_cart>
        <reference name="root">
            <action method="setTemplate"><template>page/1column.phtml</template></action>
        </reference>

        <reference name="content">
          <remove name="head"/>
            <remove name="header"/>
            <remove name="footer"/>
            <remove name="left"/>
            <remove name="right"/>
            <remove name="before_body_end"/>

            <block type="j2tajaxcheckout/cart" name="j2tajaxcheckout" template="j2tajaxcheckout/ajaxcart.phtml">
                <block type="checkout/cart_sidebar" name="cart_sidebar_ajax" as="cart_sidebar_ajax" template="checkout/cart/sidebar.phtml">
                    <action method="addItemRender"><type>simple</type><block>checkout/cart_item_renderer</block><template>checkout/cart/sidebar/default.phtml</template></action>
                    <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/cart/sidebar/default.phtml</template></action>
                    <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/cart/sidebar/default.phtml</template></action>
                </block>
            </block>
        </reference> 
    </j2tajaxcheckout_index_cart>

Plugin extructure

  • frontend/default/default/images/j2t
  • frontend/default/default/css/j2t
  • frontend/default/default/layout/j2tajaxcheckout.xml
  • frontend/default/default/template/j2tajaxcheckout

comented all j2tajaxcheckout.xml and add to catalog.xml

<default>         
 <reference name="before_body_end">
   <block type="core/template" name="j2t_ajax_wrapper" after="-" template="j2tajaxcheckout/ajax_wrapper.phtml" />
 </reference>
</default>

and final file catalog.xml

<!--
AJAX cart modulo
-->

   <j2tajaxcheckout_index_cart>
        <reference name="root">
            <action method="setTemplate"><template>page/1column.phtml</template></action>
        </reference>

        <reference name="content">
          <remove name="head"/>
            <remove name="header"/>
            <remove name="footer"/>
            <remove name="left"/>
            <remove name="right"/>
            <remove name="before_body_end"/>

            <block type="j2tajaxcheckout/cart" name="j2tajaxcheckout" template="j2tajaxcheckout/ajaxcart.phtml">
                <block type="checkout/cart_sidebar" name="cart_sidebar_ajax" as="cart_sidebar_ajax" template="checkout/cart/sidebar.phtml">
                    <action method="addItemRender"><type>simple</type><block>checkout/cart_item_renderer</block><template>checkout/cart/sidebar/default.phtml</template></action>
                    <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/cart/sidebar/default.phtml</template></action>
                    <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/cart/sidebar/default.phtml</template></action>
                </block>
            </block>
        </reference> 
    </j2tajaxcheckout_index_cart>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文