Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to format/add actual content?


ever0095

Recommended Posts

Hi guys - hoping you can help me.

 

I've been gleaning info from this forum from the last two weeks, trying to figure things out on my own, but now I've hit a wall. I'm attempting to get an oscommerce live as soon as possible for a friend, and initially, the actual product/cart/shopping sections aren't necessary. In other words, we'll implement the core of what osCommerce actually IS, later on.

 

At the moment need to add content (text, formatting, images, etc) to pages that I create. I've done this on a basic level. For instance, (as it's a wine shop) I've created a wine.php file (modded from privacy.php) under includes/languages/english. I've added a root wine.php file (modded from that privacy.php file) as well, and edited the filenames.php file, the english.php file, and the top menu of the site. I've done this for 5 or 6 new pages (wine bar, wine shop, bakery, etc). All work fine! I can access those pages on the web via the menu. Later, I'll simply add the "Shop" menu item (or whatever I'll call it) back in to the main menu (I backed up and removed it) for now.

 

Here's my problem: I can't figure out how to do any editing of the text on those pages (except for basics: bold, bullets, etc). After the "define('TEXT_INFORMATION', '" section, I was hoping I could use the CSS styles that were included, but when I try to add in ANYTHING other than basic HTML, it ignores it. In other words, I can't use <span class="">. I've tried adding the stylesheet to the language include file via "../../../style.css" as well. I know I can make site wide changes via the stylesheet.css file, but I need to make complex formatting changes to individual pages.

 

How do I use the style sheet to edit text within the "define('TEXT_INFORMATION', '" section? Is there an add-on for this, to make it easier for a PHP neophyte? Everything I see on this forum seems to refer to product descriptions and info boxes, which will be great when I get to that point, but isn't what I need yet.

 

Thanks in advance, sorry for the length!

 

-Dan

Link to comment
Share on other sites

The call to your custom stylesheet needs to be in the head of your root wine.php file (and the others as well.) Make it similar to the existing stylesheet line.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

Thanks guys, will try your suggestions now.

 

-Dan

 

If you place your styling directly into the span element it should work. I have done it several times... i.e <span style="color:red">Your text</span>. Just wanted to be more clear on what I was advicing.

 

Hope it helps!

Link to comment
Share on other sites

Hi guys - hoping you can help me.

 

I've been gleaning info from this forum from the last two weeks, trying to figure things out on my own, but now I've hit a wall. I'm attempting to get an oscommerce live as soon as possible for a friend, and initially, the actual product/cart/shopping sections aren't necessary. In other words, we'll implement the core of what osCommerce actually IS, later on.

 

 

Then, what I would probably do is to take the index.php file, comment out the column_left and column_right files, and the whats_new.php and put your created files called instead of the whats_new.php file.

 

The essence of osC will be there, but the front end will be highly customized, but easily returned to a working shopping cart.

 

But, that's just me...

Community Bootstrap Edition, Edge

 

Avoid the most asked question. See How to Secure My Site and How do I...?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...