我试图做的是设置3个不同的onepage结帐过程实例,我想最简单的方法是创建3个新的cms页面,使用以下内容覆盖xml(从checkout.xml中获取,请参阅发布代码底部)并且完成这项工作。onepage结帐的自定义实例,可能在magento中?
这加载所有内容的罚款,但作为一个客人时,它会触发一些失败重定向(位于onepage.phtml我相信)的步骤,它看起来不明白什么/ checkout/onepage/saveMethod是(在浏览器中返回403错误),我假设是因为我真的在cms页面的某个实例中,而不是结帐页面,因为在某些情况下不会在幕后加载。
我希望能够使用这种方法来定制这个过程,因为我觉得它看起来像最干净的方式去做它,而不必改变太多,但我不知道究竟是什么没有被加载在这里来做到这一点工作以及如何加载它。我试图找到一种方法来调用mage_checkout通过xml的东西或其他通过cms页面来识别它为结帐,并让它工作,但无法找到任何东西。
如果这是一个更简单的方法来做到这一点,我的最终目标实际上是拥有3个独立的/ template/checkout/onepage/phtml模板集合,因为它们会变得不同,附属于3个不同的url (我打算只隐藏默认/ onepage/checkout)。
<!-- Mage_Checkout -->
<remove name="left"/>
<reference name="root">
<action method="setTemplate"><template>page/2columns-right.phtml</template></action>
</reference>
<reference name="right">
<action method="unsetChildren"></action>
<block type="checkout/onepage_progress" name="checkout.progress" before="-" template="checkout/onepage/progress.phtml"/>
<block type="livechat/template" before="checkout.progress" name="livechat.chat" template="livechat/chat.phtml"/>
</reference>
<reference name="content">
<block type="checkout/onepage" name="checkout.onepage" template="checkout/onepage.phtml">
<block type="checkout/onepage_login" name="checkout.onepage.login" as="login" template="checkout/onepage/login.phtml"/>
<block type="checkout/onepage_billing" name="checkout.onepage.billing" as="billing" template="checkout/onepage/billing.phtml"/>
<block type="checkout/onepage_shipping" name="checkout.onepage.shipping" as="shipping" template="checkout/onepage/shipping.phtml"/>
<block type="checkout/onepage_shipping_method" name="checkout.onepage.shipping_method" as="shipping_method" template="checkout/onepage/shipping_method.phtml">
<block type="checkout/onepage_shipping_method_available" name="checkout.onepage.shipping_method.available" as="available" template="checkout/onepage/shipping_method/available.phtml"/>
<block type="checkout/onepage_shipping_method_additional" name="checkout.onepage.shipping_method.additional" as="additional" template="checkout/onepage/shipping_method/additional.phtml"/>
</block>
<block type="checkout/onepage_payment" name="checkout.onepage.payment" as="payment" template="checkout/onepage/payment.phtml">
<block type="checkout/onepage_payment_methods" name="checkout.payment.methods" as="methods" template="checkout/onepage/payment/methods.phtml">
<action method="setMethodFormTemplate"><method>purchaseorder</method><template>payment/form/purchaseorder.phtml</template></action>
</block>
</block>
<block type="checkout/onepage_review" name="checkout.onepage.review" as="review" template="checkout/onepage/review.phtml">
<block type="checkout/agreements" name="checkout.onepage.agreements" as="agreements" template="checkout/onepage/agreements.phtml"/>
</block>
</block>
</reference>
请说明一切的重点,以便我们真正理解问题 – 2011-02-04 08:28:27