Sure Dave - 

If you go here and add an item with choices and structs to the cart - I
"dump" the "cart" (which shows the structs) on the next page.

http://cf.bigfatdesigns.com/cart/store.cfm?AssocID=0&MDID=0&DetailID=15

Additionally - this is how I make the structs on "Add To Cart":

<!--- OPTION STRUCTURE HERE --->
  <CFSET This.OptionArray = StructNew()>

      <cfloop list="#form.fieldnames#" index="x">
             <cfif Left(#x#, 16) EQ "MerchOptionItem_">
              <cfoutput>
                 <cfset variables.ThisOptField = Evaluate("form.#x#")>
                    #StructInsert(This.OptionArray, Right(x, Len(x)-16),
variables.ThisOptField)#
               </cfoutput>
             </cfif>
      </cfloop>
      
      
<!--- CHOICES STRUCTURE HERE --->
  <CFSET This.ChoiceArray = StructNew()>

      <cfloop list="#form.fieldnames#" index="x">
             <cfif Left(#x#, 12) EQ "MerchChoice_">
              <cfoutput>
                 <cfset variables.ThisChoiceField = Evaluate("form.#x#")>
                                        <cfif #variables.ThisChoiceField#
NEQ "">
                                #StructInsert(This.ChoiceArray, Right(x,
Len(x)-12), variables.ThisChoiceField)#
                    </cfif>
               </cfoutput>
             </cfif>
      </cfloop>


- Nick



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:4673
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to