Community Forums 

Main Content

Scode Thumbs and Multiple Choice Menu's

    Apr 29 2012 09:53:25



    Join date : 2009-06-26      Posts : 52

    I've set up 'scode' discounts and 'thumb' pictures in the shopping cart.
    These work great for single item entries but - where i offer a choice from a drop down menu the fields aren't recognised (ie no picture and the discount isn't applied)
    Here's the coding i've used (userid & action modified for security)

    <form method="post" action="http://ww...etc"><input type="hidden" name="userid" value="XXXXXXXX"/>
    <input type="hidden" name="return" value=""; />
    <input type="hidden" name="thumb" value="SoapSlice/Britannia.gif" />
    <input type="hidden" name="scode" value="britannia" />
    <select name="productpr1" value="Liquid Soap">
    <option value=""> Please Choose </option>
    <option value="Soap Slice - Patchouli &amp; Hemp :5.95:5.95"> Patchouli &amp; Hemp </option>
    <option value="Soap Slice - Lime Clove &amp; Cinnamon :5.95:5.95"> Lime Clove &amp; Cinnamon </option>
    <input type="text" name="qty1" value="1" size="3" />
    <input type="submit" name="submit" value="add to basket" />

    Everything else works fine... any suggestions?

    Apr 29 2012 13:09:25



    Join date : 2008-09-18      Posts : 488

    With addmulti you need to add the product number to the thumb and scode parameters (thumb1, scode1, etc.)

    Apr 29 2012 14:31:59



    Join date : 2008-09-18      Posts : 2977

    I'd expect to see scode in the productpr option statements here. As in "Description:Price:Units:Scode:Hash".

    Haven't seen any mention of adding thumb to that string though it might make sense. My suggestion would be to suggest it to Mal!

    Some shipping help documents are available at

    Apr 29 2012 19:42:05



    Join date : 2009-06-26      Posts : 52

    Thanks guys...
    anon's suggestion of changing thumb and scode to thumb1 and scode1 works - so I've gone with that... however it means that all options in the dropdown have to have the same scode and thumb - i can compromise on that for now but Alan's solution would allow for a different scode for each item in the dropdown... and a different pic for each dropdown could be useful.

    Apr 29 2012 20:11:56


    Debbie Q

    Join date : 2008-09-18      Posts : 4998

    scode can go in the productpr statement. Productpr can send: product:price:units:scode:hash (in that order)

    Debbie Q

    Mal's Support:
    GT's Forms and examples:
    Helpful java scripts:
    Shipping help documents:

    My Create-A-Book Publishing -
    Personalized Books, Music CDs and Gifts for all ages and occasions.

    Please help me out and share my site on your networks.