Questions tagged [checkout]

This tag should be used for questions related to the Magento checkout process.

Filter by
Sorted by
Tagged with
9
votes
2answers
1k views

Magento 2 checkout custom field validation

Magento2 checkout - what is the best method to add validation for my custom checkout field which depends on selected shipping method? For e.g. I am adding field to address form in LayoutProcessor ...
6
votes
0answers
483 views

How to apply custom validation in Magento 2 checkout Shipping Address form?

In Magento2 - I want to apply some custom validation on shipping address form of Magento 2 Checkout. Normally I do it with JQuery but don't know how to apply it in Magento 2. The validation I want to ...
0
votes
3answers
59 views

Magento 2 : Add custom Gift message programmatically during checkout

I want to SET gift message programmatically in current order(one message for whole order) during Checkout. Currently, I trying using sales_order_save_after event to edit order but didn't get succeed. ...
0
votes
0answers
19 views

Magento2: Check the payment tab is activated

I have init js and corresponding template in checkout_index_index (after payment method). In that template, I have added on checkout after the payment methods. If I checked the checkbox, I have ...
0
votes
1answer
61 views

Magento 2.3: How to make a custom block with all added items in the cart?

I am using Porto theme. In addition to the available mini cart sidebar, I'd like to create a custom block on the right side with a sticky cart, so customers would be able to see what they add and what ...
0
votes
0answers
18 views

How to make Magento 2 second address field show inline without popup?

When clicking on the new address button, Address field show below the button inline without an open popup. Look like extend the div. I found some question and answer like this but no one gives a clear ...
0
votes
1answer
983 views

Get last added product in minicart magento2

After product is added to cart, I want to open minicart and mark it with some styles. I found http://magento.stackexchange.com/questions/141507/magento-2-open-minicart-when-item-is-added how to open ...
0
votes
3answers
970 views

How do you make the Place Order button disabled until after the address update button is pushed?

I am in Magento 2.13. If a customer checks out and uses a different billing and shipping address, the place order button is live, even if they have not pushed the update address button. This causes ...
3
votes
1answer
1k views

Magento 2 : Issue with the custom field on checkout page

Installed Version of Magento is - 2.1.0 I have added a custom field "Bank Account Number" as you can see red square box in the below image. The problem I am facing is that it's not getting displayed ...
0
votes
1answer
119 views

Magento 2 Bug | Customer Places Order in Cart, then out of stock when checking out

On our Magento 2 page we have a bit of customers placing an item in cart (in stock) but when checking out after placing order, it gives an error saying the item is out of stock... but it places the ...
2
votes
2answers
70 views

In Magento 2 Uncaught ReferenceError: Unable to process binding “optgroup: function(){return options }”

In magento 2, how to get a custom attribute option value in select field in checkout page app/code/Cm/CustomerAttribute/Model/Plugin/Checkout/LayoutProcessor.php <?php namespace Cm\...
6
votes
1answer
1k views

Magento 2 custom address fields not saving to database from checkout

Through a setup script I created two new customer address fields for Magento 2. These field show up nicely in the backend and checkout. But, the values are not send from checkout to the api. Now the ...
0
votes
0answers
11 views

How to show old price and special price in order summary block in the checkout page

I am working on a module to show the old price, new price and the discount to show on the cart page and checkout page (order summary block), I am able to show this on the cart page but I need your ...
0
votes
0answers
13 views

Cannot create property 'messages' on string '{'cart:

I have a very annoying problem: randomly our customers get the next javascript error,which hangs the shopping process, it also appears in the cart view. Uncaught TypeError: Cannot create property '...
0
votes
1answer
21 views

Magento 2 - Custom Payment Module Order Email

I have a custom payment module and I can see the method in the frontend and in the order form in the admin. Where I don't see it is in the order email. What do I need to do to get it there?
0
votes
1answer
27 views

How to Get List of Coupons Available for Customer Using REST API

I need to get the List of Coupons Available for Logged in customers using REST API.
3
votes
2answers
1k views

magento2 - before place order

I'm struggling to override or get in the middle of some checkout action scripts, for example the place-order method of app/code/Magento/Checkout/view/frontend/web/js/view/review.js I can see there is ...
1
vote
0answers
29 views

Magento 2.3 Change position of “Review & payments” section on checkout page

I want to change the position of the highlighted section at the "review & payments" section within the checkout so the billing address is before the payment methods. I've created an image to ...
0
votes
0answers
31 views

magento 2 checkout page terms and condition not working

I have Added Terms And Condition On checkout page but after clicking on Place Order button getting 400 bad request. Message : Payment method : Check / Money order The order wasn't placed. First, ...
2
votes
1answer
263 views

Magento 2 display custom input radio in checkout page and save into sales_order table

I am trying to display with custom input radio button in checkout page as like below image and trying to save in Sales_order table. Here I am able to display the input radio button in checkout page ...
0
votes
0answers
208 views

Coupon Code in Right hand Side of Onepage Checkout giving error of 503 (Service Unavailable)--for guest checkout

The below code is working fine for Logged In users, for guest checkout it is not working. it's showing below error : `jquery-1.10.2.min.js:6 POST http://example.com/checkout/onepage/coupon/ **503 (...
0
votes
1answer
74 views

Magento 2 - Using jQuery on HTML page

I have a custom offline payment module and I am trying to use jQuery to hide a div in frontend/web/template/payment.html: <script> require([ 'jquery' ], function($){ if ( $('#payroll-form'...
9
votes
3answers
12k views

How to Add Custom fields to Checkout page in Magento2

I need to add two custom fields in each shipping and payment steps of checkout page in Magento 2 and also data should be saved in needed tables how to do it in Magento 2
2
votes
1answer
36 views

How to add text under the countries in checkout shipping address [closed]

How to add text between countries and phone number magento2 checkout shipping address.
1
vote
2answers
728 views

Magento2 - New customer address attribute won't save to database

I'm trying to define a new customer address attribute that will be available in all the customer address forms (backend, frontend, checkout). I've used the information provided here: https://devdocs....
1
vote
1answer
26 views

Set Default Billing Address as Billing Address via knockout on checkout page

The Checkout page is currently loading Shipping address as billing and shipping address. I want to load default billing address on checkbox click and set it to order before save. I dont know how to ...
1
vote
0answers
36 views

Magento2 - How to know in model billing-step or shipping-step

Magento2 - I want to know, its billing address or shipping address in checkout page. How to check, checkout form is billing form or shipping form... Thanks.
4
votes
1answer
75 views

Magento 2: Add active class on selected shipping method

I want to add active class When I select a shipping method on the checkout page. For example: If I select free shipping then active class should be added on radio button which is free shipping. ...
0
votes
1answer
64 views

Checkout page takes 7 or more seconds to place order

My checkout page is taking 7 or more seconds every time to place order. Can anybody let me know what could be the possible reason or how can I debug this issue? I am totally confused from where ...
4
votes
1answer
1k views

Magento 2: theme xml for custom phone validation in checkout

I've created my own validation rule phonePL in app/design/frontend/Me/myskin/Magento_Ui/web/js/lib/validation/rules.js I can activate it in Magento/Checkout/view/frontend/layout/...
3
votes
1answer
3k views

Can't Access Quote from checkout session after returning from payment Gateway

I am building payment gateway extension and i am facing small issue to get the quote object after control return from payment Gateway. Let me explain you in detail. I am using below funtion to ...
1
vote
2answers
2k views

Magento 2 - redirect to final checkout page (checkout success/failed)

I have a custom payment module. When the user select this payment method at checkout, he is redirected to custom module controller, which redirects him to payment gateway. Then he fills his credit ...
0
votes
0answers
7 views

Configurable product not redirecting to checkout page after clicking buy now button

Configurable product not redirecting to checkout page after clicking buy now button. After checkout page it comes to this url http://localhost/magento/checkout/noroute/ For simple product it is ...
0
votes
4answers
5k views

Magento2 - How to trigger onchange event on Country/region in Shipping Address

I want to customize checkout page where I can add my jQuery on change event on country, region field, So Whenever Customer change field like country,region option few rest of fields like city, zip/...
8
votes
2answers
6k views

Disable entire cart functionlity & checkout in magento2

From admin side i can disable one step checkout,but still users can add products to cart.I want to display only products without checkout. Is there any extension there? I mean disable mini cart,add to ...
0
votes
0answers
19 views

Magento 2 - Show Custom Message When Custom Payment Method is not Available

I have a custom payment method that gets a customer attribute and if it doesn't match the value of that attribute the method does not show. I wanted to show a custom message when that happens. I ...
0
votes
0answers
25 views

OnePageCheckout Payment Error

As the title says, I'm unable to one page checkout. I've updated the extension (Mageplaza) and the error came. I rewinded the update (I had all the previous files), but the error is still here, so I ...
0
votes
1answer
32 views

Magento 2 - How to move email field in checkout page?

I Want to Move Email Field below phone number. can any one help? Any help would be appreciated. Thanks In advance.
7
votes
5answers
2k views

Update price in checkout page without refresh Magento 2

I have a controller where I apply some discount on the checkout page. Now, I can see the price change just after I refresh the page. I search for a solution, to refresh the price using a Js file. ...
0
votes
0answers
19 views

Mangeto2.3.0 How to add country drop-down with tool-tip help in billing-address form?

I am using Mangeto2.3.0 i need to add tooltip help "?" define with county filed. I am trying to vendor module-checkout inside layoutprocessor.php override but not working on it.if anyone idea reply me ...
0
votes
3answers
25 views

Shipping Address in Magento 2 logged in customer on checkout

form where this coming . this is login customer shipping address
1
vote
1answer
23 views

Magento 2 - Customer name validation

On the checkout shipping section the first and last name input fields have validation on them which doesn't accept hyphens (-) or ' characters I had a look in lib/mage/validation.js but can't see ...
1
vote
1answer
1k views

Magento 2: How to use event trigger on the checkout page?

How to use event trigger when change "State/Province " drop-down on the checkout page? I'm trying to page reload when user change Region from "State/Province" dropdown in the checkout page. First, ...
1
vote
0answers
25 views

Magento 2 : “My billing and shipping address are the same” checkbox remain unchecked

I have created a custom extension for product based cash on delivery. I have followed the below link for creating the extension. Disable payment method programmatically in Magento2 Everything works ...
0
votes
0answers
19 views

How can I select 'Shipping' step on checkout page after updating product item from minicart

How can I select Shipping step on checkout page after updating product item from minicart? when I am on Review & Payment step, at that time if I click on incremental of mini cart then page does a ...
0
votes
2answers
29 views

Magento 2 - Get Cart Total in Observer

I needed to get the cart total in my observer. Here is the code I have: use Magento\Framework\Event\Observer; use Magento\Framework\Event\ObserverInterface; use Psr\Log\LoggerInterface; class ...
3
votes
3answers
2k views

Magento2 checkout/onepage/success redirects to cart

When I use PayPal Plus(PayPal, credit cards) ,the checkout success page is not shown. Instead is redirected to checkout/cart/. The redirection happens in this file: Magento\Checkout\Controller\...
13
votes
4answers
6k views

How to show a custom attribute in the admin Shipping Address box?

I have added the drop-down custom field on the checkout page with custom values. It's working fine also save attribute values in the database but not display in the order shipping address. Any idea ...
1
vote
1answer
24 views

Add html attribute maxlength to street input field in magento 2 checkout page

How to add new html attribute maxlength="10" to street input field on shipping address form. Thanks
2
votes
1answer
127 views

Magento2 - How to remove certain States from list at Checkout or registration?

the list of region with depend country, i want to remove certain state from everywhere in site.. like I want to remove - Alaska, Hawaii, American Samoa, Guam, Marshall Islands. How we can achieve ...