Questions tagged «giftmessage»

2
将礼品消息表格块从购物车移动到结帐步骤1
我正在尝试将“礼品选项”块(礼品消息表单)从当前“购物车”页面移至“结帐(运费)”的第一步。我需要将其放在“运输方法”下。我尝试在主题中添加GiftMessage模块,并在其中修改了布局文件checkout_index_index.xml,以引用用于插入Gift Message的checkout根块,但这没有用。任何帮助将不胜感激。谢谢! <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="checkout" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceBlock name="checkout.root"> <block class="Magento\GiftMessage\Block\Cart\GiftOptions" name="checkout.cart.order.actions.gift_options" template="cart/gift_options.phtml" cacheable="false"> <arguments> <argument name="jsLayout" xsi:type="array"> <item name="types" xsi:type="array"/> <item name="components" xsi:type="array"> <item name="giftOptionsCart" xsi:type="array"> <item name="component" xsi:type="string">Magento_GiftMessage/js/view/gift-message</item> <item name="config" xsi:type="array"> <item name="template" xsi:type="string">Magento_GiftMessage/gift-message</item> <item name="formTemplate" xsi:type="string">Magento_GiftMessage/gift-message-form</item> </item> </item> </item> </argument> </arguments> </block> </referenceBlock> </body>
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.