Community Forums 

Main Content

Mobile shopping cart

    Nov 14 2012 02:56:18

    #1

    pcguy

    Join date : 2008-09-18      Posts : 130

    Has anyone got a sample of a mobile cart that uses the nocart feature.

    I have tried many things and even sent some very basic sample code to vworker who write all sorts of code and they tell me that the issue is at mals cart end with the mobile side of the cart. The normal website using nocart functions correctly.

    Here is the sample code I sent them to review for me

    <form action="http://ww11.aitsafe.com/mobile/add.php"; method="post">
    <input name="userid" type="hidden" value="D123456">
    <input name="return" type="hidden" value="www.yourdomain.com/">;
    <input type="hidden" NAME="nocart">
    <INPUT TYPE="HIDDEN" NAME="product" VALUE=" Test Product ">
    <INPUT TYPE="HIDDEN" NAME="price" VALUE="8.50">
    Test Product <b>$8.80</b>
    <input type="image" src="images/cart.gif" alt="Add">

    </FORM>



    Nov 14 2012 04:37:19

    #2

    Debbie Q

    Join date : 2008-09-18      Posts : 4994

    I suggest emailing Mal directly. My guess is it does not work in the mobil version. Please let us know what he says.

    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 14 2012 07:36:19

    #3

    GT

    Join date : 2008-09-18      Posts : 3207

    I am viewing, right now, my 'display cart page' on my mobile, this page uses the nocart syntax.

    Adding an item to the cart shows me the popup window and returns my seamlessly to the original page.

    From there I can click the 'checkout' link and go to Mal's.

    The URL in my mobile is:

    http://www.malsforms.com/mobi/display-cart.html

    <form action="http://ww12.aitsafe.com/cf/add.cfm"; method="post">
    <p>Product One 5.99
    <input type="hidden" name="userid" value="E9120065" />
    <input type="hidden" name="thumb" value="logo.png" />
    <input type="hidden" name="product" value="Product One" />
    <input type="hidden" name="price" value="5.99" />
    <input type="hidden" name="qty" value="1" />
    <input type="hidden" name="nocart" value="1" />
    <input type="hidden" name="return" value="www.malsforms.com/mobi/display-cart.html"; />
    <input class="rounded" type="submit" value="Add to Mal's Forms cart" onclick="alert('Order has been added to your cart\n\nThis page will refresh');" onkeypress="alert('Order has been added to your cart\n\nThis page will refresh');" />
    </p>
    </form>

    Notice my mobile phone has been identified as such and has been redirected to my mobi directory. This page is different in layout to the normal page.

    I see in my mobile, the layout that I have built specifically for the mobile page from:
    http://www.malsforms.com/display-cart.html

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

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




    Nov 14 2012 08:55:32

    #4

    pcguy

    Join date : 2008-09-18      Posts : 130

    Thanks Graham

    I have noticed on your code that you are not actually using the mobile cart

    I have this line <form action="http://ww11.aitsafe.com/mobile/add.php";; method="post">

    and you have this one <form action="http://ww12.aitsafe.com/cf/add.cfm";; method="post">

    When I click checkout on that page you gave from my mobile it takes me to the normal website cart and not the mobile cart.

    Hope that makes sense what I posted.

    Here is the link https://www.mals-e.com/tpv.php?tp=36 where I got my info about the mobile cart from



    Nov 14 2012 09:02:31

    #5

    pcguy

    Join date : 2008-09-18      Posts : 130

    I have taken your advise Debbie and emailed Mal and here is his answer he gave me. S0 I'm not going mad after all this had been driving me nuts.
    Thanks GT for you assistance as well I value all you guys (and girls) do in here to help out. It's much appreciated thanks


    Answer from Mal:


    Hi Graham,

    No, it is not supported in the mobile cart script. You should use the standard cart URL if you don't want to display the cart.

    Best,

    Mal Stewart