Guest Posted November 17, 2006 Posted November 17, 2006 Hi I have my website redirected so its going to oscommerce shopping cart. I know how to get to the configurations by going into admin. I know how to add a new category and new product but for the life of me I cant figure out how to JUST add text to a page... For example on the bottom of my site I have the conditions and use page and thats where I want to add my security and privacy schpiel LOL but everytime I add a text and save it and click on the conditions page its giving me a parse message and a line number where the problem is BUT I am NOT finding a problem. Can anyone help me here please? Also I am having a problem with the shipping methods on the site...I have an acct with USPS, UPS, and Fedex and am stuck on this flat rate, per item, and best way crap and when I add the USPS, UPS, or Fedex account and save and then go to the site, its NOT showing up and the only thing showing up is the best way but the round circle where you can click on it to proceed isnt there either? thanking you in advance. If possible, can you please PM me with the info? Thanks
ddp Posted November 17, 2006 Posted November 17, 2006 Your parse error could be just a missing apostrophe like the difference between these two examples: right: define('TEXT_INFORMATION', 'your text here'); wrong: define('TEXT_INFORMATION', 'your text here);' The second example here will give an error. Extra apostrophies in the text can give errors as well. If you use apostrophies you need to preceed them with a \ For exmple right: let\'s wrong: let's I assume you are editing the files in the includes/languages/english/ folder. Right? If you can post one of the pages you are getting the error on I would be happy to take a look at it. Backup before making changes. Backup before making changes! Backup before making changes!! You did do a backup? eh?
Guest Posted November 17, 2006 Posted November 17, 2006 Your parse error could be just a missing apostrophe like the difference between these two examples:right: define('TEXT_INFORMATION', 'your text here'); wrong: define('TEXT_INFORMATION', 'your text here);' The second example here will give an error. Extra apostrophies in the text can give errors as well. If you use apostrophies you need to preceed them with a \ For exmple right: let\'s wrong: let's I assume you are editing the files in the includes/languages/english/ folder. Right? If you can post one of the pages you are getting the error on I would be happy to take a look at it. Can I PM you?
Guest Posted November 17, 2006 Posted November 17, 2006 Yes I am going into define Languages I typed the following: define('TEXT_INFORMATION', 'Test ') saved it and checked on the site and the following is the message I am getting: Parse error: parse error, unexpected $ in /home/shorelig/public_html/oscommerce/includes/languages/english/conditions.php on line 16
Guest Posted November 17, 2006 Posted November 17, 2006 Yes I am going into define Languages I typed the following: define('TEXT_INFORMATION', 'Test ') saved it and checked on the site and the following is the message I am getting: Parse error: parse error, unexpected $ in /home/shorelig/public_html/oscommerce/includes/languages/english/conditions.php on line 16
♥toyicebear Posted November 17, 2006 Posted November 17, 2006 Yes I am going into define Languages I typed the following: define('TEXT_INFORMATION', 'Test ') saved it and checked on the site and the following is the message I am getting: Parse error: parse error, unexpected $ in /home/shorelig/public_html/oscommerce/includes/languages/english/conditions.php on line 16 Do not do it in your shops admin. 1. downlaod the text files to your local computer by using a ftp program .. like for instance smartftp 2. then edit them in a text editor, like for instance notepad or phpdesigner 3. then upload the edited files overwriting the old ones on your hosting/server... att..always rember to make a backup first... Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here]
ddp Posted November 17, 2006 Posted November 17, 2006 Can I PM you? Can you please post the whole includes/languages/english/conditions.php file here so we can all have a look at it? Backup before making changes. Backup before making changes! Backup before making changes!! You did do a backup? eh?
Guest Posted November 17, 2006 Posted November 17, 2006 Can you please post the whole includes/languages/english/conditions.php file here so we can all have a look at it? I did, please look in the previous post. Thanks
ddp Posted November 18, 2006 Posted November 18, 2006 I did, please look in the previous post.Thanks Ok if this line define('TEXT_INFORMATION', 'Test ') was your whole file that's not right. No php tags and a missing semi-colon. Try this in your file instead: <?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', 'Conditions of Use'); define('HEADING_TITLE', 'Conditions of Use'); define('TEXT_INFORMATION', 'your text here'); ?> Remember not to use that nasty file manager in the osc admin use an ftp program or connect to your server using SCP. Also make sure there are no empty lines at the end of the file. Backup before making changes. Backup before making changes! Backup before making changes!! You did do a backup? eh?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.