Questions tagged [checkout]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
26 views

Add Custom Header In Checkout Shipping

I am trying to add custom headers to the checkout process to break the forms up into sensible sections. I have already modified checkout_index_index.xml to alter the sort order of my form. It now ...
7
votes
3answers
3k views

Magento 2.2.5: How to validate shipping address

I'm doing Custom Checkout, and here is what i've done til now. The adea is to use validate so when i click on "Next" button, it gonna check if the checkbox in "Terms of Use", if its checked, then it ...
0
votes
1answer
591 views

How to change product name after add to cart magento 2

How to change the name of the product, when adding a product to the cart using observer in Magento 2 I use the following code: $item->setCustomPrice($specialPrice); $item->...
0
votes
1answer
14 views

Is it possible to add date picker in checkout magento 2

I been trying to figure out how to add date picker in checkout. I can add date picker by plugin but I am not sure if that is correct way. I was expecting this to be done through knockout js but I ...
0
votes
0answers
16 views

get checkout value for new field Magento 2

I have created a field in Frontend which is a datepicker. I have used a plugin <type name="Magento\Checkout\Block\Checkout\LayoutProcessor"> <plugin name="date_picker" type="Module_Name\...
2
votes
4answers
146 views

Toggle “required/not required” field in checkout

I have added a custom field in checkout called "Area". Area field is required by default, but I'd like to change that based on the selected country. If customer selects a country other than FR, then ...
1
vote
0answers
9 views

Magento 2 how to add date of birth in checkout (date picker)

I want to add the date of birth date picker in checkout only for guest users. I have read a few things which indicate that I have to use knockoutjs. But I wasn’t sure what is the correct way to ...
0
votes
2answers
46 views

How to load JavaScript after Ajax has loaded?

I have a custom payment module and I am trying to show a message on the payment page using jQuery. My JS file is being called on the shipping page but not when the user clicks on the next step and ...
1
vote
2answers
358 views

Add custom validator on phonenumber in checkout

On checkout I want users to be able to use 0-9 + and - in the phone field. I'm trying to add a custom validator in my module but I can't seem to get it to work. I followed the steps in this tutorial ...
0
votes
0answers
10 views

M2 - Minus coupon code on order summary

If a user adds a coupon code i.e. (10% off) is there a way this can be deducted off the items price in the order summary on the checkout? For example the price of the item would be $26.10 on the image ...
5
votes
1answer
1k views

Magento 2.2.1 Checkout page broken and Js fail to load error

I have installed Magento 2.2.1 and set up my custom theme but checkout page looks broken and consoles showing errors: Not sure how to resolve this issue. Need help how can this be resolved. How ...
0
votes
1answer
130 views

The HOME or COMPOSER_HOME environment variable must be set for composer to run correctly Error

When I try to complete the checkout by paying with Hosted Payment Form (mastercard module) I get an error 400 Bad request. I was reading the exception.log file and I found an error that says the ...
0
votes
0answers
19 views

Magento 2 : How to add custom zipcode field in braintree payment form and send in payment request?

I want to add a custom input field in the Braintree payment method form and send that field value to Braintree, for validate on Braintree side. How can I achieve this? I want the input field for zip ...
0
votes
1answer
24 views

Move Coupon field

I have a coupon field in the File path: /theme/template/checkout/onepage/progress.phtml Code: <br><?php echo $this->getChildHtml('coupon') ?><br> I wan to move this to: /theme/...
0
votes
1answer
967 views

Getting the custom product attribute in the Checkout summary Magento 2

I have a custom product attribute which we are using in place of name for some reason. I need to change this through out the site. I got success in getting this in minicart , product and cart page. ...
1
vote
1answer
595 views

Delete operation is forbidden for current area error when creating account from checkout success page

When creating an account from the checkout success page the following error is shown. "Delete operation is forbidden for current area" Console shows: Failed to load resource: the server responded ...
0
votes
0answers
11 views

Paypal Plus not redirecting to Magento Success page after Payment complete

When I use PayPal Plus, checkout success page is not show. It's redirected to checkout/cart/. How to redirect it to success page? Please help me
0
votes
0answers
6 views

how to auto-create customer after checkout in magento 2 code and files?

I need that button "place order" after checkout create new customer from guest on first checkout page with a password which will be generated by the code. "place & order" send email to new ...
0
votes
0answers
14 views

Checkout page not loading in Firefox browser

Checkout page has some below js error in Firefox browser Error: "Script error for: https://commerce.adobedtm.com/v3/ds.min.js http://requirejs.org/docs/errors.html#scripterror" Error: "...
0
votes
1answer
18 views

Checkout page take too much time to load

On my magento 2.3 website when i go to checkout page, it take too much time to load. It goes to infinite loading and does not display anything. see https://prnt.sc/ph91kn Please help how to solve this ...
3
votes
0answers
33 views

How to get the applied custom discount amount in observer?

I followed the steps in the below link to apply custom discount [https://magento.stackexchange.com/a/93349/21007][1]. But I need to get the applied custom discount amount in the observer event of ...
0
votes
1answer
617 views

How to skip Shipping method step in checkout if only one shipping method in Magento 2?

I have only one shipping method on my website. Do I want to skip shipping method step on the checkout page?
0
votes
0answers
7 views

M2 : Reorder input fields on IWD OPC checkout page

I want to put Postcode filed upon the city on IWD_OPC checkout page. I already tried to make changes onepage_index_index.xml of IWD_OPC but it is not reflecting. Can someone please help me into ...
0
votes
1answer
402 views

Magento 2 - Duplicate Order Issue

I am currently running a magento 2 website (ver. 2.2.6). I have been an issue (pretty frequently) where some customers (not all) are reporting that they are commonly receiving an error upon ...
0
votes
0answers
19 views

Magento2 : How to render payment methods on checkout page by default?

I want to display the payment method list by default. So please help me. On the checkout page. In Magento 2.3.1 when I will go to the checkout page then there are 2 steps. So I want to remove steps ...
1
vote
1answer
841 views

Magento 2: How to add cart summary after Update shopping cart button?

how can i get cart summary button after "update shopping cart" button ?? This is mobile view, don't worry about desktop view.
0
votes
1answer
980 views

Magento 2: Change UI template

For the checkout, I would like to use a different UI template to that which is used on the cart. Currently, they both use the same UI template: <item name="template" xsi:type="string">ui/form/...
1
vote
3answers
493 views

Magento 2 how to check module enabled or not for override html?

How to check module enabled or not for override html? I have answer to hide "new address" button from checkout page here Magento 2 - Checkout. Remove “New Address” button from billing/shipping ...
0
votes
0answers
11 views

Magento 2.3.2 No Conversion tracking data

I have been having issues with Magento 2.3.2 conversion tracking in Google analytics. I have tried many different free extensions but still not having any luck. We are using magento native checkout ...
0
votes
1answer
947 views

how i set the checkout cart xml file in magento 2?

This is my code in magento1 <checkout_cart_index translate="label"> <label>Shopping Cart</label> <remove name="right"/> <remove name="left"/> &...
0
votes
1answer
2k views

How to get credit card number and cvv code in redirect payment method

Basically i have this lines: <?php // Retrieve order $session = Mage::getSingleton('checkout/session'); $orderIncrementId = $session->getLastRealOrderId(); $order = Mage::getModel('...
2
votes
0answers
31 views

How to set restrictions for specific states in Magento 2?

How to restrict user on checkout page, If user select value of State like Alaska or Hawaii it should throw an error.
4
votes
2answers
1k views

Override method in LayoutProcessor

I want to make changes(PHP code) to the method processPaymentConfiguration, but I don't know how I can override the method so my changes have a higher priority. I can alter the LayoutProcessor file ...
4
votes
0answers
265 views

Magento 2 : Can We Convert Price Into Ceil Price

I have setup multi store view with multiple currency. Everything is working as expected. Now, I got requirement to convert all prices into ceil. (e.g, SR20.02 = SR21). For this task, I have ...
4
votes
1answer
934 views

cannot get extension attributes value

The value can post However,I cannot get Extension attributes on my plugin which intercept Checkout success controller code. getExtensionAttributes always return null <?php namespace Genning\...
0
votes
1answer
12 views

Remove my custom attribute code and only show the value in the checkout address summary

Is there a way to remove my custom attribute code and only show the value? I created a custom address attribute "special_instructions" and when I add an address in my account section everything ...
2
votes
1answer
1k views

Product dimensions in Magento 2.2.5 update

I have installed Magento 2.2.5 locally with sample data. Now three new attributes Length, Width, Height Added. These are the default attributes, created by Magento 2.2.5 or by some third party ...
0
votes
0answers
9 views

Magento 2.3 - Move placed form in checkout to bottom

Following this answer and slightly editing the LayoutProcessorPlugin I managed to get the billing-address form in the shipping-address form. But it is shown beneath the e-mail adress input, and above ...
0
votes
1answer
28 views

Magento 2.3 remove country and region fields from checkout

When removing country and region fields from Magento_Catalog/layout/catalog_product_view.xml with componentDisabled <item name="country_id" xsi:type="array"> <item name="config" xsi:type=...
0
votes
0answers
21 views

How to show all in one step shipping address, shipping method, payment method billing address and summary?

I want to make functionality to display all steps on one page with show mode. So right now default functionality is to 2 steps on the checkout page but I need all in one step.
4
votes
1answer
655 views

Magento 2 order redirected to cart -> getLastSuccessQuoteId() returns false

I'm trying to place order in magento 2.1.7 but every-time I click the "place order" button, I get redirected to the cart page. With debugging I found out, that in the class /vendor/magento/module-...
3
votes
0answers
377 views

Magento 2 make purchase order number optional

In Magento2 - Is there a way to make the purchase order number in the checkout optional? Currently it's a required field in 2.1.7 and I can't find a configuration setting to change it. I'm aware that ...
1
vote
1answer
34 views

How to Remove Zipcode, State and Company from Magento 2.3

As per the title, you can realize that its a very old and repetitive question, but actually I could not find a solid answer !! I want your help (step by step) how to "remove/disable" the Zipcode &...
0
votes
1answer
10 views

How to add Loader for after placing a order in magento 2

I am using an online payment method Paypal on my site. I can place the order successfully using the Paypal payment method. But after placing the order, it takes some time to redirect to the success ...
4
votes
0answers
600 views

Magento-2 : How to update cart total on check-box checked/unchecked

Magento2 - in checkout page, I have one check-box just before the payment method on the checkout payment step. I need to update cart total on check-box check/unchecked. Currently system is working ...
5
votes
0answers
297 views

No such entity with cartId = 0 on checkout page

Magento2 - Customer lost session occasionally on checkout page. After login when I go to checkout page it's shows me below error but after refresh 4 to 5 times customer session restore again but ...
0
votes
3answers
36 views

Extension not working on the Server. Magento 2

I created a simple extension to just add an extra Radio Button in checkout. my code is CheckoutJazz/Radio/registration.php <?php \Magento\Framework\Component\ComponentRegistrar::register( ...
4
votes
0answers
223 views

Magento 2 on checkout page shipping section add new address button not showing

Magento 2 on checkout page shipping section when I'm add new address than button not showing can any one have idea, how to avoid that one I need always show add new address button. first time it ...
4
votes
0answers
243 views

Magento 2 Save custom customer attribute to customer addresses in checkout

There are many post on Stackexchange and blogs that explain how to add custom field to checkout forms. Some of them also explain how to save them to quote/order address. I've achieved all these ...
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 ...