Community Forums 

Main Content

Text field

    Nov 10 2010 13:23:20

    #1

    Simon Clay

    Join date : 2009-02-19      Posts : 43

    Is it possible to include a text field with the buy button that enables the user to enter personalisation details for the product?

    For example:

    Tshirt - Red/White/Black - Personalised message: [Jane's Hen Night]

    Thank you,

    Simon.



    Nov 10 2010 13:33:51

    #2

    GT

    Join date : 2008-09-18      Posts : 3207

    Personalised message: <input type="text" name="product[]" size="10" />

    Having trouble with a form or need one building?
    Fast turnaround, but I do charge :)

    Mal's Forms / Scripts and the syntax are here.




    Nov 10 2010 14:25:22

    #3

    Simon Clay

    Join date : 2009-02-19      Posts : 43

    Should the text entered into the text field show in the cart? It is not for me.



    Nov 10 2010 14:58:21

    #4

    GT

    Join date : 2008-09-18      Posts : 3207

    Yes Simon.

    Take a look at my forms page...

    Having trouble with a form or need one building?
    Fast turnaround, but I do charge :)

    Mal's Forms / Scripts and the syntax are here.




    Nov 10 2010 15:23:06

    #5

    Debbie Q

    Join date : 2008-09-18      Posts : 4994

    You have to use a form not a hyperlink.

    The colors can be sent with a drop down menu and then a text box to enter the message. If you are using addmulti include the product number to both product[]

    <select name="product[]" size="1">
    <option selected value=""></option>
    <option value="Red">Red</option>
    <option value="White">White</option>
    <option value="Black">Black</option>
    </select>
    Personalised message: <input type="text" name="product[]" size="10">

    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.