[ic] Use Checkboxes instead

Michael Goldfarb interchange-users@icdevgroup.org
Fri Jan 17 16:44:01 2003


>> Why don't you use a select-box?
>> 
>
>It's for a cross-sell message to allow customers to add additional
>products to their order by using checkboxes. For example, if you
>purchase a portable cd player you may want to add batteries, headphones
>or even a cd cleaning kit. So, then they will be able to check off
which
>accessories they want to add on the same page that displays the
product.
>
>Matthew

We did this in a pretty cool way using the UpSell Feature. I don't
remember how much modification I did to this code before this final
version, but it looks like you can just plug this right into the UpSell
Component file. It will display the item of the page the person is on as
well as any items that are associated as UpSell items for that product.
It will list a column with checkboxes that people can check to add them
to the order. I don't know if this is the best solution, but it has
worked well for a lot of our clients.

Just make sure the following variables are included near the top of your
flypage.html file:

[set upsell][item-data merchandising upsell_to][/set]
[seti main_item][item-code][/seti]
[seti main_title][item-field description][/seti]
[seti main_price][currency][item-field price][/currency][/seti]

(Sorry about the font colors that are given... I was lazy and didn't do
this version with the Foundation theme.cfg)

------------------------------------------------------------------------
--

[if scratch upsell]

<br clear=all>

<FORM ACTION="[area order]" METHOD=POST>
  <input type=hidden name=mv_session_id value="[data session id]">
  
<table width="95%" align="align="center"" border="1" bgcolor="#880000"
bordercolor="#000000" cellpadding="0" cellspacing="0">
<tr> 
  <td>
    &nbsp;<font color="#FFFFFF" size="3"><i><b>Associated
Items</b></i></font>
  </td>
</tr>
</table>

    <table width="95%" border="1" cellspacing="0" cellpadding="0"
align="center">
	<tr>
	<td align="center"><b>Add</b></td>
	<td align="center" width="80"><b>Pic</b></td>
        <td align="center"><b>Item</b></td>
        <td align="center"><b>Price</b></td>
        </tr>
        <tr bgcolor="#CCCCCC">
	<td align="center"><input type="checkbox" value="[scratch
main_item]" name="mv_order_item" checked></td>
	<td align="center" width="80">&nbsp;</td>
        <td>&nbsp;<b>[scratch main_title] - <i>(current item)</b></td>
        <td align="center">[scratch main_price]</td>
        </tr>
        [loop random="[control size 15]" list="[scratchd upsell]"]
        <tr>
	<td align="center"><input type="checkbox" value="[loop-code]"
name="mv_order_item"></td>
	<td align="center" width="80"><img src="thumb/[loop-field
thumb]"></td>
        <td>&nbsp;<a href="[area [loop-code]]">[loop-description]</a> -
[loop-field introdesc]
        <td align="center">[loop-price]</td>
        </tr>
        [/loop]
    </table>

    <p align="center"><input type="image"
src="__THEME_IMG_DIR__add_to_order.gif" border="0" value="Add these
items to Your Order"></p>
    
</form>

[/if]

[seti main_item][/seti]
[seti main_title][/seti]
[seti main_price][/seti]