Community Forums 

Main Content

Delete Item/Trash Link Not Working

    Oct 18 2011 02:31:03

    #1

    Medusa

    Join date : 2011-05-22      Posts : 105

    Does anyone use the "DELETE ITEM LINK"? Neither the trash icon nor the hyperlink work for my cart...

    WWW.MEDUSASMAKEUP.COM




    Oct 18 2011 02:49:47

    #2

    Debbie Q

    Join date : 2008-09-18      Posts : 4994

    The cart does not normally have a delete item link or trash icon. This must be something you added? Can we see your URL to take a look and see?

    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.




    Oct 18 2011 03:02:43

    #3

    Medusa

    Join date : 2011-05-22      Posts : 105

    When you login to Mals, there is the option to add a DELETE ITEM LINK, or
    trash icon, they do not work.

    Under Cart setup
    Messages and general settings
    DELETE ITEM LINK

    you can go to this link and add something to the cart to see it. Although I just enabled it and I am going to remove it soon, because it does not work.

    http://www.medusasmakeup.com/lip%20gloss.htm

    WWW.MEDUSASMAKEUP.COM




    Oct 18 2011 03:49:37

    #4

    Debbie Q

    Join date : 2008-09-18      Posts : 4994

    I love when Mal adds new features and does not tell anyone about it. Never saw that before. It works on my cart but I can't test yours because you removed it already.

    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.




    Nov 06 2011 15:49:06

    #5

    Medusa

    Join date : 2011-05-22      Posts : 105

    Solution:
    You need to add this Javascript function into the <head></head> of your
    template:

    <script language="javascript" type="text/javascript">
    function deleteit(id)
    {
    var tbox = document.getElementById(id);
    if (tbox)
    {
    tbox.value = 0;
    document.forms['cartform'].submit();
    }
    }
    </script>

    WWW.MEDUSASMAKEUP.COM




    Nov 06 2011 15:53:35

    #6

    Alan

    Join date : 2008-09-18      Posts : 2951

    Trash icon works for me. Which server are you on? Maybe Mal hasn't done them all.

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




    Nov 06 2011 17:17:54

    #7

    Geoff

    Join date : 2008-09-18      Posts : 415

    When using the template feature, the cart is rendered within this template - but only the table containing the cart. The rest of the HTML that normally goes to make up the non-template cart page is omitted because it is expected that this would be included in your template.

    The problem here is that the script that performs the delete item function is part of the HTML not included if using the template feature. Medusa has identified this and has correctly posted a workaround solution, that is, include the script in your template.

    I will bring this to Mal's attention as a note needs to be added in cart admin.



    Dec 01 2011 08:00:43

    #8

    EZhobby

    Join date : 2011-08-29      Posts : 13

    This is definitely correct... :)

    Medusa said Solution:
    You need to add this Javascript function into the <head></head> of your
    template:

    <script language="javascript" type="text/javascript">
    function deleteit(id)
    {
    var tbox = document.getElementById(id);
    if (tbox)
    {
    tbox.value = 0;
    document.forms['cartform'].submit();
    }
    }
    </script>

    EZ Hobby - Creative arts made easy for Everyone

    http://ezhobby.co