Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3

Thread: HotLink Query

  1. #1
    Junior Member
    Join Date
    Oct 2002
    Location
    Fife - Scotland
    Posts
    1
    Member #
    222
    I have recently signed up with a US Bank for credit card facitlites on my site. It's a simple problem, they have provided HotLink Text Buttons for customers to click on the "Buy Now" and "View Cart"
    the thing is I dont like Text Links and I want to use gif or jpg buttons. I cant get this "Buy Now" link to work on a button, I ve tryed it but hell it just doen't work.

    <a href="https://www.2checkout.com/cgi-bin/ccbuyers/purchase.2c?sid=43302&product_id=49&quantity=1">Bu y Now</a>

    The question is how do I get this Hyper Text Link to work on a button?

    It can't be that difficult can it?

  2.  

  3. #2
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    For a normal system button:

    Easy way, but requires Javascript:
    Code:
    <input type="button" onClick="window.location='https://www.2checkout.com/cgi-bin/ccbuyers/purchase.2c?sid=43302&product_id=49&quantity=1'" value="Buy Now">
    Harder way, but guaranteed to work, provided your host supports PHP:
    Code:
    <form action="redir.php">
    <input type="submit" value="Buy Now">
    </form>
    Then put this in redir.php:
    Code:
    <?
    header('Location: https://www.2checkout.com/cgi-bin/ccbuyers/purchase.2c?sid=43302&product_id=49&quantity=1');
    exit;
    ?>
    For a GIF/JPG image:
    Code:
    <a href="https://www.2checkout.com/cgi-bin/ccbuyers/purchase.2c?sid=43302&product_id=49&quantity=1"><img src="myimage.gif" border="0" alt="Buy Now">Buy Now</img></a>
    Any help?
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  4. #3
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    oasis wrote on 10-10-2002 07:08 AM:
    !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Hi Filburt1,
    thanks for that. It goes to the cart but doesn't add the product to the cart. The code below is exactly what I copy and past from www.2checkout.com
    -------------------------------------------------------------------------------
    <a href="https://www.2checkout.com/cgi-bin/ccbuyers/purchase.2c?sid=40522&product_id=51&quantity=1">Bu y Now</a>
    -------------------------------------------------------------------------------
    This below is what I did with the jpg button code you sent me



    <a href="https://www.2checkout.com/cgi-bin/ccbuyers/purchase.2c?sid=40522"&product_id=49&quantity=1">< img src="web%20page%20images/addtocart.gif" alt="Buy Now"


    The fustrating thing is I have the view cart working fine but the "add to cart" is the problem.
    Regards
    Ross
    You have some tags missing:
    Code:
    <a href="https://www.2checkout.com/cgi-bin/ccbuyers/purchase.2c?sid=40522"&product_id=49&quantity=1"><img src="web%20page%20images/addtocart.gif" alt="Buy Now"></a>
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 02:49 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com