Community Forums 

Main Content

Price based on product selected

    Dec 02 2016 20:36:36

    #1

    DG528

    Join date : 2016-12-02      Posts : 5

    Hi,

    Sorry, I know this has to have been asked before but I can't sem to find an answer. I want to submit a price that's dependent on the size of the product selected. I have this which allows the user to select either a 12 or 24 oz. bottle, but how to I integrate a price of $9.99 for the 12 oz. and $17.99 for the second?

    <select name="product">
    <option value="Puppy Shampoo 12 oz">Puppy Shampoo 12 oz</option>
    <option value="Puppy Shampoo 24 oz">Puppy Shampoo 24 oz</option>
    </select>

    Of course, I do have my the POST, id, and submit information in my form but I can't seem to figure out how to submit the appropriate price based on the selection.

    Thanks!

    David



    Dec 02 2016 23:00:41

    #2

    Alan

    Join date : 2008-09-18      Posts : 2950

    You might change to productpr, described at https://www.mals-e.com/tpv.php?tp=2

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




    Dec 03 2016 00:17:43

    #3

    DG528

    Join date : 2016-12-02      Posts : 5

    Ah, thank you Alan. That was what I needed.

    David