Skip to content

checkout

Auto Added by WPeMatico

Mandatory custom field in the payment choice process

I’m trying to add a checkbox in the payment selection process. The checkbox appears correctly. I can’t get it to be handled as mandatory. What am I doing wrong? This is my code: $jsLayout[‘components’][‘checkout’][‘children’][‘steps’][‘children’][‘billing-step’][‘children’][‘payment’][‘children’][‘payments-list’][‘children’][‘before-place-order’][‘children’][‘privacy’] = [ ‘component’ => ‘Magento_Ui/js/form/element/abstract’, ‘config’… Read More »Mandatory custom field in the payment choice process

Validate if render referenceBlock in checkout layout

I have tried validate if render referenceBlock in checkout layout, but it does not work. I added block VendorModuleBlockIndex in layout after referenceBlock Vendor/Module/view/frontend/layout/checkout_index_index.xml <referenceBlock name=”checkout.root”> <block class=”ElTiempoEfectyBlockIndex” name=”is_book”> <arguments> <argument name=”jsLayout” xsi:type=”array”> <item name=”components” xsi:type=”array”> <item name=”checkout” xsi:type=”array”> <item… Read More »Validate if render referenceBlock in checkout layout