Community Forums 

Main Content

Scode Thumbs and Multiple Choice Menu's

    Apr 29 2012 09:53:25

    #1

    LazyCarrot

    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="http://www.labyrinthsoap.com/rtl-bodycare-new-products.html"; />
    <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>
    </select>
    <input type="text" name="qty1" value="1" size="3" />
    <input type="submit" name="submit" value="add to basket" />
    </form>

    Everything else works fine... any suggestions?



    Apr 29 2012 13:09:25

    #2

    anon

    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

    #3

    Alan

    Join date : 2008-09-18      Posts : 2951

    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!

    Alan
    Some shipping help documents are available at www.stoner.org.uk/mals/




    Apr 29 2012 19:42:05

    #4

    LazyCarrot

    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

    #5

    Debbie Q

    Join date : 2008-09-18      Posts : 4994

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

    Debbie Q

    Mal's Support: www.mals-e.com/support.php
    GT's Forms and examples: www.malsforms.com
    Helpful java scripts: www.gemasana.com/mals
    Shipping help documents: www.stoner.org.uk/mals

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

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