using custom add to cart button

Discussion in 'aMember Pro v.4' started by janriley, Nov 10, 2013.

  1. janriley

    janriley New Member

    Joined:
    Nov 1, 2013
    Messages:
    2
    I see others using custom add to cart buttons but cannot tell how to set that up, I see the amember wants me to make the button in html , but I want to use my own image,
    Directions state:
    "Just open aMember CP -> Setup -> Shopping Cart : Button/Link HTML code and you will be able to generate HTML code for insertion."

    I get code like this:

    <!-- Button/Link for aMember Shopping Cart -->
    <script type="text/javascript">
    if (typeof cart == "undefined")
    document.write("<scr" + "ipt src='/amember/application/cart/views/public/js/cart.js'></scr" +

    "ipt>");
    </script>
    <a href="#" onclick="cart.addCheckoutExternal(this,5); return false;" > Media
    Package</a>
    <!-- End Button/Link for aMember Shopping Cart -->

    How do I add my own buy it now or add to cart button? please help
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    You get regular HTML code which you can modify as you need.
    For example if you want to include image instead of text:
    Code:
    <a href="#" onclick="cart.addCheckoutExternal(this,5); return false;" ><img src="/url/of/button/image.png"></a>
    
  3. janriley

    janriley New Member

    Joined:
    Nov 1, 2013
    Messages:
    2
    THANK YOU !- i had tried this several times, but not being a coder , I was doing something slightly wrong, and I could not figure it out - Alexander thank you so much!

Share This Page