[ic] saved Cart

Kevin Walsh interchange-users@icdevgroup.org
Wed Jun 11 12:12:00 2003


dhenao@tampabay.rr.com wrote:
> 
> I am running IC 4.9.7. I was reading about keeping the saved carts permanently, 
> but all the documentation that I found was for minivend. I want to keep the 
> saved carts permanently for each user unless they want to delete them. 
> 
As far as I'm aware, the cart load/save/delete/list functionality is
unchanged from MiniVend.  Any documentation you've seen for that should
still be relevant.

Some pointers to get you started:

  Save current cart contents to "mycart":

      [userdb function="set_cart" nickname="mycart"]

  Recall saved cart called "mycart" (overwrites the current cart
  contents):

      [userdb function="get_cart" nickname="mycart"]

  Delete the "mycart" record:

      [userdb function="delete_cart" nickname="mycart"]

  Get a list of saved carts for the current logged-in user:

      [userdb function="get_cart_names"]

By default, the "get_cart_names" function loads the names into "carts".
Use [value carts] to show the value.

If a user saves a cart then it's stored (by default) in their userdb
row, so it will be kept "permanently" until either (1) the user deletes
the record or changes the saved cart contents, (2) the admin does #1
on behalf of the user, or (3) you somehow manage to loose the contents
of your userdb and don't have a backup. :-)

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin@cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/