Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions about Magento ckeckout session

0
votes
2answers
31 views

Magento 2 : Issue With Override Magento\Checkout\Model\Session

i am override the checkout model seesion in this way in magento 2.2.5 "\app\code\Namespace\Modulename\etc\di.xml" <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
2
votes
1answer
26 views

Set old quote Magento 2 cart

I'm trying to load/set/restore an old quote from a customer when they log in, but the thing is not that simple, because it turns out that I'm using Cminds Multi User Account Extension, and the project ...
0
votes
1answer
99 views

Customer logged out when clicking 'Go to checkout' from basket

Customers are being logged out when they click 'Go to checkout' before the basket page has fully loaded. It also looks like guests are having their basket emptied when they follow the same process. ...
1
vote
0answers
21 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 ...
0
votes
0answers
15 views

Magento 2.1.7 order went to different customer account

I know this was very broad question, but this caters the security of the customer's account on Magento 2.1.7. Though my Session Validation Settings > Use SID on Storefront was set to No for some ...
1
vote
1answer
77 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
43 views

Magento 2:Set session when cart/checkout page loads

I am using magento 2.1.x version. I have a custom module with its custom table. I want to set a field value from the custom table to checkout session on cart/checkout page load. How can I do that? ...
7
votes
1answer
550 views

Magento2: Minicart is full while Cart is Empty

A lot of our customers are complaining that they add stuff to the cart & then when they proceed to checkout they are redirected to an empty cart. We thought that it might be a result of too short ...
1
vote
2answers
229 views

Front-end session timeout causes error on checkout and basket pages

When user adds an item(or items) to the cart, it behaves normally. but if user tried to goto either checkot page or basket page after a while, it shows an error page as follows, Exception #0 (Magento\...
1
vote
1answer
582 views

Checkout session not work in Magento 2

I have used \Magento\Checkout\Model\Session for get quote id and store my custom value in this. but its return every time empty session. when FPC on or customer not logged in. I have found out some ...
0
votes
0answers
123 views

Need to Display related product in popup when clicking checkout button magento2.1.9

I have a requirement I need to display related products of products in cart when click checkout button I need to display the related products in popup window and which have an option to add cart
1
vote
1answer
295 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.
2
votes
2answers
496 views

\Magento\Backend\Model\Session Clear: Magento 2

In Magento, we could use as $this->_getSession()->clear(); However, in magento 2 if we use the same thing it throws exception as Invalid method Magento\Backend\Model\Session\Interceptor::...
1
vote
0answers
99 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
58 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 ...
1
vote
1answer
390 views

Post to Sales Flat Order table [closed]

We have installed 2 extensions on Magento 1.9.3 one is a one page checkout extension found here: https://www.magentocommerce.com/magento-connect/onestep-checkout.html and the other is a delivery time ...
1
vote
1answer
583 views

Hiding Shipping Method for current Logged in/Guest user if a condition method

I'm using Magento 2.1. Currently, I'm having two shipping methods. One is UPS and another is Flatrate. If my product's attribute returns true, I want to hide Flatrate shipping method from frontend ...
1
vote
2answers
89 views

Why is DI working in controller but not in Blocks?

I was trying my hand on Magento 2. I am able to get the checkout session data inside a controller by injecting \Magento\Checkout\Model\Session $checkoutSession, in controllers construct method. But ...
2
votes
3answers
663 views

Magento 2 Checkout session lost custom data

I have created Custom checkout session in controller : public function execute() { $productData = $this->getRequest()->getPostValue(); $this->_checkoutSession->setData("product"...