Community Forums 

Main Content

Gift Certificates

    Jul 20 2011 00:37:18

    #1

    efriends

    Join date : 2011-07-14      Posts : 51

    I have looked at all the gift certificate posts over the last few years and tried to make my page work but to no avail.

    The problems follow:
    1) value amount drop down box does not check for entry;
    2) email and confirm-email" do not check for error;
    3) upon entry, we go to a different shopping cart; and
    4) item, amount, and quantity do not appear in shopping cart.

    General Questions:
    a) How long is a gift certificate valid?
    b) Where can I get a calendar drop down box?
    c) Is there a variable name that will be stored with the other gift certificate variables for issue-date and from-name?



    Jul 20 2011 00:39:40

    #2

    efriends

    Join date : 2011-07-14      Posts : 51

    I forgot to include a link to the gift certificate page.

    http://megamallplus.com/luxurybedding/gift-certificate.html



    Jul 20 2011 03:27:24

    #3

    Debbie Q

    Join date : 2008-09-18      Posts : 4996

    1-2) I can't help you with the valadation script. I am clueless when it comes to Java Scripts.

    3) looked like it went to the same cart for me.

    4) Your price drop down has to be name="gift_amount" and the prices have to be a number not a word. ie 10.00 not ten

    a) gift certificate is valid until customer uses it or you remove it from the list.

    b) http://www.malsforms.com/calender.html

    c) "gift_message" can be used for anything you want to include

    *** you cannot make up field names. Email has to be "gift_email"

    Required fields.
    •userid = Your User ID
    •gift_amount = value (without Currency enumerator, $, £ or whatever)
    •gift_name = name of the recipient
    •gift_email = email address of the recipient
    •gift_message = gift message

    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 20 2011 05:42:59

    #4

    efriends

    Join date : 2011-07-14      Posts : 51

    Thanks Debbie.
    I changed to gift_amount and changed dollar amounts to numerals but info still does not even go to the "new" cart.

    Since certificates do not expire, I do not need the calender.

    I used "sd" as a field name for the purchaser of the certificate. The description under Gift Vouchers says that "sd" can be used for a session variable field.



    Jul 20 2011 06:07:25

    #5

    GT

    Join date : 2008-09-18      Posts : 3212

    I'd clear this little lot first:
    http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fmegamallplus.com%2Fluxurybedding%2Fgift-certificate.html

    What is all of this for?
                 
                                                      


    I see you've closed the form, then you have input values outside the form, these will not be used.

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

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




    Jul 20 2011 13:26:07

    #6

    Debbie Q

    Join date : 2008-09-18      Posts : 4996

    Remove this line from the code <input name="gift_amount" type="hidden"> and move your </form> button to the end of your other form fields. What do you mean by "new" cart?

    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 20 2011 17:41:22

    #7

    efriends

    Join date : 2011-07-14      Posts : 51

    The "&nbsp;" are from me pressing the space bar in order to place text where I want it. I was able to delete a long line of them.

    When I move </form> to the end, the text on my entire page is moved all over the place.

    New cart means a different cart than my normal cart.

    I don't know if I am capable of correcting the errors shown in http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fmegamallplus.com%2Fluxurybedding%2Fgift-certificate.html



    Jul 20 2011 22:18:11

    #8

    Debbie Q

    Join date : 2008-09-18      Posts : 4996

    If you are using a new cart you need to change the server number and userid to the one associated with the new cart.

    Unless you move that </form> your form will not work. Important required fields are being by passed the way it is setup right now.

    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 21 2011 06:01:58

    #9

    efriends

    Join date : 2011-07-14      Posts : 51

    I changed the location of the Quantity, Value Amount, and Buy Button and now it works.

    I was previously confused about the different looking shopping cart. If you only make a Gift Certificate purchase, the cart looks different from the regular cart in that the note about tax only applying to Texas does not appear. Also, the input box to enter a Gift Certificate number does not appear. If you purchase any item in addition to a Gift Certificate, the normal shopping cart appears.

    I still have 4 problems:
    1) Under Gift Vouchers Optional a variable called "sd = your own session data" is listed. I used "sd" to identify the purchaser of the Gift Certificate but it does not appear in the shopping cart.
    2) Quantity in the shopping cart appears as a check box instead of a numeral. I can imagine someone buying a number of Gift Certificates, leaving the gift_name blank and hand writing the name of the recipients for holiday presents.
    3) script to check for drop down entry; and
    4) script to error check email and confirm_email entry where confirm_email only runs on my end and does not get passed to shopping cart.



    Jul 21 2011 07:49:27

    #10

    Geoff

    Join date : 2008-09-18      Posts : 415

    Your javascript copy and pasting has gone awry.

    REMOVE the left-hand curly bracket from the line immediately BEFORE the line - "function checkConfirmEmail() {"

    ADD a right-hand curly bracket at the very end of that same function.

    The field "gift_name" needs to have input else the cart won't show the voucher, therefore you need to flag the "To" as mandatory.

    The field "sd" is not meant to show in the cart. Its value is passed silently through the checkout process and can be accessed via a remote call script. See https://www.mals-e.com/tpv.php?tp=25



       1   |   2   |   3      »