Help with Buy Button

Discussion in 'Installation' started by pamb10, Dec 28, 2016.

  1. pamb10

    pamb10 aMember Pro Customer

    Joined:
    Aug 29, 2011
    Messages:
    18
    I have installed the latest version of aMember and configured it. I also configured the shopping cart. My website is built with Wordpress and Divi theme.

    I have a buy button image and the generated code from the shopping cart module. For the life of me, I cannot figure out how to get them to work together on my sales page.

    Any help would be greatly appreciated!

    Thanks.
    Pam
  2. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    1,669
    Hello Pam,

    You need to put your image url to button code

    I assume you have your image at url:
    Code:
    /assets/cta-button.png
    Then you generate add to basket link in aMember
    aMember CP -> Shopping Cart -> Button/Link HTML code
    HTML:
    <!-- 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.addExternal(this,1); return false;" >Add To Basket</a>
    <!-- End Button/Link for aMember Shopping Cart -->
    You need to replace text 'Add To Basket' in code above with your image
    HTML:
    <img src="/assets/cta-button.png" />
    You will get something like
    HTML:
    <!-- 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.addExternal(this,1); return false;" ><img src="/assets/cta-button.png" /></a>
    <!-- End Button/Link for aMember Shopping Cart -->
    Put this code to your sales page.

    Best Regards.
  3. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    1,669
    In upcoming release you will be able to upload your image during add to button code generation and get ready to use code without any additional actions.

    Best Regards.
    relapse likes this.

Share This Page