People who code: we want your input. Take the Survey

Questions tagged [checkoutsession]

Questions about Magento ckeckout session

24 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
58 views

When I try to get quote shipping address, it returns customer default address. Does the quote session not updated with value in the table?

When I try to get quote shipping address, it returns customer default address instead of returning from my quote_address table. I'm trying to pre-populate checkout fields with quote address details. ...
2
votes
0answers
247 views

Magento 2 : Lifetime, scope and general usage for all types of sessions

There are a lot of session types in magento 2 . The ones I know of are listed below ; 1) \Magento\Catalog\Model\Session //vendor/magento/module-catalog/Model/Session.php 2) \Magento\Newsletter\...
2
votes
1answer
2k views

Magento 2 - GetLastRealOrderId is always returning null

I am trying to get the last order so that I can load the order by increment id but `$this->_checkoutSession->getLastRealOrder()->getIncrementId()`; is returning null.
1
vote
2answers
250 views

checkout session reset after creating order $this->_quoteManagement->submit($quote)

I am trying to create order pragmatically using $quote = $this->_checkoutSession->getQuote(); $this->_checkoutSession->setLastQuoteId($quote->getId()) ->...
1
vote
0answers
14 views

How to Add a new step in checkout step, I want add new tab After shipping methods tab and before payment tabs in magento 1.9

I'am working with magento 1.9, Now i want add new tab in checkout steps. I want add new tab between shipping methods and payment method information. I want add custom "mytabs" between two tabs with 2 ...
1
vote
0answers
18 views

Keeps asking to login Magento 2.3.4

Not sure if this is a bug or if this is an actual issue which is going on. I have tried to read up on few informations and tried to follow the steps. But I am not getting anywhere unfortunately. The ...
1
vote
3answers
365 views

How to auto remove items from cart after 1 day - Magento 2.2.4

Guest / Logged-in user: Auto removes items from the cart after 24 hours. Canceling and returning from the payment page auto-remove cart after 24 hours.
1
vote
0answers
28 views

Checkout cart products disables randomly

I have created a website using Magento 2.2.3. I'm facing issues with adding product to the cart. The issue is, I can add the product to the cart and able to checkout. But, If i want to add some ...
1
vote
1answer
685 views

Magento 2 How to create a popup in checkout if customer is not logged in

When a guest customer who is not logged in hits checkout, I want a popup to remind customers to login at the checkout page. How do I implement it? What files should i override? Thanks.
1
vote
0answers
296 views

Magento 2: How to add some data into checkout session?

I have successfully added new checkout form, following the instructions are given on: http://devdocs.magento.com/guides/v2.1/howdoi/checkout/checkout_form.html When I submit the form i get the data ...
1
vote
0answers
71 views

Get shipping rates in a frontend controller for particular form in magento 2.1

I am trying to get the shipping rates from the existing shipping methods enabled by the admin in my form in the frontend as the address has been entered. Further, I don't want to save the product in ...
0
votes
1answer
36 views

Session or SessionFactory which one to Use in Magento 2?

I am have been working on a payment method where I need Current Quote So I used \Magento\Checkout\Model\SessionFactory $checkoutSession and then get Quote from the Checkout session using $this->...
0
votes
0answers
18 views

Google Product Ratings

I have a Magento site and already set up the Google Customer Reviews. Now I want to create a code to get and display Google Product Reviews. The code should pull barcodes of the items in the basket ...
0
votes
0answers
15 views

Session destroyed in N genius payment gateway magento 2.3

I have created a N Genius hosted session payment gateway module for my project in magento 2.3 version. I have used an iframe to show the 3d secure form in this module. After the 3d secure submit i am ...
0
votes
0answers
30 views

Magento 2 How to Increase payment session PayUMoney

Hi Am Testing PayU Payment gateway for magento 2. I have a testing account for payUMoney. During checkout after the adding credentials and OTP its shows error if it exceeds 30 seconds. If I add ...
0
votes
0answers
10 views

Magento 2: I want set a custom param to checkout session via API Rest

Eu criei um atributo de extensão chamado "device" para o order, agora quero setar esse atributo na sessão do checkout atraves de uma requisão API. Assim setar esse parametro no fechamento o ...
0
votes
0answers
120 views

Restore Checkout Session Data in magento 2

We are facing a session issue when returning from payment gateways(CCAvenue). It's treated as a new session on the recent version of Chrome, edge. So, we are trying to create a session after getting ...
0
votes
0answers
24 views

Getting all items in the cart in Magento 2 with FPC turned on

I would like to get all items in the cart with Full Page Cache (FPC) turned on Normally I would do something like: use Magento\Checkout\Model\Session; public function __construct( ... ...
0
votes
1answer
21 views

how to get custom session in magento 2?

I have tried this but this is giving empty log file. What should I do to get output for this: public function isAdmin() { $writer = new \Zend\Log\Writer\Stream( BP . '/var/log/myfile.log' ); ...
0
votes
1answer
158 views

Magento2 Session Logsout when a person gets back from Payment Gateway

I am facing a very weird Issue in my M2 Store, whenever a user gets back from payment gateway after successful transaction, user automatically logs out from the session and land back on cart page with ...
0
votes
1answer
326 views

magento 1.9 not redirecting customer to success page after a successful order

I’m facing a strange problem I’m working on magento 1.9. Sometimes after a success order the customer is not redirected to success page, this happens not in all orders maybe 1 of 5. after diagnosing ...
0
votes
1answer
81 views

Magento 1.9 redirect on checkout/cart after online payment

I've applied the latest security patches from the Magento website and after that, I have strange behaviour: After an order is done with online payment (card) is redirecting to checkout/cart via ...
0
votes
1answer
79 views

Order not processing in backend, but processing with gateway (Unique Constraint Violation Found)

New Magento 2 Install. Authorize.net and Paypal having the same issue. Order is placed on our website Payment is captured and accepted The order DOES NOT show up in Magento`s backend. Customer does ...
0
votes
0answers
230 views

403 Session expired in checkout Magento 1

I'm getting this error in the checkout page of Magento 1, what could it be? Request URL: /onepage/json/payments Request Method: POST Status Code: 403 Session Expired Referrer Policy: no-referrer-when-...