Comments (7)
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.
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.
yes you are right @tavicu. Thank you for your time. I have tagged a new version of it now.
from laravelshoppingcart.
@tavicu. i am facing the same issue can you help me
from laravelshoppingcart.
sir I am also facing the same issue. Is anyone can help me?
from laravelshoppingcart.
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.
@tavicu sir can you please help me. I am new to use this.
from laravelshoppingcart.
Related Issues (20)
- New package with improved cart performance
- Shopping configuration is not working
- Content of cart didn't return
- Update Cart Error When Update Only Work First Item HOT 4
- issue in getcartcontent - Object's Key/Value
- getPriceSum() in getSubTotalWithoutConditions() errors when summing
- update readme for laravel 8 and 9
- How to update quantity with decimal points HOT 1
- Laravel 10 HOT 3
- Method Darryldecode\Cart\ItemCollection::getOrder does not exist.
- Cart Conditions HOT 2
- How to get all carts for analysis
- when is support for laravel 10 HOT 9
- Demo app is broken
- ¿How can I prevent the items in the cart from changing position? HOT 4
- How can I check the best-selling products? HOT 1
- when add product to card return last item added only
- Allow only one quantity per item and get response HOT 1
- When will laravel11 be supported? HOT 13
- Image HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravelshoppingcart.