Questions tagged «terms-and-conditions»

2
条款和条件的验证(自定义模块)
我制作了一个自定义模块,使我可以将T&C复选框移动到摘要div中的付款方式和下订单按钮下方,如下所示: 现在,每当我选择一种付款方式时,请选中“条款和条件”中的复选框并按“下订单”,将弹出以下内容: 我已经尝试了以下方法,但不幸的是没有运气: Magento 2-在结帐中移动条款和条件的位置 提交订单后的Ajax有效负载: 在不使用模块的情况下使用结帐时,有效负载的内容(付款信息)具有: extension_attributes: {agreement_ids: ["1"]} agreement_ids: ["1"] 当使用我的自定义模块时,它如下: extension_attributes: {agreement_ids: [""]} agreement_ids: [""] 因此它是空的...这可能是问题所在。我该如何解决? 码 module.xml <?xml version="1.0" ?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd"> <module name="Vendor_Checkout" setup_version="1.0.0"> <sequence> <module name="Magento_Checkout"/> </sequence> </module> </config> checkout_index_index.xml <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <head> <css src="Vendor_Checkout::css/checkout.css"/> </head> <body> <!-- Disabling the T&C checkbox …
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.