All Questions
Tagged with shopping-cart session
151
questions
0
votes
0
answers
26
views
Get From Session in .NET
This is my methods for get session and save in. I set session method in correct way and write service in IOC:
service.AddHttpContextAccessor();
public List<CartItemViewModel> GetFromSession()
...
0
votes
1
answer
52
views
CartService and Authentication
I noticed that if you go to an online store, it allows you to view products and add them to the cart without authorization. I suppose I can achieve this, for example, by adding anyRequest().permitAll()...
1
vote
0
answers
63
views
I'd like to display the separated Forms and set initial values from Session with Django
I’d like to implement a Shopping Cart (in logged-out status) like Amazon, Rakuten and so on with Django4.1.
So, I tried to write codes using Session, not using Database and ModelForm.
However, I am ...
1
vote
1
answer
177
views
What is the best way to create cart in nodejs,expressjs with hbs?
My question meaning is that what should we use to create cart in e-commerce site in nodejs. Should we direct add the data in mongodb or first use to create session from collected items. What should we ...
1
vote
2
answers
116
views
How to make users cannot add product to cart session from different store?
So, i want to make if else statement where if $cart session has different sponsor_id value, users cannot add product from another sponsor_id
heres my CartController
public function addToCart(Request $...
1
vote
1
answer
46
views
Cart array $_SESSION['cart'] not prininting cart items properly
I am doing shopping cart functionality on an ecommerce site via $_SESSION.
I added cart items successfully on every click in $_SESSION['cart'] array. but unable to print it correctly.
I made an ...
0
votes
1
answer
370
views
Accessing session data in other method in same controller is not working in laravel
I need session to create cart for shopping but after store session in method
when can I use On the same controller but another method can not access session data
I try to add 'StartSession' '...
0
votes
1
answer
213
views
How to unset a laravel session array
Hi I'm trying to remove a product array inside my cart session when the quantity is 1 and user tries to remove it, simply unsets that.
Here is my code:
public function remove($id)
{
if (session('...
0
votes
1
answer
51
views
Unexplained massive number of shopping Carts in Rails database in Production
I built an e-commerce app using Rails 5, postgres and heroku, with a classic shopping Cart using the session object to store the cart_id. Thanks to a warning from heroku, I discovered that the ...
-1
votes
1
answer
406
views
Get quantity of certain product from database instead of session - Shopping Cart (PHP & MySQL)
I have been trying to create a persistent MySQL-based shopping cart application starting from a session-based php shopping cart. The cart table has the structure userid | productid | quantity | ...
1
vote
0
answers
38
views
Problem with deleting item out of cart when the same item with diffrent size is in cart already
Problem with removing items out of cart.
When pressing the generated delete button under the item the first item wil be removed out of the cart but then the other item with diffrent size but same ...
0
votes
1
answer
373
views
Display results using foreach loop and sessions in Symfony for PHP
I'm writing a shopping cart page for shoes shop website using sessions in Symfony for PHP. It enables to add an item of selected size to cart and count a quantity. I need to know how to display the ...
0
votes
1
answer
105
views
How to improve some Symfony code using session
I'm writing a shoes shop website using sessions in Symfony for PHP. I have a shopping cart where I can add some products. I use variable $shoesid here. I created a controller to work with Cart which ...
-1
votes
1
answer
123
views
How to update product quantity in session when same items are added to cart?
I am creating a cart using a session, but I don't know how to update product quantity when the same item is added to the cart session?
WhatsApp_add_cart function where I create session..
Get data ...
0
votes
1
answer
537
views
How to decrement product quantity after checkout in Laravel (With Session)
Can you help me how to decrement after doing a checkout. So far this is the only idea I have but it shows an error called "Object of class Illuminate\Database\Eloquent\Collection could not be ...