Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Main Text Edit


FSUddin

Recommended Posts

Posted

Hi,

I just wanted to run this by anyone reading this. The way I edited the main text on the front page of my catalog was to go into catalog/includes/languages/english/index.php and insert an html page I made in front page in between the apostrophes of the define Main_Text function.

 

So it looks like this:

 

define('TEXT_MAIN', 'MY HTML FROM FRONTPAGE');

 

Is this the best way to do this or is there another, cleaner way? This was my logical, newbie attempt at this so dont be mean. :)

 

Thanks.

 

FSUddin

Posted

That should work ok. Just be careful on putting in single quotes or you'll get a php parse error. Always escape it (i.e. What\'s up). Also DO NOT use the osC File Manager editor. It messes up the escape characters.

 

HTH

Tom

Posted

Also on a side note remember not to re-add in <html><header><body> or any of the likes as that would make your code very nasty ;P

Kenneth S

--------------

Customer "Are you a real programmer?"

Me "No, but I did stay at a Holiday Inn Express last night"

Posted
Also on a side note remember not to re-add in <html><header><body> or any of the likes as that would make your code very nasty ;P

 

 

Thanks guys. Good to know that I have at least some idea as to what im doing... :)

Posted
Hi,

I just wanted to run this by anyone reading this.  The way I edited the main text on the front page of my catalog was to go into catalog/includes/languages/english/index.php and insert an html page I made in front page in between the apostrophes of the define Main_Text function.

 

So it looks like this:

 

define('TEXT_MAIN', 'MY HTML FROM FRONTPAGE');

 

Is this the best way to do this or is there another, cleaner way?  This was my logical, newbie attempt at this so dont be mean. :)

 

Thanks.

 

FSUddin

 

 

Avoid frontpage at all costs if you can. I know that for many people that is the only way they know how to create HTML. However, frontpage loves to stick in useless microsoft crap that screws up everything else. Also, you might want to note that HTML links really need to be created with php code "tep_href_link('page_name.php') otherwise, your users will loose their session ID and their cart at the same time. Spend the time to learn the basics of HTML it will pay off greatly in the long run, and save you time trying to fix the mistakes that frontpage made for you.

 

But thats just my opinion.

Hope thats of some assistance

osCommerce is a great piece of software with wonderful contributions.

Spend some time in the contribution area. There are a lot of gems there.

Archived

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

×
×
  • Create New...