Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Text formatting question + 3


rocketpromo

Recommended Posts

Hello Board,

 

Still getting my feet wet here, have a couple of questions...

 

How do I create breaks in the text to create paragraphs rather than a text blocks.

 

Can I toggle prices on/off. We sell many products that require individual quotes.

 

On our CONTACT US page (http://www.rocketpromo.com/osc/contact_us.php) I want to add our addy, phone, email list under

the message box. How do I do that

 

In IE/Chrome Browsers, there is a missing link, in FireFox, it shows text "English." How can I make it show "English" in all

browsers.

 

Thank you in advance for any help.

 

Regards,

Chris

Link to comment
Share on other sites

1 question is <br>

 

2 question below

 

catalog/contact_us.php find this code:

<tr>
			<td class="main"><?php echo ENTRY_NAME; ?></td>
		  </tr>

Replace it with this code:

<tr>
			<td class="main">
			  COMPANY ADDRESS<br>
			  0<br>
			  0<br>
			  0<br>
			  0<br>
			  0<br>
			  TEL:00<br>
			  MSN:--------<br>
			  SKYPE:--------<br>
			  EMAIL:--<br>
			</td>
		  </tr>
		  <tr>
			<td class="main"><?php echo ENTRY_NAME; ?></td>
		  </tr>

Link to comment
Share on other sites

To make a line break (like hitting Enter in MS Word) you have to put <br> which is an HTML break wherever you want. Also you can wrap the text in a table and set the width so the text is forced to wrap on its own.

 

Try adding <div style="width: 600px;">Your text and html here etc..</div> and play around with the with. I find that wrapping all of my page elements and text inside one major table is better than individually putting in a bunch of <br> tags. If you're just learning html, feel free to post a link to the page you want tweaked.

 

On your contact us page, find where the form ends (ctrl F 'continue' is how i found it) and simply start typing the text you want to enter. Looking at your html source code from the contact us page, you can find this line

<tr><td align="right"><input type="image" src="includes/languages/english/images/buttons/button_continue.gif" border="0" alt="Continue" title=" Continue "></td></tr>

 

beneath it you can add something like <tr><td>Our Email Address<br>Our Phone number</td><tr>

 

I'll look more into turning pricing on/off..

 

As for your browser 'english' issue, can you point me to a page where it's screwed up? I use both IE and Firefox and might be able to suggest something.

 

Let me know if anything needs clarification,

-Evan

Link to comment
Share on other sites

Hi Airbrushmaster,

 

I have included the code I see on our contact page. Where do I put the code you suggested.

 

Redgards,

Chris

 

<?php

/*

$Id: contact_us.php 1739 2007-12-20 00:52:16Z hpdl $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

define('HEADING_TITLE', 'Contact Us');

define('NAVBAR_TITLE', 'Contact Us');

define('TEXT_SUCCESS', 'Your enquiry has been successfully sent to the Store Owner.');

define('EMAIL_SUBJECT', 'Enquiry from ' . STORE_NAME);

 

define('ENTRY_NAME', 'Full Name:');

define('ENTRY_EMAIL', 'E-Mail Address:');

define('ENTRY_ENQUIRY', 'Question or Comment:');

 

 

 

?>

Link to comment
Share on other sites

To make a line break (like hitting Enter in MS Word) you have to put <br> which is an HTML break wherever you want. Also you can wrap the text in a table and set the width so the text is forced to wrap on its own.

 

Try adding <div style="width: 600px;">Your text and html here etc..</div> and play around with the with. I find that wrapping all of my page elements and text inside one major table is better than individually putting in a bunch of <br> tags. If you're just learning html, feel free to post a link to the page you want tweaked.

 

On your contact us page, find where the form ends (ctrl F 'continue' is how i found it) and simply start typing the text you want to enter. Looking at your html source code from the contact us page, you can find this line

<?php
/*
 $Id: contact_us.php 1739 2007-12-20 00:52:16Z hpdl $

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 2002 osCommerce

 Released under the GNU General Public License
*/

define('HEADING_TITLE', 'Contact Us');
define('NAVBAR_TITLE', 'Contact Us');
define('TEXT_SUCCESS', 'Your enquiry has been successfully sent to the Store Owner.');
define('EMAIL_SUBJECT', 'Enquiry from ' . STORE_NAME);

define('ENTRY_NAME', 'Full Name:');
define('ENTRY_EMAIL', 'E-Mail Address:');
define('ENTRY_ENQUIRY', 'Question or Comment:');



?>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...