[ic] Best way to save cart?

Grant emailgrant at gmail.com
Sun Jul 8 11:40:45 EDT 2007


> > > > >> but nothing is ever written to that shopping_cart field.  I've
> > tried
> > > > >> setting up a userdb table and removing the database parameter,
> > and
> > > > >> I've tried with and without the nickname and target fields, all
> > with
> > > > >> no luck.  There is nothing in the error.log.  Any idea what
> > might be
> > > > >> wrong?
> > > > >
> > > > >Just so we don't miss the obvious, did you export the userdb back
> > to
> > > > >text file? (Assuming that you are checking the shopping_cart field
> > in
> > > > >userdb.txt) ?
> > > >
> > > > Yes definitely.  I didn't change the definition of the
> > shopping_cart
> > > > field in dbconf/mysql/users.mysql from the default, but in my
> > > > experience, it should write something and then truncate it.
> > There's
> > > > nothing in that field at all.
> > >
> > > The field I see the stuff saved in is userdb.carts .  The carts all
> > > get saved in that text field as a perl hash.  Also a warning, I am
> > > running 4.8.6 .
> >
> > Hi Jeff,
> >
> > I just experimented with a carts field in userdb with no luck.  The
> > field name for you is "carts" right?  What does the [userdb] tag
> > you're using set_cart with look like?
>
> Hi Grant,
>
> I've given it a quick look, never used the functionality myself, however:
>
> - 'carts' field in userdb table is of type 'blob' in my case (see if yours
> is aswell)
> - to save a cart you can use the following usertag:
>   [save_cart nickname="mycart" recurring=0]
>   This saves the cart.
>
> Perhaps this helps in getting things to work for you.
>
> If not then perhaps show what you have tried so far and what errors are
> generated.

Yes!  Thank you Gert and Jeff.  Working perfectly now thanks to your info.

- Grant


More information about the interchange-users mailing list