Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

simple edit I can't figure out


unmasked

Recommended Posts

Posted

This is new so I trying to figure out the language but I'm stuck on the main page-

 

I have removed #1 and #2 information on the main page but I am stuck on #3 and the paragraph about the software I'm using. I would like to add my own text in that spot. Is there an add on that will allow me to simple edit the page without editing the php? I have already installed sts, templates, quantity break - just in case that matters.

 

this is some of my index text- I know you start at the tep_image line but how far do you delete (I tried to delete everything to "define" line and replaced the . with ; but only got error when done)and than what text do you add --

 

define('TEXT_MAIN', 'Welcome to <b>Candles</b> - All Natural Wax Candle Shop.<br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' .

tep_image(DIR_WS_IMAGES . 'default/3.gif') . '</td><td class="main" valign="top"><b>Online Documentation</b><br><br>Online documentation can be read at the <a href="http://www.oscommerce.info" target="_blank"><u>osCommerce Knowledge Base</u></a> site.<br><br>Support is available at the <a href="http://www.oscommerce.com/support" target="_blank"><u>osCommerce Support Site</u></a>.</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 <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') ||

 

Thanks for all the help

  • 2 weeks later...
Posted

Karena,

 

Everything between this define('TEXT_MAIN', ' and this '); can be removed or changed. ONLY what is between the ' ' will be displayed. HTML included.

 

 

 

Chris

Posted

Create whatever text you want for the page, using a WYSIWYG text editor if you want. Using a flat text file editor, such as ViM or Notepad++ or even just Notepad, edit the .php file and remove everything Welcome to <b>Candles</b> ... PROJECT_VERSION . '</b></font>. and cut-and-paste in your new HTML code. Go over it carefully, changing any ' in the text you just pasted in to \' (escape all single quotes). If you don't, you'll get errors. Also, if you use a WYSIWYG page editor such as Dreamweaver, cut and paste in ONLY the text section from the body that you want. Don't paste in the entire page HTML!!!! It's helpful to know a little bit about HTML to know where to do the cutting...

Archived

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

×
×
  • Create New...