如何通过XML代码或其他内容重新排列magento 2页面块div



我想重新排列我的 magento2 页面 HTML 块,我尝试过通过 XML 标签,但它在移动,但我无法移动我必须放置的确切位置,所以请帮助我自定义页面块或任何人有页面自定义工具或任何其他提示?

在您的主题中,您需要在Vendor/Theme/Magento_Checkout/layout/下放置一个checkout_cart_index.xml

在那里你可以像这样使用 move 指令

<move element="checkout.cart.coupon" destination="cart.summary" before="checkout.cart.summary.title"></move>

最新更新