Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Paypal banner resulting in errors.


nijhal

Recommended Posts

When I try to add the following into any of my pages its results in errors...

 

<!-- 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/horizontal_solution_PP.gif" border="0" alt="Solution Graphics"></a></td></tr></table><!-- PayPal Logo -->

 

It is resulting in the following error...

 

Parse error: syntax error, unexpected T_STRING in /home/nijhal/public_html/includes/languages/english/shipping.php on line 23

 

The only place it will let me add the code is in column_right, column_left, header and footer.php. If I try and add it into the center of a page it results in the above error, line numbers change if I move it, but it is always the same.

 

<?php
/*
 $Id: conditions.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/

define('NAVBAR_TITLE', 'Payment Options');
define('HEADING_TITLE', 'Payment Options');

define('TEXT_INFORMATION', 'I am trying to place the paypal code here.');
?>

 

Does it have to be coded differently or something? What am I doing wrong?

 

Ryan

Link to comment
Share on other sites

Hi Ryan,

1. Replace all single quotes ' with double quotes ".

<!-- 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/horizontal_solution_PP.gif" border="0" alt="Solution Graphics"></a></td></tr></table><!-- PayPal Logo -->

2. Please make sure you do that only with banner code (listed above, do not touch PHP code).

3. I shall wait for - magic - it works message :)

 

Cheers,

Best Regards,
Gaurav

Link to comment
Share on other sites

-magic- it works!

 

Next question.

 

Is there any way to let images size themselfs more to their proportions? Alot of my products images are squashed one way or another. Is there an option I can do so that it will just fit image to size instand of making be a certain size?

Link to comment
Share on other sites

-magic- it works!

Chuckles .. I knew it would :) but thanks for confirming!!!!

 

Next question - should really be started in a new thread [i think .. it would help others who need to know only about image resizing - and not about Paypal :)]

Please give URL of your store to see what is going on, however, the whole design of osCommerce is made with certain things fixed within a table structure.

One can certainly modify table structure - but it won't remain flexible - and my 2 cents - use default image size so that you don't have to bother about page view getting distorted at any time, in future.

 

Cheers,

Best Regards,
Gaurav

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...