Giter Site home page Giter Site logo

Comments (7)

darryldecode avatar darryldecode commented on September 13, 2024

Hi, it looks like there is a problem with your system when persisting sessions. Have you tried to use the normal Session::put() and then do a Session::get() on another route and check if its working?

from laravelshoppingcart.

tavicu avatar tavicu commented on September 13, 2024

HI,

Yes, i tried and it's working. The problem is from Cart construct. When i run Cart::getContent() is rewriting session with a blank array. If i add items to cart and then remove the code that overwrites the session from constructor and run getContent everything works ok.

This is the code:

    $this->session->put(
        $this->sessionKey,
        array()
    );

from laravelshoppingcart.

darryldecode avatar darryldecode commented on September 13, 2024

yes you are right @tavicu. Thank you for your time. I have tagged a new version of it now.

from laravelshoppingcart.

Shahnee avatar Shahnee commented on September 13, 2024

@tavicu. i am facing the same issue can you help me

from laravelshoppingcart.

kaisirahmed avatar kaisirahmed commented on September 13, 2024

sir I am also facing the same issue. Is anyone can help me?

from laravelshoppingcart.

kaisirahmed avatar kaisirahmed commented on September 13, 2024

HI,

Yes, i tried and it's working. The problem is from Cart construct. When i run Cart::getContent() is rewriting session with a blank array. If i add items to cart and then remove the code that overwrites the session from constructor and run getContent everything works ok.

This is the code:

    $this->session->put(
        $this->sessionKey,
        array()
    );

can you please tell me where should I change?

from laravelshoppingcart.

kaisirahmed avatar kaisirahmed commented on September 13, 2024

@tavicu sir can you please help me. I am new to use this.

from laravelshoppingcart.

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.