New answers tagged

0

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 │   ├── ...


0

To add validation on the zip field we should overwirte Magento_Checkout/layout/checkout_index_index.xml and add this code : <item name="validation" xsi:type="array"> <item name="validate-zip-us" xsi:type="string">true</item> </item> Like this <item name="postcode" xsi:type="array"> <item name="sortOrder" xsi:...


0

Maybe I understood something wrong, but as I'm aware shipping is only available for simple products. If you use virtual products on your configurable products then no shipping would appear in checkout simply because a order consisting only of virtual products is not shipable? We are working with a heavily customized checkout so I'm not sure if that is also ...


0

The above answers are good and work. I am proving a full answer here with proper solution so it will not affect other sections of the website. create Magento_Weee folder at app\design\frontend\{your_vendor_name}\{your_theme_name} if folder already not exist. create a file named checkout_item_price_renderers.xml if not exist. Put below line of code into a ...


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

Might be it will be working with default but i am using lotusbreath one page checkout $this->getOnepage()->getQuote()->save(); /** * when there is redirect to third party, we don't want to save order yet. * we will save the order in return action. */ if (isset($redirectUrl)) { $result['...


0

I have reviewed your module and found below thing you need to update. web/template/checkout/field-group.html should be come under frontend/web/template/checkout/field-group.html. After the update, please run a static-content command and let me know if you are still facing the same issue. Hope above solution will work for you.


0

The purpose of OnePage Checkout is to gather the information that is needed, and complete the sale as quickly as possible. When Onepage Checkout is enabled, the entire checkout process takes place on a single page. Each section of the checkout information is expanded as needed. Otherwise it will expand more than one page for gathering the information ...


0

This free extensions will help you out: https://github.com/riconeitzel/PaymentFilter


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-...


0

I'm not sure about your case. But, there is a call back function after placing order. vendor/magento/module-checkout/view/frontend/web/js/view/payment/default.js /** * After place order callback */ afterPlaceOrder: function () { // Override this function and put after place order logic here }, Put this function in your custom ...


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.


0

@Anton Evers so please let me know which files I need to change within path. thanks


Top 50 recent answers are included