Questions tagged [checkout]

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

Filter by
Sorted by
Tagged with
4
votes
4answers
9k views

Magento2 custom module overrides layout: The element “checkout.cart.item.renderers” already has a child with alias “simple” in exception log

In a custom module I override the cart item template. It works, but my exception log is filling up with The element "checkout.cart.item.renderers" already has a child with alias "default" and alias "...
4
votes
1answer
1k views

Change Checkout template based on products in cart

This is a weird request from a client, the products can be purchased with or without logos adding on to them. However, when a product which requires a logo is added to the cart the checkout process ...
4
votes
1answer
18k views

Magento - how to add custom discount without using coupon code in observer

How can I set discount (not using coupon code) in observer that should be applied on cart, order review(checkout/onepage), Invoice & Memo, this solution only worth of applying discount to cart ...
4
votes
2answers
3k views

How to keep session data on order success page so that you can work on it in magento2?

In mage1 there was $session->clear() but cannot find where it is done in magento2? I thought it was $this->checkoutSession->clearQuote()->clearStorage(); in vendor/magento/module-...
4
votes
2answers
12k views

Magento 2 checkout form: how to add custom field?

How to add custom field to Shipping Address form in Magento 2 Onepage Checkout? For example: add select box like "Country" below phone number field
4
votes
2answers
6k views

Load email from quote or order or billing address?

What is the correct structure to load the email of the customer from? It should work in all order variants: orders by guests, orders by registrered customers, already saved addresses, newly entered ...
4
votes
3answers
1k views

Checkout getting No such entity with orderId =

I'm using 2.3 But I don't know why when I place an Order I am getting No such entity with orderId= How can I fix it? look like this issue update: I check in chrome when i place an Order will ...
4
votes
1answer
3k views

Magento: Quote vs Cart

I want to add dynamically new products in the cart during the checkout process, but I've no clear the differences between the Quote and the Cart. In my catalog pages I'm adding contents directly to ...
4
votes
3answers
2k views

Event of clicking checkout button

At the moment I have an observer running on the sales_quote_save_before event to check if the customer's cart has a subtotal greater than £100 if they belong to a particular customer group. This ...
4
votes
1answer
192 views

How to update checkout/cart/ orders total when promo code is applied dynamically without page reload

I have changed my checkout/cart/ page promo code to ajax call so that it doesn't get reloaded, while on the success of that ajax call, I have to update the total price summary dynamically without ...
4
votes
3answers
472 views

Remove specific shipping method based on condition in magento 2

I have installed a store pick up extension in our website. This extension showing two option as radio buttons Collect in Store Yes No So if we select 'NO', then in shipping method, There is an ...
4
votes
2answers
3k views

Magento 2: How can I use ifconfig or something similar to layout component

I created a boolean option (Yes / No) in Store -> Configuration, with which I can display or not the checkout sidebar. The configuration path is: vendorname_sidebar/display/enabled. Below is a part ...
4
votes
1answer
3k views

Magento 2 Payment method : Add custom Select field that I can use in checkout process

I am working on a Payment Gateway integration in Magento 2. The payment method is working fine and its listed on checkout page. I need to add a Custom Select Field on the Checkout process. MODULE/...
4
votes
1answer
1k views

Move order summary in checkout

This is my current checkout page: I want to move Order Summary area above Shipping Address. I try to add this code <move element="sidebar" destination="steps" before="shipping-step"/> in ...
4
votes
2answers
7k views

Magento 2 - change the form fields sort order in checkout

How can i change the sort order of the field in the shipping form at checkout. In the checkout_index_index.xml there is only option to sort the region, city, company, etc. But not: Name, Surname, ...
4
votes
4answers
4k views

Shipping Address Missing on Payment Page Refresh

Has this happened to anyone? When you get to the payment page in checkout and refresh the page, it removes your shipping address with the exception of the zip code and country.
4
votes
3answers
4k views

Magento 2 checkout new field is excluded from post data

I have this module for add newsletter subscription to checkout page in a Magento 2 project. I have added a checkbox field by following code: app/code/MyNamespace/MyModule/Plugin/Checkout/Model/...
4
votes
1answer
5k views

Place Order button doesn't go to success/confirmation page? (1.9.1.0)

I'm not quite sure what could be causing this issue, we have absolutely NO extensions or modifications. This happens on a fresh install with one product made being the only change. It doesn't matter ...
4
votes
3answers
7k views

Retrieve Quote Item ID after added to the cart

I am running an observer on Magento 1.9 on the following event: sales_quote_merge_after This event occurs when a guest customer with items in their cart logs into their account. When doing this the ...
4
votes
1answer
76 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. ...
4
votes
2answers
344 views

Carding attack on website

I'm getting hit with carding attacks on my website. I've enabled AVS options like so in Paypal. This doesn't seem to be doing enough to stop the attacks. Paypal threatens to shut off my account, ...
4
votes
2answers
399 views

Magento 2.2.4 = How to add new link on checkout page?

I have created 1 custom tab on the checkout page and it's working fine I follow below link to add the tab on cart page. Magento 2 - Add step on checkout I want to add a link name as "Create an ...
4
votes
1answer
2k views

Magento2 : Display message on cart summary page?

I have set discount cart price rule. But before rule apply print message on cart summary page . Example: When order total $400 then display message "Orders over $500 receives 5% off ". When order ...
4
votes
1answer
3k views

How to override JS component file used in checkout

I would like to add my own JS to this file to add a little customization to the checkout in Magento 2. app/code/Magento/Checkout/view/frontend/web/js/view/shipping-address/list.js I tried copying it ...
4
votes
2answers
6k views

Magento 2.1.2, Remove “region” from the Address

I would like to remove "Region" from all the address forms (checkout, billing address, shipping address, customer's addressbook). I've set the Backend setting for "Allow to Choose State if It is ...
4
votes
1answer
2k views

Magento2: how to get guest informations in checkout?

Please, how to get guest informations like email, address, phone ... in checkout?
4
votes
1answer
2k views

Why on checkout page shipping and billing address are reset after page refresh?

We have the following situation in Magento: Guest customer is about place order. The customer filled his billing and shipping addresses on checkout page. The customer reached one of the following ...
4
votes
2answers
4k views

zero subtotal cart - can I automatically select 'no payment information required'?

I'm on Magento 1.7 and use Magestore's gift-card plugin. When someone buys something with a gift card, it's possible that the cart total can be zero. When it does that, it still offers both payment ...
4
votes
1answer
1k views

disable guest checkout for recurring product in Magento

How do I disable guest checkout for recurring product in Magento. Its very strange that magento allows Guest Checkout for recurring products and it doesn't work.
4
votes
3answers
170 views

How to show a category's products in shopping cart

Magento version 2.3 I want to show a particular category in shopping cart page using programming, instead of using backend widget settings. I have tried to modify the following files with no luck: ...
4
votes
1answer
864 views

Magento 2 | Mini Cart has items but cart is empty | Session problem? | Double clicking on “Proceed To Checkout” redirects to an empty cart

I have a weird problem where my mini-cart is showing that there are products in the cart, however, cart is showing empty. Also, when refreshing the checkout a few times, it redirects to the cart with ...
4
votes
1answer
656 views

Magento2 : Logged-in user has to re-login before checkout

Login in Add product to cart In top bar there is text "Welcome Michael Surname", but there is still option to sign-in and sign-up next to it. Go to cart > checkout Login prompt is displayed minicart ...
4
votes
5answers
1k views

Magento2 : How to Get All Payment Methods in Plugin

I am trying to disable all payment methods when specific payment method is enabled for some set of pin codes. Please find below code to get an idea of what I am doing. di.xml <?xml version="1.0"?...
4
votes
3answers
3k views

Sorry, but something went wrong. Please contact the seller. Issue : when checkout with credit card (Authorized.net) - Magento-2.1.2

I am using Magento ver. 2.1.2. Some of our customer complain that they can't checkout with Credit Card (Authorize.net). A sorry message "sorry but something went wrong" showing when checkout. We have ...
4
votes
1answer
930 views

How to remove an input in form created billing-address.html by ko in Magento 2

I have to remove fax input from billing-address in checkout process. ( when you check out "My billing and shipping address are the same" and the form appears ) Found that is generated here : ...
4
votes
2answers
1k views

How to add knockout js binding to custom template

We want to add proceed to checkout button on product detail page. We will show this checkout button when cart have items otherwise we will remove this. See this : http://www.awesomescreenshot....
4
votes
1answer
2k views

Magento 2.1.0 Checkout page is blank

After upgrading to 2.1.0 my checkout page looks like this In console there is an error TypeError: window.checkout is undefined I tryed what was suggested here Magento 2 (CE) not displaying the ...
4
votes
1answer
319 views

Magento 2 - Plugins on some classes don't work in etc/frontend/di.xml

I'm trying to do this: <type name="Magento\Payment\Model\MethodList"> <plugin name="a_name_plugin" type="Mynamespace\Mymodule\Plugin\Model\Payment\MethodList\Plugin" sortOrder="10"/> &...
4
votes
1answer
243 views

magento-paypal payflow-pro- test credit/debit card works with live mode

I have configured Paypal Payflow Pro and live mode is set but when i use test card details for any card type then it accept it and successfully checkout with the same. When i have set Payment Action -...
4
votes
1answer
466 views

CE 1.9.2 - Store custom data temporarily in the order object during checkout

I am trying to build a feature into an existing site that allows customers to earn loyalty points with a 3rd-party loyalty and rewards programme that they will need to be already registered with. The ...
4
votes
1answer
892 views

CE 1.9.1 - checkout in lightbox/popup

I know that this is a silly question, and ignores all UX practices, but I have a requirement to call the OneStepCheckout from LotusBreath into a lightbox or popup. Is this possible? Last resort ...
4
votes
5answers
3k views

Magento Subtracting Tax from subtotal instead of adding it

For some reason magento is subtracting the tax amount from the subtotal instead of adding it. 5.50 + 6.07 +0.66= 12.23 not 11.57.Grand total is wrong! I looked at my tax settings and they all seem ...
4
votes
1answer
2k views

Changing <before> and <after> of totals in config.xml doesn't alter the order they are processed

TL:DR - trying to change the order that totals are collected doesn't work as expected. How do I adjust the order they are processed properly? I previously had a problem with a custom total breaking ...
4
votes
1answer
1k views

How to use getMethodLabelAfterHtml($_method)

I'm looking to programmatically add an extra label to my payment options and while studying methods.phtml I see the following code: <?php echo $this->getMethodLabelAfterHtml($_method); ?> ...
4
votes
2answers
7k views

How to add custom fields to custom shipping method(at onepage checkout)?

I created previously custom payment methods.For that I added successfully extra fields using following code in my model logic. protected $_formBlockType = 'newmodule/purchaseorder'; protected $...
4
votes
2answers
86 views

how to Placed order as another customer in Magento 2 checkout

At present in Magento 2 Checkout there are two ways you can place the order. Guest user Current logged in user I have the following requirement from one of our client that add the following feature ...
4
votes
1answer
562 views

How to delete the item from cart in checkout

How to delete the item from cart in checkout? File Magento_Checkout/web/template/summary/item/details.html <div class="cart-item__col-subtotal"> <div class="cart-item__subtotal" > ...
4
votes
1answer
235 views

Magento2: How to reserve product after add to the basket

I want to set in our website reserve product after add to the basket. example: Shoes available in stock: 5 pcs. When customer add 2 pcs to the basket then now in website is available 3 pcs. After ...
4
votes
1answer
779 views

Magento 2 Decline message disappears quickly

Magento 2 Decline message disappears quickly in the Checkout page when placing the order using a credit card. /vendor/magento/module-ui/view/frontend/web/js/view/messages.js
4
votes
1answer
662 views

Magento 2 checkout extra fee is adding twice to base_grand_total

magento 2 checkout extra fee adding twice to grand total collect function calling 4 to 5 times parent::collect($quote, $shippingAssignment, $total); if (!count($shippingAssignment->getItems())...