moaneek Posted May 16, 2004 Posted May 16, 2004 I was offered this shopping cart through my hosting company. WOW what a deal I thought!! Well I have been struggling for 2 days. Everytime I "try" to edit the index page it goes wrong. I get pharse errors in line 13. I have been reading and reading. I have to be doing something wrong. Or do I really have to learn how to write php before I do this??? In desperate need of help!!! Mo :blink:
Databuilder Posted May 16, 2004 Posted May 16, 2004 My guess is that you have a single quote. You have to escape these with a backslash. That's becomes That\'s.
moaneek Posted May 16, 2004 Author Posted May 16, 2004 I really don't understand that last post. For instance, the first line in the index page: define('TEXT_MAIN', 'This is a default setup of the osCommerce project, products shown are for demonstrational purposes, <b>any products purchased will not be delivered nor will the customer be billed</b>. Any information seen on these products is to be treated as fictional.<br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' If I edit any of that, i get errors. I am looking for some reference on if i have to physically write out the code to create an index page to get all the default stuff off of there???
Guest Posted February 17, 2005 Posted February 17, 2005 I really don't understand that last post. For instance, the first line in the index page: define('TEXT_MAIN', 'This is a default setup of the osCommerce project, products shown are for demonstrational purposes, <b>any products purchased will not be delivered nor will the customer be billed</b>. Any information seen on these products is to be treated as fictional.<br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' If I edit any of that, i get errors. I am looking for some reference on if i have to physically write out the code to create an index page to get all the default stuff off of there??? <{POST_SNAPBACK}> im stuck to . can anyone help or point me to a page that will help/. thanks
thegreenbean Posted March 30, 2005 Posted March 30, 2005 i'm new to this too and i had the same problem i hardly know how to write php but its really easy when you keep trying. the text main i just changed the text at first and kept the rest standing or you could try to remove everything and just write a short line and see what happens
♥Vger Posted March 30, 2005 Posted March 30, 2005 For both of you: Do not use the osCommerce File Manager to edit files. When you hit the 'Save' button it strips out essential backslashes from in front of apostrophies and causes parse errors. Download (via FTP is best) the file you want to edit, then take a backup (just to be safe), and edit the file in a plain text editor like Notepad (not Word or Wordpad - they're not plain text editors). When done upload again to website, making sure you put the file in the right folder. If there is a problem you can restore the file from the backup you took. Anyone using osCommerce is recommended to get a good plain text editor like Text Pad or Crimson Editor - they will be invaluable to you. When you add text to a page content file and the text contains an apostrophy you must 'escape' it with a preceeding backslash, as in: Let's = wrong Let\'s = right If you have already edited files using the osCommerce File Manager and you have parse errors restore the file from an original (good) copy and start again. Vger
♥14steve14 Posted June 24, 2005 Posted June 24, 2005 Where can I get a good, clean copy? <{POST_SNAPBACK}> Download the oscommerce package again. When you alter a file, backit up first, make your changes and if it all works and looks like it should, back it up again. REMEMBER BACKUP, BACKUP AND BACKUP
Recommended Posts
Archived
This topic is now archived and is closed to further replies.