Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help! Newbie confused?!


chelles

Recommended Posts

I have copied and looked at documentation and thought I had changed permissions as required. The code looks as if I changed the index text but when I uploaded to catalog still looks ands says it is default page and that no orders will process. Am I missing where to put text?

 

define('TEXT_MAIN', <br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/1.gif') . '</td><td class="main" valign="top"><b>Error Messages</b><br><br>If there are any error or warning messages shown above, please correct them first before proceeding.<br><br>Error messages are displayed at the very top of the page with a complete <span class="messageStackError">background</span> color.<br><br>Several checks are performed to ensure a healthy setup of your online store - these checks can be disabled by editing the appropriate parameters at the bottom of the includes/application_top.php file.</td></tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/2.gif') . '</td><td class="main" valign="top"><b>Editing Page Texts</b><br><br>The text shown here can be modified in the following file, on each language basis:<br><br><nobr class="messageStackSuccess">[path to catalog]/includes/languages/' . $language . '/' . FILENAME_DEFAULT . '</nobr><br><br>That file can be edited manually, or via the Administration Tool with the <nobr class="messageStackSuccess">Languages->' . ucfirst($language) . '->Define</nobr> or <nobr class="messageStackSuccess">Tools->File Manager</nobr> modules.<br><br>The text is set in the following manner:<br><br><nobr>define(\'TEXT_MAIN\', \'<span class="messageStackSuccess">'Similar to all of the reputable vineyards, we nurture and hand select the ingredients for our products. Only the best for our family and now we want to share this passion with you. We love to hear from our customers and encourage feedback so our selections may change as we find the best ingredients for your dollar. With a luxurious Olive Oil base, our handcrafted Bar Soaps do not have harsh chemicals, only natural luxurious oils and rich lather leaving a clean fresh scent.</b>. Our hand-poured candles are triple scented to enhance your environment. Our container candles may change with market availability.</span>\');</nobr><br><br>The text highlighted in green may be modified - it is important to keep the define() of the TEXT_MAIN keyword. To remove the text for TEXT_MAIN completely, the following example is used where only two single quote characters exist:<br><br><nobr>define(\'TEXT_MAIN\', \'\');</nobr><br><br>More information concerning the PHP define() function can be read <a href="http://www.php.net/define" target="_blank"><u>here</u></a>.</td></tr><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/3.gif') . '</td><td class="main" valign="top"><b>Securing The Administration Tool</b><br><br>It is important to secure the Administration Tool as there is currently no security implementation available.</td></tr><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/4.gif') . '</td><td class="main" valign="top"><b>Online Documentation</b><br><br>Online documentation can be read at the <a href="http://wiki.oscommerce.com" target="_blank"><u>osCommerce Wiki Documentation Effort</u></a> site.<br><br>Community support is available at the <a href="http://www.oscommerce.com/forums" target="_blank"><u>osCommerce Community Support Forums</u></a> site.</td></tr></table><br>If you wish to download the solution powering this shop, or if you wish to contribute to the osCommerce project, please visit the <a href="http://www.oscommerce.com" target="_blank"><u>support site of osCommerce</u></a>. This shop is running on osCommerce version <font color="#f0000"><b>' . PROJECT_VERSION . '</b></font>.');

 

I have probably posted too much info but I am getting really confused and frustrated!

Thank you for any help!!!

Chelle

Link to comment
Share on other sites

On your first line, you have a syntax error:

 

define('TEXT_MAIN', <br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main"

 

should be

 

define('TEXT_MAIN', '<br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main"

 

 

I'm not really sure what your question is though. Are you having trouble changing text on the main page (index.php)? Do you get an error? What happens?

Contributions

 

Discount Coupon Codes

Donations

Link to comment
Share on other sites

As soon as I posted that I went to the catalog and now it won't allow me access it says:

 

403 forbidden

Server configuration does not allow access to this page. Please go back and try again.

 

Has someone accessed/hacked site? I didn't have that error until just now immediately after posting!?!

 

Thanks

Chelle

 

On your first line, you have a syntax error:

 

define('TEXT_MAIN', <br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main"

 

should be

 

define('TEXT_MAIN', '<br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main"

I'm not really sure what your question is though. Are you having trouble changing text on the main page (index.php)? Do you get an error? What happens?

 

 

As soon as I posted that I went to the catalog and now it won't allow me access it says:

 

403 forbidden

Server configuration does not allow access to this page. Please go back and try again.

 

Has someone accessed/hacked site? I didn't have that error until just now immediately after posting!?!

 

Thanks

Chelle

 

 

Nothing was happening just wasn't updating the text to customize but now I have an even bigger problem and can't access my catalog at all as if I am being blocked. What happened?

 

Thanks

Chelle

Link to comment
Share on other sites

OK Fixed my screw up but I am still trying to change the index page of my shopping card to match my web site. I changed it in the FTP program I am using and it shows the text has changed but it doesn't show up online?

 

Thanks

Chelle

Link to comment
Share on other sites

OK Fixed my screw up but I am still trying to change the index page of my shopping card to match my web site. I changed it in the FTP program I am using and it shows the text has changed but it doesn't show up online?

 

Thanks

Chelle

In your index.php which is located in catalog/includes/languages/english/index.php. Make sure your up loading to over write the right index.php.

 

In that file a bit down you'll find where the text begins:

 

define('TEXT_MAIN', 'DELETE ALL THE EXISTING TEXT BETWEEN THE 2 ' ' AND PUT YOUR TEXT HERE. MAKE SURE YOUR TEXT (MAIN BODY), IMAGES ETC... STAY BETWEEN THE 2 APOSTERPHIES, LIKE THIS SAMPLE');

 

B)

Link to comment
Share on other sites

I am trying to edit text on index.php catalog front page thru osCommerce file manager and it is teling me to change permissions....where and how? I tried thru a ftp program but not working.

 

Chelle

 

Hi Chelle,

 

I use SmartFTP. When you use this you can right click index.php file and you will see CHMOD. Click on this.

 

Change the permission to 777.

 

Even better go the SmartFTP website and check out the excellent tutorials! Tells you all about it.

Link to comment
Share on other sites

Thank you for help! I tried FlashFXP ftp program and changed CHMOD to 777 and uploaded/refreshed but index page online catalog still shows default message. I tried sending an order and shopping cart is working but won't let me edit text? WHat else could I be doing wrong? Text looks like is in right place. Sorry but I feel so frustrated because it looks and sounds like I am doing as instructed.

 

Thank You!

Chelle

 

This is an example portion what I changed.....is it in wrong place?

 

Released under the GNU General Public License

*/

 

define('TEXT_MAIN','Similar to all of the reputable vineyards, we nurture and hand select the ingredients for our products. Only the best for our family and now we want to share this passion with you. We love to hear from our customers and encourage feedback so our selections may change as we find the best ingredients for your dollar. With a luxurious Olive Oil base, our handcrafted Bar Soaps do not have harsh chemicals, only natural luxurious oils and rich lather leaving a clean fresh scent.</b>. Our hand-poured candles are triple scented to enhance your environment. Our container candles may change with market availability.'<br><br>

 

Thanks

Chelle

Link to comment
Share on other sites

Thank you for help! I tried FlashFXP ftp program and changed CHMOD to 777 and uploaded/refreshed but index page online catalog still shows default message. I tried sending an order and shopping cart is working but won't let me edit text? WHat else could I be doing wrong? Text looks like is in right place. Sorry but I feel so frustrated because it looks and sounds like I am doing as instructed.

 

Thank You!

Chelle

 

This is an example portion what I changed.....is it in wrong place?

 

Released under the GNU General Public License

*/

 

define('TEXT_MAIN','Similar to all of the reputable vineyards, we nurture and hand select the ingredients for our products. Only the best for our family and now we want to share this passion with you. We love to hear from our customers and encourage feedback so our selections may change as we find the best ingredients for your dollar. With a luxurious Olive Oil base, our handcrafted Bar Soaps do not have harsh chemicals, only natural luxurious oils and rich lather leaving a clean fresh scent.</b>. Our hand-poured candles are triple scented to enhance your environment. Our container candles may change with market availability.'<br><br>

 

Thanks

Chelle

 

What you have copied above it that everything because the closing tags ); are missing

 

Copy the entir folder so we can have a closer look

Thanks

Link to comment
Share on other sites

Here it is below. I'm so confused...the ftp remote site shows this but it won't show up on osCommerce's file under tools catalog/includes/languages/english index.php

 

Is anybody else as dense as I am when it comes to this???

 

Thank you!

Chelle

 

<?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', 'Similar to all of the reputable vineyards, we nurture and hand select the ingredients for our products. Only the best for our family and now we want to share this passion with you. We love to hear from our customers and encourage feedback so our selections may change as we find the best ingredients for your dollar. With a luxurious Olive Oil base, our handcrafted Bar Soaps do not have harsh chemicals, only natural luxurious oils and rich lather leaving a clean fresh scent.</b>. Our hand-poured candles are triple scented to enhance your environment. Our container candles may change with market availability.'<br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/1.gif') . '</td><td class="main" valign="top"><b>Error Messages</b><br><br>If there are any error or warning messages shown above, please correct them first before proceeding.<br><br>Error messages are displayed at the very top of the page with a complete <span class="messageStackError">background</span> color.<br><br>Several checks are performed to ensure a healthy setup of your online store - these checks can be disabled by editing the appropriate parameters at the bottom of the includes/application_top.php file.</td></tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/2.gif') . '</td><td class="main" valign="top"><b>Editing Page Texts</b><br><br>The text shown here can be modified in the following file, on each language basis:<br><br><nobr class="messageStackSuccess">[path to catalog]/includes/languages/' . $language . '/' . FILENAME_DEFAULT . '</nobr><br><br>That file can be edited manually, or via the Administration Tool with the <nobr class="messageStackSuccess">Languages->' . ucfirst($language) . '->Define</nobr> or <nobr class="messageStackSuccess">Tools->File Manager</nobr> modules.<br><br>The text is set in the following manner:<br><br><nobr>define(\'TEXT_MAIN\', \'<span class="messageStackSuccess"></span>\');</nobr><br><br>The text highlighted in green may be modified - it is important to keep the define() of the TEXT_MAIN keyword. To remove the text for TEXT_MAIN completely, the following example is used where only two single quote characters exist:<br><br><nobr>define(\'TEXT_MAIN\', \'\');</nobr><br><br>More information concerning the PHP define() function can be read <a href="http://www.php.net/define" target="_blank"><u>here</u></a>.</td></tr><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/3.gif') . '</td><td class="main" valign="top"><b>Securing The Administration Tool</b><br><br>It is important to secure the Administration Tool as there is currently no security implementation available.</td></tr><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/4.gif') . '</td><td class="main" valign="top"><b>Online Documentation</b><br><br>Online documentation can be read at the <a href="http://wiki.oscommerce.com" target="_blank"><u>osCommerce Wiki Documentation Effort</u></a> site.<br><br>Community support is available at the <a href="http://www.oscommerce.com/forums" target="_blank"><u>osCommerce Community Support Forums</u></a> site.</td></tr></table><br>If you wish to download the solution powering this shop, or if you wish to contribute to the osCommerce project, please visit the <a href="http://www.oscommerce.com" target="_blank"><u>support site of osCommerce</u></a>. This shop is running on osCommerce version <font color="#f0000"><b>' . PROJECT_VERSION . '</b></font>.');

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', 'Catalog');

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');

}

?>

Link to comment
Share on other sites

Here it is below. I'm so confused...the ftp remote site shows this but it won't show up on osCommerce's file under tools catalog/includes/languages/english index.php

 

Is anybody else as dense as I am when it comes to this???

 

Thank you!

Chelle

 

<?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', 'Similar to all of the reputable vineyards, we nurture and hand select the ingredients for our products. Only the best for our family and now we want to share this passion with you. We love to hear from our customers and encourage feedback so our selections may change as we find the best ingredients for your dollar. With a luxurious Olive Oil base, our handcrafted Bar Soaps do not have harsh chemicals, only natural luxurious oils and rich lather leaving a clean fresh scent.</b>. Our hand-poured candles are triple scented to enhance your environment. Our container candles may change with market availability.'<br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/1.gif') . '</td><td class="main" valign="top"><b>Error Messages</b><br><br>If there are any error or warning messages shown above, please correct them first before proceeding.<br><br>Error messages are displayed at the very top of the page with a complete <span class="messageStackError">background</span> color.<br><br>Several checks are performed to ensure a healthy setup of your online store - these checks can be disabled by editing the appropriate parameters at the bottom of the includes/application_top.php file.</td></tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/2.gif') . '</td><td class="main" valign="top"><b>Editing Page Texts</b><br><br>The text shown here can be modified in the following file, on each language basis:<br><br><nobr class="messageStackSuccess">[path to catalog]/includes/languages/' . $language . '/' . FILENAME_DEFAULT . '</nobr><br><br>That file can be edited manually, or via the Administration Tool with the <nobr class="messageStackSuccess">Languages->' . ucfirst($language) . '->Define</nobr> or <nobr class="messageStackSuccess">Tools->File Manager</nobr> modules.<br><br>The text is set in the following manner:<br><br><nobr>define(\'TEXT_MAIN\', \'<span class="messageStackSuccess"></span>\');</nobr><br><br>The text highlighted in green may be modified - it is important to keep the define() of the TEXT_MAIN keyword. To remove the text for TEXT_MAIN completely, the following example is used where only two single quote characters exist:<br><br><nobr>define(\'TEXT_MAIN\', \'\');</nobr><br><br>More information concerning the PHP define() function can be read <a href="http://www.php.net/define" target="_blank"><u>here</u></a>.</td></tr><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/3.gif') . '</td><td class="main" valign="top"><b>Securing The Administration Tool</b><br><br>It is important to secure the Administration Tool as there is currently no security implementation available.</td></tr><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/4.gif') . '</td><td class="main" valign="top"><b>Online Documentation</b><br><br>Online documentation can be read at the <a href="http://wiki.oscommerce.com" target="_blank"><u>osCommerce Wiki Documentation Effort</u></a> site.<br><br>Community support is available at the <a href="http://www.oscommerce.com/forums" target="_blank"><u>osCommerce Community Support Forums</u></a> site.</td></tr></table><br>If you wish to download the solution powering this shop, or if you wish to contribute to the osCommerce project, please visit the <a href="http://www.oscommerce.com" target="_blank"><u>support site of osCommerce</u></a>. This shop is running on osCommerce version <font color="#f0000"><b>' . PROJECT_VERSION . '</b></font>.');

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', 'Catalog');

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');

}

?>

 

 

OK, I see your wording. Now you have to delete everything after your wording until and including</font>.

Make sure you leave the apsoterphy etc.. ');

Just after that will be all the define lines. Are you downloading the index file and changing it in Notepad or some HTML writer? YOu can also edit the file in Tool under languages, clicking on index.php.

Never edit files in File Manager. As well I see at the end of your wording - availability, just after you have an aposterphy. Make sure there is not 2 after you delete the other stuff, it should be ' YOUR WORDING.');B)

 

. PROJECT_VERSION . '</b></font>.');
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...