Community Forums 

Main Content

Discount scode for group

    Apr 12 2016 23:01:18

    #1

    dsather1

    Join date : 2016-04-12      Posts : 1

    I am trying to make a sale for a group of items, where the discount applies to these items and not to the whole site. I have done this before, but has something changed on mals? Because what I did before is not working now. I went to the discount coupon part of the cart, and did percentage value, 50% and a SKU "is equal to" and A16.

    <form class="left" action="http://ww4.aitsafe.com/cf/addmulti.cfm"; method="post" onsubmit="return AddToCart(this)">
    <input type="hidden" name="userid" value="65174997" />
    <input type="hidden" name="return" value="http://swanpicturehangers.com"; />
    <input type="hidden" name="shipping" value="6.00" />
    <input type="hidden" name="tax" value="8.75" />
    <input type="hidden" name="productpr1" value="Silk and Satin:26::Silk and Satin" />
    <input type="hidden" name="scode" value="A16">
    <b>Hanging Option :</b><br />
    <select name="product1[]">
    <option value=" - Picture Rail">Picture Rail</option>
    <option value=" - Nail">Nail</option>
    <option value=" - Jane Austen">Jane Austen</option>
    </select>
    <br /><br />
    <input type="text" name="qty1" size="3" value="1" />&nbsp;<b>Qty</b>
    <br /><br />
    Additional Cord <b>Price: $1 per Ft.</b><br />
    <input type="hidden" name="productpr2" value="Silk and Satin Extra Cord:1::Silk and Satin Extra Cord" />
    <input type="text" name="qty2" size="3" value="0" />&nbsp;<b>Qty</b>
    <br /><br />
    <input type="submit" class="btn" onmouseover="this.className='btn btnhov'" onmouseout="this.className='btn'" value="Buy Now!" />
    </form>

    And when I do a test and try to apply the discount, it says "Sorry, this is not a valid discount coupon".



    Apr 13 2016 02:04:21

    #2

    Debbie Q

    Join date : 2008-09-18      Posts : 4994

    Since you are using addmulti.cfm you have to give your scode a product number. ie: scode1=A16

    If they are also supposed to get 50% off the extra code you also need to give it an scode. In a productpr statement scode is the 4th value. product:price:units:scode:hash (in that order) <input type="hidden" name="productpr2" value="Silk and Satin Extra Cord:1:0:A16" />

    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.




    Apr 13 2016 06:14:48

    #3

    Alan

    Join date : 2008-09-18      Posts : 2951

    Any 'shipping' value you send to the cart replaces what is there, so this is rarely used. It is described at https://www.mals-e.com/tpv.php?tp=22.

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