
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] accessories questions
How do I display color and size attributes after the user has selected
them?
By following the docs I can display a <SELECT> widget, but I can't
figure out how to display the selected value later on. What am I
missing?
My tshirts database looks like this:
-------------------
item price description color size
X-01_T-LOGO 14.99 Some description Black-on-White, Black-on-Natural,
Black-on-Stone, Black-on-Khaki, Silver-on-Black, Orange-on-Black
X-Large, Large, Medium
X-02_T-IMAN 14.99 Some description Black-on-White, Black-on-Natural,
Black-on-Stone, Black-on-Khaki, Silver-on-Black, Orange-on-Black
X-Large, Large, Medium
On my tshirts order page I have this loop (which generates one form for
each item the user can select, along with <SELECT> widgets for size and
color (seems to work):
----------------
[loop search="ra=yes/fi=tshirts/tf=description"]
<form name="results_[loop-increment]" action="[process-order]"
method="POST">
<input type="hidden" name="mv_todo" value="refresh">
<input type="hidden" name="mv_nextpage" value="ord/basket">
<tr>
<td align="center" bgcolor="#CCCC66"><input type="hidden"
name="mv_order_item" value="[loop-code]"><input type="image"
name="mv_order_item" alt="Submit" src=
"buybtn.gif" border="0"></td>
<td align="left" bgcolor="#CCCC66">[loop-field description]</td>
<td align="center" bgcolor="#CCCC66">
<!-- color SELECT widget -->
[accessories code=[loop-code] attribute=color type=select column=color
table=tshirts name=color]
</td>
<td align="center" bgcolor="#CCCC66">
<!-- size SELECT widget -->
[accessories code=[loop-code] attribute=size type=select column=size
table=tshirts name=size]
</td>
</tr>
</form>
[/loop]
On my basket page, I am trying this (two approaches, neither works):
----------------
[item-list]
<tr>
<td>[item-code]</td>
<td>[item-field description]
<br>
<!-- this display nothing at all: -->
[item-modifier color][item-modifier size]
<br>
<!-- this display a SELECT widget: -->
[accessories code=[item-code] attribute=color type=display column=color
table=tshirts name=color]
[accessories code=[item-code] attribute=size type=display column=size
table=tshirts name=size]
</td>
</tr>
[/item-list]
Ideas?
TIA
--
Richard Seymour : Anarchy Software, Inc.
- * - - * - - - * -+- * - - - * - - * -
`°º¤ø,¸ ¸,ø¤º°'
`°º¤ø,¸¸,ø¤º°
_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users