[ic] Orde multiple items with options at the same time

Joel Gibby joel.gibby at comcast.net
Sat Jul 19 13:46:40 EDT 2003


Hello all (First time poster)
Using IC 4.9.8:

I am setting up a page where customers can see a list of products to be
purchased together for a "project".  Just about everything is done
except that I'm having trouble getting product options to stick when the
customer submits the form, in effect adding all the items to their cart
at once

When I test it out with just one product in the list the options
transfer with the project to the cart.

When I have multiple products, the options are reset to default when the
customer orders the products.  

I'm using [options code="[item-param sku]"] which is pulled from a
[query] as you can see below.  I have no problems displaying the product
details and options, but just can't get the options selected to show up
in order.html.

Any ideas?  
Is this possible?

BTW: I've seen this asked a few times, but usually with no reply :(

Here is a bit of the code I'm using, adapted for the foundation catalog:

<html>
  <body>
  <FORM ACTION="[area order]" METHOD=POST>
    <input type=hidden name="mv_todo" value="refresh">
    <input type=hidden name="mv_separate_items" value="Yes">
    <table>
    [query type=list prefix=sql table=products sql=|SELECT sku FROM
products WHERE prod_group="Painting Supplies"|]
      <tr> 
        <td>
        [query type=list prefix=item sql=|SELECT * FROM products WHERE
sku = "[sql-param sku]"|] 
        <table border=1>
          <tr>
            <td>
		  [item-param title] 
		</td>
		<td>[item-param price]
		</td>
		<td>
              [options code=[item-param sku] price=1]
            </td>
          </tr>
        </table>
      </td>
      <td>
        <INPUT TYPE=hidden  NAME="mv_order_item"  VALUE="[item-param
sku]">
        <INPUT TYPE=text  NAME="mv_order_quantity"
VALUE="1" size=2>
      </td>
    </tr>
    [/query]
    [/query]
    <tr>
      <td colspan="2">
        <input type="submit" value="Put all these items in my cart!">
      </td>
    </tr>
  </table>
  </FORM>
  </body>
</html>



More information about the interchange-users mailing list