fsiano Posted February 4, 2003 Share Posted February 4, 2003 Hello everyone, I was wondering if anyone knew how to change the name of 2checkout to credit card. Not all of my customers know what 2checkout is. I tried a few things with no luck. Any help greatly appreciated Thanks Frank S Link to comment Share on other sites More sharing options...
TB Posted February 4, 2003 Share Posted February 4, 2003 You need to change the following in catalogincludeslangagesenglishmodulespaymentpm2checkout.php define('MODULE_PAYMENT_2CHECKOUT_TEXT_TITLE', '2CheckOut'); If you rename it to something like 'Credit Card', be sure to remove or rename the existing 'Credit Card' module beforehand to save confusion. A good tip if you want to change any text in osCommerce is to do a search of the directory your website is in for any files containing a certain word or phrase. Hope this helps... Tony "The price of success is perseverance. The price of failure comes much cheaper." Link to comment Share on other sites More sharing options...
fsiano Posted February 4, 2003 Author Share Posted February 4, 2003 Hey Tony, Thanks for the Help. Although I tried this as my first attempt with no success. Maybe I changed the wrong file? Please let me know because when I did it nothing seemed to change. Thanks again Frank S Link to comment Share on other sites More sharing options...
TB Posted February 4, 2003 Share Posted February 4, 2003 I doubt that you will need to refresh your browsers cache, though try it... it may just work! I tip to reloading the entire file again in IE... Hold down 'Ctrl' and press 'F5'. Let me know how you go... Tony "The price of success is perseverance. The price of failure comes much cheaper." Link to comment Share on other sites More sharing options...
fsiano Posted February 6, 2003 Author Share Posted February 6, 2003 I tried it again and it worked !!! must have updated the wrong or the cache actually held true. THANKS AGAIN Frank S Link to comment Share on other sites More sharing options...
westkoast Posted February 6, 2003 Share Posted February 6, 2003 Off topic, but this kind fits on this page too. Does anyone know how to order these, so that I can put "check/money order" as the last option, and Credit card as the first? I need to read the rules more often... Link to comment Share on other sites More sharing options...
fsiano Posted February 6, 2003 Author Share Posted February 6, 2003 This one I know. If you go into your Admin panel on your site and go to Modules<Payments and then set a Sort Order to each payment option. When you click on a payment option (ex. Credit Card) to edit, within you will see sort order. Start the first at 1 and continue. That should work Good Luck Frank S Link to comment Share on other sites More sharing options...
dumb_question Posted February 9, 2003 Share Posted February 9, 2003 I need to do the same....what exactly needs to be changed in the above code? thanks Dumb_question Link to comment Share on other sites More sharing options...
Guest Posted February 9, 2003 Share Posted February 9, 2003 I need to do the same....what exactly needs to be changed in the above code? thanks Dumb_question ????HUH???? You want to do what? Change the sort order or change the 2Checkout to something else? Either way the question has been answered in the this thread. Link to comment Share on other sites More sharing options...
dumb_question Posted February 9, 2003 Share Posted February 9, 2003 I tried to write credit card where 2checkout is written at the end...... this is what I get 2CHECKOUT_TEXT_TITLE MODULE_PAYMENT_2CHECKOUT_TEXT_CREDIT_CARD_OWNER_FIRST_NAME MODULE_PAYMENT_2CHECKOUT_TEXT_CREDIT_CARD_OWNER_LAST_NAME MODULE_PAYMENT_2CHECKOUT_TEXT_CREDIT_CARD_NUMBER MODULE_PAYMENT_2CHECKOUT_TEXT_CREDIT_CARD_EXPIRES JanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember 2003200420052006200720082009201020112012 MODULE_PAYMENT_2CHECKOUT_TEXT_CREDIT_CARD_CHECKNUMBER MODULE_PAYMENT_2CHECKOUT_TEXT_CREDIT_CARD_CHECKNUMBER_LOCATION ...I basically want to rename 2checkout with "Credit Card Information" Thanks for your help... I know this is dumb! Link to comment Share on other sites More sharing options...
Guest Posted February 9, 2003 Share Posted February 9, 2003 You need to change the following in catalogincludeslangagesenglishmodulespaymentpm2checkout.phpCode: define('MODULE_PAYMENT_2CHECKOUT_TEXT_TITLE', '2CheckOut Replace the 2CheckOut (in red) with the wording you prefer. Pay particular attention to the file. Link to comment Share on other sites More sharing options...
dumb_question Posted February 10, 2003 Share Posted February 10, 2003 tried this....get the following error Parse error: parse error in /home/kashmirc/public_html/includes/languages/english/modules/payment/pm2checkout.php on line 1 Link to comment Share on other sites More sharing options...
Guest Posted February 10, 2003 Share Posted February 10, 2003 Please post the line you changed that is giving the error. Link to comment Share on other sites More sharing options...
dumb_question Posted February 10, 2003 Share Posted February 10, 2003 Hi I changed this line define('MODULE_PAYMENT_2CHECKOUT_TEXT_TITLE', '2CheckOut'); with define('MODULE_PAYMENT_2CHECKOUT_TEXT_TITLE', 'Credit Card Information');... Thanx for your help! Dumb_Question Link to comment Share on other sites More sharing options...
Guest Posted February 10, 2003 Share Posted February 10, 2003 define('MODULE_PAYMENT_2CHECKOUT_TEXT_TITLE', 'Credit Card Information');... Does your file have the 3 dots at the end? If so remove them. Otherwise that line seems ok. Link to comment Share on other sites More sharing options...
dumb_question Posted February 10, 2003 Share Posted February 10, 2003 this is what I have at the end ;?> wonder what the reason is? Link to comment Share on other sites More sharing options...
dumb_question Posted February 10, 2003 Share Posted February 10, 2003 define('MODULE_PAYMENT_2CHECKOUT_TEXT_TITLE', 'Credit Card Information');... i dont have these dots in the file, if you were referring to them Link to comment Share on other sites More sharing options...
dumb_question Posted February 13, 2003 Share Posted February 13, 2003 Still Looking for help! Any one out there ? Dumb_Question Link to comment Share on other sites More sharing options...
Guest Posted February 13, 2003 Share Posted February 13, 2003 Post the whole 2checkout file that is giving you problems. Link to comment Share on other sites More sharing options...
dumb_question Posted February 14, 2003 Share Posted February 14, 2003 Here is the code. But please remember the error shows up only when i mae a change '2checkout' in first line. Thank you for your help <?php /* $Id: pm2checkout.php,v 1.3 2002/11/18 14:45:23 project3000 Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ define('MODULE_PAYMENT_2CHECKOUT_TEXT_TITLE', '2CheckOut'); define('MODULE_PAYMENT_2CHECKOUT_TEXT_DESCRIPTION', 'Credit Card Test Info:<br><br>CC#: 4111111111111111<br>Expiry: Any'); define('MODULE_PAYMENT_2CHECKOUT_TEXT_TYPE', 'Type:'); define('MODULE_PAYMENT_2CHECKOUT_TEXT_CREDIT_CARD_OWNER', 'Credit Card Owner:'); define('MODULE_PAYMENT_2CHECKOUT_TEXT_CREDIT_CARD_OWNER_FIRST_NAME', 'Credit Card Owner First Name:'); define('MODULE_PAYMENT_2CHECKOUT_TEXT_CREDIT_CARD_OWNER_LAST_NAME', 'Credit Card Owner Last Name:'); define('MODULE_PAYMENT_2CHECKOUT_TEXT_CREDIT_CARD_NUMBER', 'Credit Card Number:'); define('MODULE_PAYMENT_2CHECKOUT_TEXT_CREDIT_CARD_EXPIRES', 'Credit Card Expiry Date:'); define('MODULE_PAYMENT_2CHECKOUT_TEXT_CREDIT_CARD_CHECKNUMBER', 'Credit Card Checknumber:'); define('MODULE_PAYMENT_2CHECKOUT_TEXT_CREDIT_CARD_CHECKNUMBER_LOCATION', '(located at the back of the credit card)'); define('MODULE_PAYMENT_2CHECKOUT_TEXT_JS_CC_NUMBER', '* The credit card number must be at least ' . CC_NUMBER_MIN_LENGTH . ' characters.n'); define('MODULE_PAYMENT_2CHECKOUT_TEXT_ERROR_MESSAGE', 'There has been an error processing your credit card. Please try again.'); define('MODULE_PAYMENT_2CHECKOUT_TEXT_ERROR', 'Credit Card Error!'); ?> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.