3

Vendor/Module/registration.php & put below code. <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, 'Vendor_Module', __DIR__ ); add the module.xml file in Vendor/Module/etc/module.xml & put below code. <?xml version="1.0"?> <config xmlns:xsi="http://www....


3

Below step need to follow: Step 1: create require config js files under the Vendor/ModuleName/view/frontend/requirejs-config.js var config = { config: { mixins: { 'Magento_Checkout/js/view/summary/abstract-total': { 'Vendor_Modulename/js/view/summary/abstract-total-mixin': true }, 'Magento_Checkout/js/view/...


3

Try following way to use magento default popup modal: app/code/SR/MagentoCommunity/view/frontend/layout/checkout_index_index.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="checkout" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> ...


3

There are two to possible this. Way 1: If you want to change the shipping address fields as well as billing address fields, you can do via theme transaction if you have made a custom theme as per your language. If you have a custom or third party theme: You might find a CSV file there. If you have kept locale as English(United States) which is a ...


3

You need to override template in below path inside your custom theme. app/design/frontend/vendor/theme/Magento_Checkout/web/template/form/element/email.html <!-- /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ --> <!-- ko ifnot: isCustomerLoggedIn() --> <!-- ko foreach: getRegion('before-...


2

Remove Postcode from Checkout Beacuse the php validation return false, inside class Magento\Quote\Model\Quote\Address you will find validate function : First create the di.xml inisde you extension directly in folder etc YourVendor/YourExtName/etc/di.xml and fill : <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...


2

Magento by default provide this. You need to go to Admin -> Store -> Configuration -> Sales -> Checkout-> My Cart Link Where you can find Field called Display Cart Summary Where you need to select Display number of items in cart option This will show number of items in cart not QTY.


2

You can override from vendor/magento/module-checkout/view/frontend/web/template/shipping-address/address-renderer/default.html to app/design/frontend/Vendor/Module/Magento_Checkout/web/template/shipping-address/address-renderer/default.html <!-- /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ --&...


1

That is magento's definition of one page checkout. Notice how the controller stays the same when switching between shipping and payment. This terminology comes from Magento 1 where before 'One page checkout' the checkout was split into multiple steps and separate screens. One page checkout was added after. If you are after truly on one page you will have ...


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

You need to follow below steps, by following these steps you can add your phtml files changes on checkout page's payment step after discount code. Create di.xml file here in your custom module app/code/Vendor/Module/etc/frontend/di.xml Content for this file is.. <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...


1

I found a solution. I've created one module and plugin. I added a page in admin panel for setting default cross sell items. Then I wrote beforeLoad plugin for Magento\Catalog\Model\ResourceModel\Product\Collection class and appended the ids I've set to the cross sell items. ├── Helper │   └── Data.php ├── Plugin │   └── CollectionPlugin.php ├── etc │   ├── ...


1

First of all, you are not looking to override a Core JavaScript file from Magento. You are trying to override a JavaScript file from a Module, in specific, Customer Module from Vendor. The methodology is the same as any other frontend inheritance from the Magento 2 Development process. https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/templates/...


1

You can use this plugin here: https://github.com/paylike/plugin-magento-2, this is a version that has been developed specifically for magento-2 and has been tested.


1

We use OneStepCheckout.com and the problem I have is after adding products to the shopping cart, they appear in the dropdown display of the shopping cart but the system says the Shopping Cart is empty when I click to display the shopping cart. I see that there is a newer version of One Step Checkout and I will upgrade and test again and report here but that ...


1

For this you have to use jQuery. I think xml move tag is not working for this. Go to onepage.phtml file and put this code at the end of the file <script type="text/javascript"> //<![CDATA[ require([ 'jquery' ], function($) { setTimeout(function() { $( "#iwd_opc_discount" ).insertAfter( "#onepage-checkout-shipping-method-...


1

The error was from Temando Shipping SaveCheckoutFieldsObserver. You can try fixing this by overriding Temando's SaveCheckoutFieldsObserver In your di.xml file, add this: <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> ...


1

You can try this one to get the order Id alone: $block->getOrderId() UPDATE: You can override the Block file of checkout success one page using preference and define your own method to get the order Id. Try this: In your custom module's di.xml file add this: <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...


1

I guess the easiest way to add some kind of information into the payment methods selection list will be to overwrite the templates of each of the payment methods which are rendered in that list. Each payment method has an Javascript payment method renderer (which usually extends Magento_Checkout/view/frontend/web/js/view/payment/default.js - there you find ...


1

Install Magento b2b module Add company and users Within company one customer place another customer order


1

I think, is it not a good idea that placing an order on behalf of other customers. I guess that It might be the issue with the security of the user. Magento does have not any feature like placing the order of a customer another customer account from frontend. So, you have to build your module your self. In such, I suggest to user rest API. Rest API does ...


1

After digging long time found the cause of this problem. We would need to provide the payment method details in the renders section of the custom layout xml. <referenceBlock name="checkout.root"> <arguments> <argument name="jsLayout" xsi:type="array"> <item name="components" xsi:type="array"> ...


1

You dont need to override Renderer.php file in core and you should never do in core. You can just changes in sidebar.phtml file and set your changes. You can get price from below method: $finalPrice = $item->getProduct()->getFinalPrice(); $normalPrice = $item->getProduct()->getPrice(); After getting above changes you can do it below code in ...


1

As usual Magento checkout page is the most overloaded with JS, that is why it is so slow. There are also other issues that influence load time: complex network code extra price rules useless shipping and payment methods etc. Here is the guide that will help you cope with all these difficulties: https://onilab.com/blog/magento-checkout-slow-fix-it-in-8-...


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