Guest Posted April 21, 2005 Share Posted April 21, 2005 I have successfully installed my oscommerce shop and I am trying to configure the main page to read text which will be associated with my shop... <?php/* $Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ 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">' . Every time I try to edit this file....I get HTML parse errors when I refresh the page... Even if I add an extra word at the beginning of This is a default setup... I get the same parse error....Someone please help me as I am not very good at HTML ! I would be more than happy to send someone the index.php complete with my required text if someone could edit this file properly... Please help me !!!! Thx Link to comment Share on other sites More sharing options...
moonbeam Posted April 21, 2005 Share Posted April 21, 2005 I have successfully installed my oscommerce shop and I am trying to configure the main page to read text which will be associated with my shop...Every time I try to edit this file....I get HTML parse errors when I refresh the page... Even if I add an extra word at the beginning of This is a default setup... I get the same parse error....Someone please help me as I am not very good at HTML ! I would be more than happy to send someone the index.php complete with my required text if someone could edit this file properly... Please help me !!!! Thx <{POST_SNAPBACK}> Did you keep your text between the ' ? Example: 'my new text' Just a thought... Need to keep those quotes. "Woohoo, Just Havin Funnn!" Link to comment Share on other sites More sharing options...
moonbeam Posted April 21, 2005 Share Posted April 21, 2005 Or how about the closing [ ); ] (TEXT_MAIN', 'My new text as an example!'); Just checking... "Woohoo, Just Havin Funnn!" Link to comment Share on other sites More sharing options...
Guest Posted April 22, 2005 Share Posted April 22, 2005 No, becuase I tried to put the word Hello in the current text just to see if it would show on the webpage once I had refreshed but I still got the Parse error..... Any further tips....??? Link to comment Share on other sites More sharing options...
Guest Posted April 22, 2005 Share Posted April 22, 2005 This is the error I get....I have just tried to add one word into the sentence as follows. define('TEXT_MAIN', 'This is a default page 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">' . I added the word page just to see what would happen and then I receive this error??? Parse error: parse error, unexpected T_STRING in /home/putabitz/public_html/oscommerce-2.2ms2/catalog/includes/languages/english/index.php on line 13 Please Help.... Link to comment Share on other sites More sharing options...
Wendy James Posted April 22, 2005 Share Posted April 22, 2005 you are missing the end ; You HAVE to have '); at the end of the line. If you post what you want it to say I can put the full code here for you to just copy n paste. Wendy James Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep. Link to comment Share on other sites More sharing options...
Guest Posted April 22, 2005 Share Posted April 22, 2005 Wendy, Thank you for your kind offer... Putabitz.com - We are more than a competitive online seller of brand name computers and computer peripherals. We focus on all of the things that are of interest to our customers, not only in saving you money but also in saving you time. We appreciate that people don't have time to wait at the end of a phone when it's possible to achieve their goal online that's why we have invested time in building a website that allows our customers to completely manage their online shopping with us for whatever computer device they need. Customers know what's best for them and what they need to achieve it. Whatever product you are looking for, Putabitz Computers will strive to provide it for you. We have the knowledge and experience of running a mail order company and it has allowed us to create something unique to the UK market. We are able to create a whole new experience for UK consumers and businesses that buy over the internet. By focusing our efforts on key areas we believe that we have the right ingredients to satisfy the experienced internet buyer as well as the new e-commerce consumer. Specifically we offer our customers: 1) Comprehensive product information and availability on numerous products. 2) Branded computers and peripherals at competitive prices. 3) A very High Level of Service. 4) We offer payments through PayPal, and you don?t need to register. Any problems, please let me know:D Link to comment Share on other sites More sharing options...
Wendy James Posted April 22, 2005 Share Posted April 22, 2005 go to catalog/includes/languages/index.php and look for define('TEXT_MAIN', ' Should actually be the first line of code after */ remove the entire bit of code then copy and paste this in it's place define('TEXT_MAIN', '<p>Putabitz.com - We are more than a competitive online seller of brand name computers and computer peripherals. We focus on all of the things that are of interest to our customers, not only in saving you money but also in saving you time.</p> <p>We appreciate that people don\'t have time to wait at the end of a phone when it\'s possible to achieve their goal online that\'s why we have invested time in building a website that allows our customers to completely manage their online shopping with us for whatever computer device they need.</p> <p>Customers know what\'s best for them and what they need to achieve it.</p> <p>Whatever product you are looking for, Putabitz Computers will strive to provide it for you.</p> <p>We have the knowledge and experience of running a mail order company and it has allowed us to create something unique to the UK market. We are able to create a whole new experience for UK consumers and businesses that buy over the internet.</p> <p>By focusing our efforts on key areas we believe that we have the right ingredients to satisfy the experienced internet buyer as well as the new e-commerce consumer.</p> <p>Specifically we offer our customers:</p> <p>1) Comprehensive product information and availability on numerous products. <br> 2) Branded computers and peripherals at competitive prices. <br> 3) A very High Level of Service. <br> 4) We offer payments through PayPal, and you don\'t need to register.</p>'); the next define should be define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); Let me know if that does not show up or i didnt make sense. lol Only thing I can think of is some of your words have ' in them like... don't and you have to change those words so they have a \ in them like don\'t Wendy James Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep. Link to comment Share on other sites More sharing options...
Guest Posted April 22, 2005 Share Posted April 22, 2005 Many thanks Jenny...I will try this later and will let you know the results...Thanks Again Link to comment Share on other sites More sharing options...
Guest Posted April 22, 2005 Share Posted April 22, 2005 Parse error: parse error, unexpected T_STRING in /home/putabitz/public_html/oscommerce-2.2ms2/catalog/includes/languages/english/index.php on line 14 I am still getting this parse error.....Even though I have added \ before every ' Here is the exact code if anyone can help.... <?php /* $Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', '<p>Putabitz.com - We are more than a competitive online seller of brand name computers and computer peripherals. We focus on all of the things that are of interest to our customers, not only in saving you money but also in saving you time.</p> <p>We appreciate that people don't have time to wait at the end of a phone when it's possible to achieve their goal online that's why we have invested time in building a website that allows our customers to completely manage their online shopping with us for whatever computer device they need.</p> <p>Customers know what's best for them and what they need to achieve it.</p> <p>Whatever product you are looking for, Putabitz Computers will strive to provide it for you.</p> <p>We have the knowledge and experience of running a mail order company and it has allowed us to create something unique to the UK market. We are able to create a whole new experience for UK consumers and businesses that buy over the internet.</p> <p>By focusing our efforts on key areas we believe that we have the right ingredients to satisfy the experienced internet buyer as well as the new e-commerce consumer.</p> <p>Specifically we offer our customers:</p> <p>1) Comprehensive product information and availability on numerous products. <br> 2) Branded computers and peripherals at competitive prices. <br> 3) A very High Level of Service. <br> 4) We offer payments through PayPal, and you don't need to register.</p>'); define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', 'Let's See What We Have Here'); define('TABLE_HEADING_IMAGE', ''); define('TABLE_HEADING_MODEL', 'Model'); define('TABLE_HEADING_PRODUCTS', 'Product Name'); define('TABLE_HEADING_MANUFACTURER', 'Manufacturer'); define('TABLE_HEADING_QUANTITY', 'Quantity'); define('TABLE_HEADING_PRICE', 'Price'); define('TABLE_HEADING_WEIGHT', 'Weight'); define('TABLE_HEADING_BUY_NOW', 'Buy Now'); define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.'); define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.'); define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: '); define('TEXT_SHOW', '<b>Show:</b>'); define('TEXT_BUY', 'Buy 1 ''); define('TEXT_NOW', '' now'); define('TEXT_ALL_CATEGORIES', 'All Categories'); define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'What's New Here?'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?> Please help......I have been trying to sort this problem for days !!!!! This is the error I get after copying and pasting Jennys Contribution in.... Parse error: parse error, unexpected T_STRING in /home/putabitz/public_html/oscommerce-2.2ms2/catalog/includes/languages/english/index.php on line 29 The line number has changed from 14 to 29 :D Link to comment Share on other sites More sharing options...
Guest Posted April 22, 2005 Share Posted April 22, 2005 help anyone ??? Link to comment Share on other sites More sharing options...
OceanRanch Posted April 22, 2005 Share Posted April 22, 2005 Start all over with a fresh copy of your index.php and do not use the osCommerce File Manger Editor, it has a bug that removes back slashes that in turn causes PHP parse errors. Edit the file locally on your PC then ftp the changed file to your site. HTH Tom Link to comment Share on other sites More sharing options...
Wendy James Posted April 22, 2005 Share Posted April 22, 2005 If you look at your code you are missing the \ inthings. That is why you are getting the errors. Ocean is right. Just do what they suggested =) ps my name is Wendy. LOL just copy n paste this on the file you download then upload it again via ftp <?php /* $Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', '<p>Putabitz.com - We are more than a competitive online seller of brand name computers and computer peripherals. We focus on all of the things that are of interest to our customers, not only in saving you money but also in saving you time.</p> <p>We appreciate that people don\'t have time to wait at the end of a phone when it\'s possible to achieve their goal online that\'s why we have invested time in building a website that allows our customers to completely manage their online shopping with us for whatever computer device they need.</p> <p>Customers know what\'s best for them and what they need to achieve it.</p> <p>Whatever product you are looking for, Putabitz Computers will strive to provide it for you.</p> <p>We have the knowledge and experience of running a mail order company and it has allowed us to create something unique to the UK market. We are able to create a whole new experience for UK consumers and businesses that buy over the internet.</p> <p>By focusing our efforts on key areas we believe that we have the right ingredients to satisfy the experienced internet buyer as well as the new e-commerce consumer.</p> <p>Specifically we offer our customers:</p> <p>1) Comprehensive product information and availability on numerous products. <br> 2) Branded computers and peripherals at competitive prices. <br> 3) A very High Level of Service. <br> 4) We offer payments through PayPal, and you don\'t need to register.</p>'); define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', 'Let\'s See What We Have Here'); define('TABLE_HEADING_IMAGE', ''); define('TABLE_HEADING_MODEL', 'Model'); define('TABLE_HEADING_PRODUCTS', 'Product Name'); define('TABLE_HEADING_MANUFACTURER', 'Manufacturer'); define('TABLE_HEADING_QUANTITY', 'Quantity'); define('TABLE_HEADING_PRICE', 'Price'); define('TABLE_HEADING_WEIGHT', 'Weight'); define('TABLE_HEADING_BUY_NOW', 'Buy Now'); define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.'); define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.'); define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: '); define('TEXT_SHOW', '<b>Show:</b>'); define('TEXT_BUY', 'Buy 1 ''); define('TEXT_NOW', '' now'); define('TEXT_ALL_CATEGORIES', 'All Categories'); define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'What\'s New Here?'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?> Wendy James Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep. Link to comment Share on other sites More sharing options...
Guest Posted April 23, 2005 Share Posted April 23, 2005 Followed your advice and got this error ???? which is different from the other errors I have been getting !!!! Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/putabitz/public_html/oscommerce-2.2ms2/catalog/includes/languages/english/index.php on line 43 And apologises for getting the name wrong !!!! LOL Link to comment Share on other sites More sharing options...
Guest Posted April 23, 2005 Share Posted April 23, 2005 Apologises, I now have this working....many thanks for your help.....I just need to sort the other errors now !!!!! LOL Link to comment Share on other sites More sharing options...
Guest Posted April 24, 2005 Share Posted April 24, 2005 Apologises, I now have this working....many thanks for your help.....I just need to sort the other errors now !!!!! LOL <{POST_SNAPBACK}> Hi Carper, I followed your post as I had exactly the same problem - how did you overcome this last error? Link to comment Share on other sites More sharing options...
Guest Posted April 24, 2005 Share Posted April 24, 2005 I downloaded an excellent freeware application called PHP Designer 2005 (Type it into any search engine) then I associated PHP files with this program... I open the file and just copied and pasted the text straight in between the commas ' * '. Then ftp the file back into location and all is working.... The file manager built into OSC is not very good and has a bug.....Hope this helps Link to comment Share on other sites More sharing options...
Guest Posted April 24, 2005 Share Posted April 24, 2005 I downloaded an excellent freeware application called PHP Designer 2005 (Type it into any search engine) then I associated PHP files with this program... I open the file and just copied and pasted the text straight in between the commas ' * '. Then ftp the file back into location and all is working.... The file manager built into OSC is not very good and has a bug.....Hope this helps <{POST_SNAPBACK}> Thanks, Carper Link to comment Share on other sites More sharing options...
spydernovice Posted April 24, 2005 Share Posted April 24, 2005 Thanks, Carper <{POST_SNAPBACK}> I also installed the oscommerce just now and tried to modify the text on the main page by using the file manager. It messed up everything. clearly there is a bug in file manager. subsequently I opened the index.php in notepad, modified and saved it. On uploading, it worked fine. Hope this helps.. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.