Questions tagged [order-success-page]

Denotes questions about final page of order/checkout completion which is called success page

Filter by
Sorted by
Tagged with
4
votes
1answer
31 views

Magento2: Order success create coupon

I want to generate coupon on order success below is the code i am unsing to generate in Observer public function __construct( \Psr\Log\LoggerInterface $logger, \Magento\SalesRule\...
2
votes
2answers
35 views

Where does Magento decrement quantity of a product after the order is placed?

I need to check the Product Salable Quantity of a product after a successful order to change one of the product´s attributes. I keep getting the product salable quantity before It´s decremented. ...
0
votes
1answer
61 views

Get total order value on success.phtml page using onepage checkout

I posted this question: How can i get the order total value on success page easily? Magento 2.2 But it never got resolved. Unsure how to rerequest help about it. But I need to get it solved. I am ...
3
votes
3answers
141 views

Magento 2 - Cart empty after successful payment

I have a custom payment method, after successful payment; payment page return to a controller where it updates order status and truncate current cart items like this: $this->quote->load($orders-...
1
vote
1answer
53 views

How can i get the order total value on success page easily? Magento 2.2

I am trying to get the order value from success.phtml page so that I can report it back in the facebook pixel. I am just looking for the simplest way to get the order value. Yes, a shortcut pretty ...
0
votes
1answer
51 views

Magento2.3: Order not Place and Redirect to checkout/cart page [closed]

I have upload my Magento2.3 site on site ground. Others things are working fine but order not place redirect to checkout cart page. system.log: [2019-04-19 12:15:47] main.INFO: Broken reference: ...
0
votes
1answer
23 views

Easiest way of adding a script to the order confirmation page in Magento 1?

I need to add a script that tracks orders on a Magento shop. This script is to be inserted onto the order confirmation page. What is the easiest way of inserting this script onto the order ...
3
votes
4answers
10k views

How can I add custom success page

I want to add custom success page by overriding it's phtml. Can anyone guide me how can I do this?
2
votes
1answer
97 views

How to get entity id(order id) in success phtml

In my success.phtml , $block->getViewOrderUrl() gives a order url with order id(entity id) . dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Onepage/Success.php /sales/order/view/...
0
votes
1answer
27 views

How / Where to add Facebook Checkout pixel?

I like to ask where I should place this code snippet: fbq('track', 'Purchase', { value: 1, currency: 'SEK', }); I have added the normal facebook tracking code into the head for all pages....
0
votes
1answer
41 views

magento2 get custom product attribute on order success page

I have a magento 2.2.5 based website and i need to get a custom product attribute on my order success page for each product. The custom attribute is called site_owned_buy any suggestions how to get it ...
0
votes
2answers
170 views

Magento-2 order is not created after Successful Payment - PayPal

In my Magento website, Customer has placed an Order, PayPal received the amount with the Magento Order ID. But still, Customer didn't get to reach the Success page. Also that Order not listing at the ...
1
vote
0answers
37 views

Magento 2.2.3 - success.phtml add shipping or billing adress to page

I was looking for ways to add the shippingadress of a order to the success.phtml page. But when I checked other stackoverflow pages concerning the same question. None of them had solutions that work ...
0
votes
0answers
41 views

Magento 2.2.2 getting error on click registration button on order success page?

I am getting an error message when I am clicking on Registration link on order success page: SQLSTATE [23000]: Integrity constraint violation: 1062 Duplicate entry '1' for key '...
0
votes
1answer
29 views

How to customize order succes page url and add some order details

I want my order success page URL(checkout/onepage/success/) to be changed to order/?ORDERID And I need to display some order details in that success page. That should be shown even after the reload. ...
0
votes
1answer
242 views

Get order id (not increment id) on success page?

I am running Magento 2.2 and I want to get the order id on the success page. $block->getOrderId() // returns 000000008 for example I do not want 000000008, but the real ID from the database, ...
0
votes
1answer
155 views

get payment method in the success page Magento 2 programmatically

How can I display the payment method in the success page using a code? If anyone can help me, it would be great. Thankyou.
0
votes
2answers
32 views

How to replace direct use of Object Manager?

in the success.phtml file I currently have a direct use of the object manager, which I am now reading is not best practice. I was wondering how to make a constructor to replace the following code in ...
0
votes
2answers
57 views

Unable to get shopping cart data on Success.phtml

On the order confirmation page, I am trying to pull all the values of the items involved in the completed purchase, so they can be injected into a tracking iFrame. I found this code online, but it ...
7
votes
1answer
55 views

$block Class Some Method is won't appear in get_class_methods() call

I am working in \success.phtml file, with the final objective of placing a tracking iframe on the confirmation page. <?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt ...
0
votes
0answers
23 views

Magento 2.2.5, Get info_buy_request data in the order success observer

I have added few input fields in the product detail page. That is stored in in the "info_buyRequest". How to get it in the order success observer(checkout_onepage_controller_success_action)
4
votes
4answers
559 views

How to get Coupon Code on Success Page in Magento 2

I am trying to get coupon code created in cart price rule from backend on success page. I am doing it as: In Block file public function getCouponCollection() { $om = \Magento\Framework\App\...
0
votes
0answers
43 views

success page template file not called : M2

After M2 upgrade success.phtml template file not called at order success page. while onepage.phtml file is called at onepage checkout page. Both file location is same but still success.phtml file ...
3
votes
2answers
378 views

Magento 2 | Event for success page

what is the correct event which should fire when a customer ordered something and is being redirected to the success page. After the redirect to the success page the event should fire. Thanks in ...
2
votes
0answers
27 views

How the guest order is mapped with the customer who is registered in success page in magento 2

How the guest order details are mapped with the customer who is registered by clicking Create Account button in the success page in magento 2.
1
vote
0answers
187 views

Magento 2: Order Success Page Not Loading for custom payment method

I am using Webkul Ccavenue extension for Magento 2.1.4. On successful payment, a success response is sent to Magento, after which it should redirect to order success page(checkout/onepage/success), ...
0
votes
1answer
29 views

Weird issue with Magento 1.9 success page and JS code

I am facing a rather strange issue with Magento 1.9. In the success page I have a piece of code that dynamically creates a tag based on the order just placed. The problem is that the tag is not ...
0
votes
1answer
160 views

Magento2 after placing order success page showing error

I have tried to place an order with simple and configurable product but after placing in success page i am getting below error. Fatal error: Uncaught Error: Call to undefined method Magento\Catalog\...
0
votes
1answer
182 views

Bank Details On Success Page of Magento 2

If the payment method is bank transfer, I need to show a custom message on success page of Magento 2. I'm going to say "don't forget: we will ship to you after your payment received to our ...
1
vote
3answers
454 views

How Do I get Order id from module-checkout/Block/Onepage/Success.php in magento 2

I want to get the order details from module-checkout/Block/Onepage/Success.php. I got only the increment id to my custom template using the above block file. How can I get the entire order ...
1
vote
3answers
3k views

How to customize checkout success page

We want to add this text "Click here to check the bank information" to the checkout success page and link it with URL a on the site. How to do that? We're running Magento 1.9
0
votes
1answer
314 views

Magento 2 - How to retrieve the name and quantity for each product ordered in success.phtml file

I need to add an iframe for tracking the orders, and the code needs some values like Subtotal, order id, name of every product in the order and also the quantity for each product. I found a solution ...
0
votes
1answer
169 views

How to get last ordered product details in Magento 2.2?

am extending the onepage/success block and able to get the order id from it but what I want is last ordered information like Product URL, product ID, Product image and so, I did a search about this ...
1
vote
1answer
176 views

Add Bank Details to success page

I'm new to Magento and trying to edit the success page on 1.9x All I want is to add payment details for some payment methods. If the customer selects BANK TRANSFER, I want My_Block to be shown on the ...
6
votes
2answers
5k views

How to test or style the Order Success Page Or how to stop Success Page redirecting in Magento 2

I have an issue in Magento 2 success page, its showing blank after successfully placed order. I am trying to debug it but the issue is when trying to refresh the success page after changing the code ...
0
votes
0answers
163 views

Order mail from success.phtml page in magento 2.2?

I'm using magento 2.2 with topstore 4th theme. Sending mail after order success observer are not working. i don't know why? Is there any possibility to send mail from success.phtml page manually to ...
0
votes
1answer
76 views

Can we turn the checkout success page into a checkout step in Magento 2?

How can we make the checkout success page part of the regular Magento2 checkout steps? I like the idea of having a simplified layout with minimal content during the checkout steps. But the ...
0
votes
0answers
89 views

Magento 2.1 Display Product details,image in Success page

I want to display Product details in which if it is configurable with options, image in Success page.
1
vote
3answers
1k views

How to get registered customer details in order success page(success.phtml) in M2.2?

I am using Magento 2.2. I want to display customer name, address line 1, adrdress line 2, city, phone, email in order success page. This is my code in success.phtml: <?php /** @var $block \...
2
votes
2answers
757 views

How to redirect to success page from controller

This is my controller page. I need to redirect to success page and place all orders in cart. This returns https 500 error. <?php namespace Cod\Otp\Controller\Index; use Magento\Quote\Api\...
0
votes
1answer
1k views

How to remove Create an Account button on Success Page in Magento 2?

I want to remove Create An Account button with "You can track your order status by creating an account." text on success page in Magento 2. I have removed checkout.registration block from ...
0
votes
1answer
575 views

Magento 2 : How to load the order success page

I have worked custom payment and I've received the response from the payment I need to load the success page from my custom controller how can i do it. Whether I need to create own page or can I use ...
0
votes
1answer
87 views

How to Get MRP, Product Order Quantity, Address line1, Address line 2 in Order Success page Magento 2

I need to get Address Line 1 Address Line 2 Each Product Order Quantity MRP(Manufacturer's Suggested Retail Price) code inside vendor/magento/module-checkout/view/frontend/templates/success.phtml ...
0
votes
2answers
1k views

How to get an order id in success.phtml block?

I created an own module for a new block in success.phtml. Read my old post here: Magento 2: Override success.phtml Now, I want to go get the order id in my own success.phtml file. Tried with: $...
0
votes
1answer
115 views

Customer and order Item Data on Order Succes page

I am trying to getting order,customer and item details on order success page. <?php $orderid =$block->getOrderId(); $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $...
2
votes
0answers
238 views

Google Adwords dynamic value is not showing the right value

I'm using Magento 2.1.4 and configured google adwords data for my magento store like this : the google adwords code generated successfully, but the problem is the price value at checkout success ...
0
votes
1answer
233 views

Magento 2 - Product category id on success

How can I get the category id of the products ordered on the success.phtml page. I have managed to get other bits of data but cant find the category id. I need to check the category so i can post to ...
1
vote
2answers
513 views

Magento 2.1: How to get Guest billing address on success.phtml

I need to get the guest billing address on the success.phml so I can send to a third party app. I have managed to use this: $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $...
1
vote
1answer
181 views

How to preview front-end of Checkout Sucess Page by order id

I'm working on a module that styles the checkout success page. It's already done. I want to have a function preview in the back-end of my module that when you enter an order id and click preview, it ...
0
votes
1answer
767 views

Get email from user at checkout success page

I am overriding the checkout success page, Vendor/Theme/Magento_Checkout/templates/success.phtml and I want to let the user to know that a confirmation e-mail is send to his/her e-mail address. Is ...