It is currently 19 Mar 2024, 10:01




 Page 1 of 1 [ 8 posts ] 
Author Message
 Post subject: Save the items for later in shopping cart
PostPosted: 24 Jan 2018, 17:40 
Advanced fan
Advanced fan
User avatar

Joined: 15 Apr 2012, 10:36
Posts: 544
Location: Norway
Has thanked: 9 times
Been thanked: 17 times
Is there a possibility for implementing this feature?
When my account got automatically logged out after a while, I lost all the items that I had added to the shopping cart.
It would fit nicely beside the "Update you shopping cart" button.
Offline
 Profile  
 
 Post subject: Re: Save the items for later in shopping cart
PostPosted: 25 Jan 2018, 13:22 
Site Admin
Site Admin
User avatar

Joined: 07 Aug 2002, 23:37
Posts: 4539
Location: Tokyo
Has thanked: 291 times
Been thanked: 1134 times
laserpaal wrote:
Is there a possibility for implementing this feature?


Hello!

Everything is possible :-)

laserpaal wrote:
When my account got automatically logged out after a while, I lost all the items that I had added to the shopping cart.
It would fit nicely beside the "Update you shopping cart" button.


The technical underlying problem is that the cart can be kept in (at least) 3 different ways:

  1. COOKIE level - but then when you use a different device, the cart is gone because the cookie is local to your machine
  2. SESSION level - it follows your login/account but will expire when PHP5 decides to make a round of clean-up and delete too old sessions --- I coded this one and it should stay alive for some time before disappearing
  3. DATABASE level - persistent but will require a major rewrite of the Cart code

I added one item unlikely to sell any time soon in my own cart.
Let's see how long it stays there while I reconnect from different devices.

Julien
_________________
HARDWARE DATABASE
HLD-X0/9 LD-S9 OPPO 105/205 SL-1200G
LDD-1 MSC-4000 R2144 PONTUS II C45 MC257
Offline
 Profile  
 
 Post subject: Re: Save the items for later in shopping cart
PostPosted: 25 Jan 2018, 16:16 
Site Admin
Site Admin
User avatar

Joined: 07 Aug 2002, 23:37
Posts: 4539
Location: Tokyo
Has thanked: 291 times
Been thanked: 1134 times
admin wrote:
SESSION level - it follows your login/account but will expire when PHP5 decides to make a round of clean-up and delete too old sessions --- I coded this one and it should stay alive for some time before disappearing


One possible tuning that I didn't revisit when reinstalling the server from scratch was the PHP "session.gc_maxlifetime" currently set at 1h:

session.gc_maxlifetime   3600


Let's make it 24h as a test.

session.gc_maxlifetime   86400


Julien
_________________
HARDWARE DATABASE
HLD-X0/9 LD-S9 OPPO 105/205 SL-1200G
LDD-1 MSC-4000 R2144 PONTUS II C45 MC257
Offline
 Profile  
 
 Post subject: Re: Save the items for later in shopping cart
PostPosted: 26 Jan 2018, 09:05 
Site Admin
Site Admin
User avatar

Joined: 07 Aug 2002, 23:37
Posts: 4539
Location: Tokyo
Has thanked: 291 times
Been thanked: 1134 times
So far the item I put in cart at 9:30am is still there more than 6 hours later.

Reason good enough for hope? :-)

Julien
_________________
HARDWARE DATABASE
HLD-X0/9 LD-S9 OPPO 105/205 SL-1200G
LDD-1 MSC-4000 R2144 PONTUS II C45 MC257
Offline
 Profile  
 
 Post subject: Re: Save the items for later in shopping cart
PostPosted: 27 Jan 2018, 11:48 
Advanced fan
Advanced fan
User avatar

Joined: 15 Apr 2012, 10:36
Posts: 544
Location: Norway
Has thanked: 9 times
Been thanked: 17 times
admin wrote:
So far the item I put in cart at 9:30am is still there more than 6 hours later.

Reason good enough for hope? :-)

Julien


I would say that is great reason enough for hope! Thank you, Julien. You strive to keep the forum up to date, for that I'm grateful! :)
Offline
 Profile  
 
 Post subject: Re: Save the items for later in shopping cart
PostPosted: 27 Jan 2018, 18:59 
Jedi Master
Jedi Master
User avatar

Joined: 03 May 2004, 19:05
Posts: 8093
Location: Dullaware
Has thanked: 1218 times
Been thanked: 841 times
Yes, thanks for keeping it running, could be running longer than actual LD players, Literally.
Offline
 Profile  
 
 Post subject: Re: Save the items for later in shopping cart
PostPosted: 28 Jan 2018, 06:38 
Site Admin
Site Admin
User avatar

Joined: 07 Aug 2002, 23:37
Posts: 4539
Location: Tokyo
Has thanked: 291 times
Been thanked: 1134 times
rein-o wrote:
Yes, thanks for keeping it running, could be running longer than actual LD players, Literally.


Then we can still display these gorgeous LD cover art on the wall :-)

Julien
_________________
HARDWARE DATABASE
HLD-X0/9 LD-S9 OPPO 105/205 SL-1200G
LDD-1 MSC-4000 R2144 PONTUS II C45 MC257
Offline
 Profile  
 
 Post subject: Re: Save the items for later in shopping cart
PostPosted: 02 Mar 2018, 23:49 
Third post and above
Third post and above
User avatar

Joined: 27 Feb 2018, 00:01
Posts: 6
Location: United States
Has thanked: 1 time
Been thanked: 0 time
Items are currently not saving in the shopping cart. Added to cart, signed out and then back in and they were no longer there.
Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 8 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: