gpt4 book ai didi

php - config.xml 覆盖导致购物车不可见?

转载 作者:行者123 更新时间:2023-11-28 10:07:08 25 4
gpt4 key购买 nike

我正在 magento 平台上构建第二个“添加到购物车”按钮,并具有不同的重定向。我使用的教程是不言自明的。 See here由于重定向到位,它工作正常。问题是:购物车本身不再显示其页面 (cart.phtml)。

知道如何解决这个问题吗?或者说问题出在哪里?如果我删除下面的代码,购物车就会再次回来,因为重定向不再起作用。

文件:config.xml

<global> 
<routers>
<checkout>
<rewrite>
<cart>
<to>mycheckout/cart</to>
<override_actions>true</override_actions>
<actions>
<add>
<to>mycheckout/cart/add</to>
</add>
</actions>
</cart>
</rewrite>
</checkout>
</routers>
</global>

最佳答案

似乎您的扩展程序没有扩展您正在覆盖的购物车 Controller ,因此无法显示原始 Controller 中的方法

关于php - config.xml 覆盖导致购物车不可见?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8120052/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com