0

I am setting the custom checkout session value in controller and I am not getting that value in view model.

If cache is disable I am getting the get the session value but If cache is enabled If returning empty value.

Is anyone having any idea on this?

2
  • Can you share the piece of code which you are using to set the session and also share the file path where that code is placed. Dec 17, 2020 at 10:50
  • @ArbabAhmed setting the id in controller as following. $ecp =1; $this->checkoutSession->setVal($ecp); getting it in view model file as this->checkoutSession->getVal(); also Injecting the decencies in constructor for checkout session. Only issue is when i disable the cache, I am able to get the value. Dec 17, 2020 at 11:22

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.