3

You can create default.xml file here in your module app/code/Vendor/Module/view/frontend/layout/default.xml Content for this file is.. <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <...


3

Notice the line this.customer = customerData.get('customer'). customerData.get() returns a ko.observable({...}). If you want to dig deeper, you can look at the get function from Magento_Customer/js/customer-data. This one returns buffer.get(sectionName) (buffer is a variable defined in the same file). and buffer.get looks like this: get: function (...


2

First of all, To update message in checkout payment step you need to update payment.html file and then, to pass custom link you need to create mixin of payment.js Follow below steps for add link in payment steps when no payment methods available : 1) app/code/RH/CustomCheckout/view/frontend/requirejs-config.js var config = { map: { '*': { ...


2

You need to create plugin for add store name with each product. Follow this below steps and add code in appropriate file : app/code/RH/CustomCheckout/etc/frontend/di.xml <?xml version="1.0"?> <!-- /** * Copyright 2015 Magento. All rights reserved. * See COPYING.txt for license details. */ --> <config xmlns:xsi="http://www.w3.org/2001/...


1

You can overwrite /Magento_Checkout/js/view/shipping-address/list.js [OR Magento_NegotiableQuote/js/view/shipping-address/list.js* if Magento_NegotiableQuote module available] in your custom theme to show drop down shipping address list in checkout page. I assume you are using a custom theme "Company_default". Please follow the steps describe below. step ...


1

Try <button class="action primary" data-bind="click: showPopup.bind($data)"> <span>Verify OTP</span> </button> Inside your method showPopup js code showPopup: function(){ var _self = this; console.log(_self.value()); }


1

You can put your js function direclty in html like this : <div class="primary" data-bind="afterRender: function(){ jQuery('button#phone').click(function() { alert('it works'); }); }"> <button id="phone" class="action primary"><span>Verify OTP</span></button> </div> If you ...


1

Create di.xml file in Vendor/Module/etc/di.xml & put below code. <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <type name="Magento\Checkout\Block\Checkout\LayoutProcessor"> <plugin name="...


1

You can create one function in payment.js file using this way Create requirejs-config.js file here in your custom module app/code/Vendor/Module/view/frontend/requirejs-config.js Content for this file is.. var config = { config: { mixins: { 'Magento_Checkout/js/view/payment': { 'Vendor_Module/js/view/payment-mixin'...


1

I have a suggestion for you, we can get street: quote.shippingAddress().street[0] It's an array.


1

I've investigated this subject a little deeper and tried multiple solutions to fix the problem. Injecting a subform (UI component fields) via AJAX didn't work without having to write a ton of code. Module\Name\Plugin\Magento\Framework\View\Element\UiComponentFactory <?php declare(strict_types=1); namespace Module\Name\Plugin\Magento\Framework\View\...


1

Ok, I finally found a better way to do it. I used https://igorescobar.github.io/jQuery-Mask-Plugin/ Then I create a module in which I create a requirejs-config.js in /vendor/module/view/frontend/requirejs-config.js with following code var config = { map: { '*': { mask: 'BeeVirtual_Telephone/js/mask' //this the js found in ...


1

you can use <button type="submit" class="action primary"> <span data-bind="text: $t('Send link to a Friend')"></span> </button>


Only top voted, non community-wiki answers of a minimum length are eligible