Mark Gillespie Posted September 20, 2006 Posted September 20, 2006 I've installed the "about Paypal" box in my shop and would like to know how to create links to the corresponding languages. I know the relavant http addresses you just have to change the country initials after .com/ in the address. I just need to know how to program the php. I'm new to php (and to html for that matter) do I change the paypal.php code? or the left_column,php code (with paypal.php files in each of the includes/languages/LANGUAGE/ files) ? How do I do it? can anyone help me out? here is the paypal.php code: <?php /* $Id: information.php,v 1.5 2002/01/11 22:04:06 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2001 osCommerce Released under the GNU General Public License */ ?> <!-- paypal_link //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => BOX_HEADING_PAYPAL ); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => '<a href="#" onclick="java script:window.open(\'https://www.paypal.com/us/cgi-bin/webscr?cmd=xpt/popup/OLCWhatIsPayPal-outside\',\'olcwhatispaypal\',\'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, width=400, height=450\');"><img src="https://www.paypal.com/en_US/i/bnr/vertical_solution_PPeCheck.gif" border="0" alt="Solution Graphics"></a>'); new infoBox($info_box_contents); ?> </td> </tr> <!-- paypal_link_eof //--> Quote
signs Posted September 21, 2006 Posted September 21, 2006 I don't use multiple languages on my website, so I don't know if I will be much help, but here's how I THINK it would be done: Make duplicates of the php pages for each language you want to support, changing the ending of the URL of the paypal page it will call to the corresponding language you wish to display. Put the php page into the proper language folder. For instance, the english version goes in english/paypal.php and french would go in french/paypal.php etc. To tell you the truth, it has been so long since I did the contrib and I have long since switched over to another cart that I forget if the header or any other pages were modified, but whatever files were modified need to be duplicated from the english folders into the corresponding language folders. Hope that helps! Signs Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.