[ic] Matrix or Simple Options, Require customer to choose?

Trentt Cramer trentt at northernsun.com
Wed Mar 3 16:22:22 EST 2004


The code below forces users to choose a size if they are on the flypage
(thanks to Mike Heins). How can the cart component be modified to prevent
users from going to the checkout page (restricting users to just ordering
from the flypage is not possible).

<FORM ACTION="[area href="[item-code]"]" METHOD=POST>
<INPUT TYPE=hidden  NAME="mv_action"  VALUE="refresh">

    [error auto=1 show_var=0]

    [if-item-field option_type eq Matrix]
         [set check_opt]
     &success=ord/basket
                 mv_sku=mandatory Need to select an option.
         [/set]
         <input type=hidden name=mv_form_profile value=check_opt>
    [/if-item-field]

    [if-item-field option_type eq Simple]
         [seti check_opt]
    &success=ord/basket
             [query
                 list=1
                 sql="select o_group,o_label from options where
sku='[item-code]'"
             ]mv_order_[sql-code]=mandatory Need to select [sql-param
o_label]
    [/query]
         [/seti]
         <input type=hidden name=mv_form_profile value=check_opt>
    [/if-item-field]
.......
    [item-options td=1 label=1 bold=1 price=1 blank_label="--select--"]



More information about the interchange-users mailing list