[ic] on-the-fly items - Using Other Fields

Tom Lichti tom@redpepperracing.com
Fri, 23 Feb 2001 10:55:37 -0500


That is odd, because here is part of my code from results.html:

<td valign="top" width="200"><a href="[area [item-code]]"><font __FFACE__
size="1"><b>[item-description]</b></font></a></td>
<td valign="top" width="75"><a href="[area [item-code]]"><font __FFACE__
size="1"><b>[item-field make]</b></font></a></td>
<td valign="top" width="75"><a href="[area [item-code]]"><font __FFACE__
size="1"><b>[item-field model]</b></font></a></td>
<td valign="top" width="75"><a href="[area [item-code]]"><font __FFACE__
size="1"><b>[item-field year_start]-[item-field
year_end]</b></font></a></td>

As you can see, I have 4 new fields that I am pulling, and they work.

Granted, I haven't tried it in the basket, but it works here. I am using
MySQL, and I have the fields defined in products.txt, so I don't know if
that makes a difference or not.

Tom Lichti

----- Original Message -----
From: Mike Heins <mikeh@minivend.com>
To: <interchange-users@lists.akopia.com>
Sent: Friday, February 23, 2001 1:51 AM
Subject: Re: [ic] on-the-fly items - Using Other Fields


> Quoting Grant Galea (grant@hq.com.au):
> > Hi all,
> >
> > I'm using the latest version of Minivend 4 (still yet to update).
> >
> > I have all my products in the products db and the reason I'm using
> > on-the-fly items is because I need to combine a number of products
> > from the products db into a package that is shown in the basket page
> > as one product.
> >
> > I have successfully done this though I have run into one problem.
> > On the basket page I can only access the description, quantity and price
> > fields. I am posting other fields but I can't access them. (see below).
> >
> > **** eg add to basket post page ****
> >
> > mv_todo=refresh
> > mv_order_group=1
> > mv_order_item=SA0001
> > mv_order_fly=description=sample product|price=99.5|test=testing other
field
> > ____________
> >
> > **** eg basket page ****
> >
> > [item-list]
> >    <tr>
> >       <td>[item-description]</td>   <-------- works
> >       <td>[item-subtotal]</td>        <--------- works
> >       <td>[item-field test]</td>       <-------- displays nothing (I
have
> > tried every way I can think of)
> >    </tr>
> > [/item-list]
> >
> > I hope I have explained myself well enough and that someone can help me.
> > Also I have tried all of the obvious.
>
> Nowhere is it documentend that [item-field ....] does anything but access
> a database. So it is not surprising that it doesn't work for you.
>
> Have you looked at the contents of the shopping cart with a [dump] tag?
> I think you might find it sits in the test attribute, available with
> [item-modifier test].
>
> --
> Red Hat, Inc., 131 Willow Lane, Floor 2, Oxford, OH  45056
> phone +1.513.523.7621 fax 7501 <mheins@redhat.com>
>
> Friends don't let friends use Outlook. -- Bob Blaylock
>
> _______________________________________________
> Interchange-users mailing list
> Interchange-users@lists.akopia.com
> http://lists.akopia.com/mailman/listinfo/interchange-users
>