Giter VIP home page Giter VIP logo

Comments (3)

rkewlani avatar rkewlani commented on August 18, 2024

Hi @bazidev,
We do not create additional cart in our code in lockSessionCart(). We are just getting it from session. Also, please contact our support team if you are facing any problems in cart restorations. I also observed you are using 1905 hybris version which is currently not supported in our plugin.
Thanks.

from adyen-hybris.

bazidev avatar bazidev commented on August 18, 2024

Hello @rkewlani
I know you are getting the cart from the session, but just before that you're removing the cart.
I just want to know why do you call the getCartService().getSessionCart(); just after removing the cart.

` public void lockSessionCart() {
getSessionService().setAttribute(SESSION_LOCKED_CART, cartService.getSessionCart());
getSessionService().removeAttribute(SESSION_CART_PARAMETER_NAME);

    //Refresh session for registered users
    if (!getCheckoutCustomerStrategy().isAnonymousCheckout()) {
        getCartService().getSessionCart();
    }
}`

what do you mean by //Refresh session for registered users?

thank you

from adyen-hybris.

rkewlani avatar rkewlani commented on August 18, 2024

Hi @bazidev ,
We are removing old cart and creating new cart in user session so that user is not able to see that and modify that while payment is in process. Removal here is just removal from user view. We are not removing the cart from backend.
I hope it answers your question.
Thanks,
Adyen

from adyen-hybris.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.