doanbertoni Posted April 29, 2013 Posted April 29, 2013 Hi i'm new to oscommerce, my boss has a website that he wanted me to edit... I have edited the main payment.php file to change the text, now that i have uploaded it to the the website the site shows a blank page. Do you know why this happened? and how can i fix it? this is the site: pepspice.net if you click on payments under the information menu you'll se it shows a blank page and it was showing a normal page like the others under information (like the attached image). What can i do? Thank you, Doan
Guest Posted April 29, 2013 Posted April 29, 2013 @@doanbertoni If you have a 'blank' page, it typically means that you have left 'whitespace' on the page you edited. Ensure that you only use a text editor to edit PHP files (Notepad++ or Editplus+) to prevent 'whitespace' errors. Chris ps. Your IP ban worked when I check the security. I was banned.....lol.. I am glad to see you have that old version secured.
doanbertoni Posted April 30, 2013 Author Posted April 30, 2013 Hi Christ thank you for your reply, i'm cheching to see if there is something wrong with the page but i can't see it yet... could you tell me if you see something wrong? this is the code of the file (it's really small): <?php /* $Id: profile.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ define('NAVBAR_TITLE', 'Payment Methods'); define('HEADING_TITLE', 'Payment Methods'); define('TEXT_INFORMATION', ' <p>Electronic payments through this site are processed via PayPal, you do NOT need to enter any credit/debit card information. Simply proceed with your order and you will be sent a payment link via PayPal. You simply follow this link to pay from your PayPal account or use PayPal payment processing and pay using your credit/debit card if you do not have a PayPal account.</p> <p><b>Your order will be dispatched same day as payment has been received.</b></p> <span class="imgL"><a href="http://www.alertpay.com" target="_blank"><img src="images/p1.gif" alt="Alertpay" class="imgL"></a></span>'); ?> Thank you. Doan
doanbertoni Posted April 30, 2013 Author Posted April 30, 2013 It looks like i have replaced by accident a main payment.php file that had all the php code, i replaced it for the payment.php code that is supoused to go inside laguages/english. Is there any way i could get that code back from another installation because i dont have the original file i replaced... Dummy me.
doanbertoni Posted April 30, 2013 Author Posted April 30, 2013 Thanks Chris, looks like i have managed to fix it by copying the file disclaimer.php and name it payment.php and simply change these two lines to PAYMENT instead of DISCLAIMER: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DISCLAIMER); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_DISCLAIMER)); Thanks. Doan
Guest Posted April 30, 2013 Posted April 30, 2013 @@doanbertoni Glad you got it figured out. That's a common mistake Chris
doanbertoni Posted April 30, 2013 Author Posted April 30, 2013 Do you happen to know how i can chenge the text that says "Cash/Check/Money Order" (like on the image link). My boss wants me to write something slightly different but i cant find it. I have opened the /includes/modules/payment/moneyoder.php file but no luck. http://awesomescreenshot.com/01d183dc34 Thanks. Doan
doanbertoni Posted April 30, 2013 Author Posted April 30, 2013 Haha never mind i found it on /includes/languages/english/modules/payment/moneyorder.php. Thank you.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.