Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I can't get the link in my PayPal box to work!


Guest

Recommended Posts

Posted

On my website Between The Sticks USA in the right column there is a box with a PayPal gif. The current code looks like this:

<?php

/*

$Id: payment.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

?>

<!-- payment //-->

<tr>

<td>

<?php

$info_box_contents = array();

$info_box_contents[] = array('text' => BOX_HEADING_PAYMENT);

 

new infoBoxHeading($info_box_contents, false, false);

 

$info_box_contents = array();

$info_box_contents[] = array('align' => 'center',

'text' => tep_image(DIR_WS_IMAGES . 'vertical_solution_PPeCheck.gif'));

 

new infoBox($info_box_contents);

?>

</td>

</tr>

<!-- information_eof //-->

 

Now, whenever I follow the instructions in the Knowledge base to add a link, the box & any other boxes below it disappear. How should the coding look to work properly? I need to add the following code, according to PayPal:

<!-- PayPal Logo --><table border="0" cellpadding="10" cellspacing="0" align="center"><tr><td align="center"></td></tr>

<tr><td align="center"><a href="#" onclick="java script:window.open('https://www.paypal.com/us/cgi-bin/webscr?cmd=xpt/cps/popup/OLCWhatIsPayPal-outside','olcwhatispaypal','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=400, height=350');"><img src="https://www.paypal.com/en_US/i/bnr/vertical_solution_PPeCheck.gif" border="0" alt="Solution Graphics"></a></td></tr></table><!-- PayPal Logo -->

 

Thanx in advance for any help!

Posted

Change this:

 

'text' => tep_image(DIR_WS_IMAGES . 'vertical_solution_PPeCheck.gif'));

to

 

'text' => '<!-- PayPal Logo --><table border="0" cellpadding="10" cellspacing="0" align="center"><tr><td align="center"></td></tr>
<tr><td align="center"><a href="#" onclick="java script:window.open(\'https://www.paypal.com/us/cgi-bin/webscr?cmd=xpt/cps/popup/OLCWhatIsPayPal-outside\',\'olcwhatispaypal\',\'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=400, height=350\');"><img src="https://www.paypal.com/en_US/i/bnr/vertical_solution_PPeCheck.gif" border="0" alt="Solution Graphics"></a></td></tr></table><!-- PayPal Logo -->');

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

The forum puts a space between java and script here:

 

onclick="java script

You must remove that space before it will work.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

I'll tell you right now that because of this part of the code:

 

 href="#"

And the way osC handles links, when people click it the little java script window will open up, BUT they will also be taken back to the home page (I think).

:blush:

 

I think I can fix that so they stay on the current page if you want.

;)

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

THANK YOU! I never would have figured that out!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...