Welcome Guest, Not a member yet? Register   Sign In
form_hidden bug
#5

(This post was last modified: 06-01-2016, 04:41 PM by PaulD. Edit Reason: quick edit )

The shopping cart class is being deprecated, but you can easily create a shopping basket with a simple table. Once you have done that these problems would disappear to a certain extent, as each item in the basket would have its own id or basket_code.

The real difficulty about this is how you implement users that are logged in verses users that are not logged in. You need two ways to identify the users carts, session id and user id. The nice thing is that once they are logged in their baskets are still available to them. The only other thing you would need to add is a mechanism to delete all entries older than say 3 or 6 months.

The shopping cart class can be quirky enough that the first time you use it is a real pain, although in fairness once you get used to it, it is quite nice. I will miss it once it is gone but I think the decision to deprecate it was the right one.
Reply


Messages In This Thread
form_hidden bug - by obozdag - 06-01-2016, 01:37 AM
RE: form_hidden bug - by Narf - 06-01-2016, 02:50 AM
RE: form_hidden bug - by salain - 06-01-2016, 03:00 AM
RE: form_hidden bug - by cartalot - 06-01-2016, 02:05 PM
RE: form_hidden bug - by PaulD - 06-01-2016, 04:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB