Community Forums 

Main Content

No Shipping Charges Displayed

    Jul 03 2009 22:20:53

    #1

    LazyCarrot

    Join date : 2009-06-26      Posts : 52

    My shopping cart works fine, requesting the customer to select a shipping region, provided they have purchased a 'simple' item.
    However, if the only item(s) selected are from a drop-down menu, then the shopping cart does not ask the customer to enter a shipping region.

    Here is a sample coding i'm using for the drop-down...

    <form method="post" action="http://ww11.aitsafe.com/cf/addmulti.cfm">;
    <input type="hidden" name="userid" value="X*******" />
    <input type="hidden" name="return" value="http://www.labyrinthsoap.com/access.html"; />
    <input type="hidden" name="units" value="0" />
    <select name="productpr1" value="Shaby Chic Soap Dish">
    <option value=""> Select Your Soap Flavour </option>
    <option value="Soap Dish - Geranium & Bergamot :7.99"> Geranium & Bergamot </option>
    <option value="Soap Dish - Lavender :7.99"> Lavender </option>
    <option value="Soap Dish - Rose :7.99"> Rose </option>
    <option value="Soap Dish - Sunflower & Calendula :7.99"> Sunflower & Calendula </option>
    </select>
    <input type="text" name="qty1" value="1" size="2" />
    <input type="submit" name="submit" value="add to basket" />
    </form>

    Can anyone spot if i'm missing a parameter or something?



    Jul 03 2009 22:34:53

    #2

    Don

    Join date : 2008-09-18      Posts : 487

    Hi,

    You are mixing html (">) with xhtml (" />) closing tags (" />.

    I have removed the errors and it works ok with me.

    <form method="post" action="http://ww11.aitsafe.com/cf/addmulti.cfm">;
    <input type="hidden" name="userid" value="xxxxxxx">
    <input type="hidden" name="return" value="http://www.labyrinthsoap.com/access.html">;
    <input type="hidden" name="units" value="0">
    <select name="productpr1" value="Shaby Chic Soap Dish">
    <option value=""> Select Your Soap Flavour </option>
    <option value="Soap Dish - Geranium & Bergamot :7.99"> Geranium & Bergamot </option>
    <option value="Soap Dish - Lavender :7.99"> Lavender </option>
    <option value="Soap Dish - Rose :7.99"> Rose </option>
    <option value="Soap Dish - Sunflower & Calendula :7.99"> Sunflower & Calendula </option>
    </select>
    <input type="text" name="qty1" value="1" size="2">
    <input type="submit" name="submit" value="add to basket">
    </form>

    DB.

    www.donbarrow.co.uk
    www.pacenotes.com
    Please either Share or Like my Facebook




    Jul 04 2009 01:10:44

    #3

    Debbie Q

    Join date : 2008-09-18      Posts : 4994

    You are missing your units. When using productpr the units number is written after the price. The example below I used 5 units.

    <option value="Soap Dish - Geranium & Bergamot :7.99:5"> Geranium & Bergamot </option>

    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.




    Jul 04 2009 09:45:09

    #4

    LazyCarrot

    Join date : 2009-06-26      Posts : 52

    Thank you guys - appreciate your time.

    Don: Well spotted - I shall clean up the coding... thanks

    Debbie Q: That did the trick. I calculate postage charges based on weight, as the weight was zero the shopping cart didn't even bother to ask for a shipping location - which is actually pretty neat.

    Thanks again.