Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to change conditions.php


Guest

Recommended Posts

I want to have a simple "html" style page, instead of the "fill in the information and contact us".

 

I just want to have:

Shopname, adress, opening hours, tel, fax and emails with links to the different departments..

 

Where do I change?

Link to comment
Share on other sites

I want to have a simple "html" style page, instead of the "fill in the information and contact us".

 

I just want to have:

Shopname, adress, opening hours, tel, fax and emails with links to the different departments..

 

Where do I change?

 

contact_us.php

 

Remove the form and add the info you want to add, you can add the text directly or do a

 

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

 

and then define the text in your includes/languages/english/contact_us.php

 

so that you keep everything neat.

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

contact_us.php

 

Remove the form and add the info you want to add, you can add the text directly or do a

 

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

 

and then define the text in your includes/languages/english/contact_us.php

 

so that you keep everything neat.

 

Ok thanks, but is this in language files or?

Link to comment
Share on other sites

Ok thanks, but is this in language files or?

 

You first need to edit your catalog/contact_us.php file. You can just edit that and remove the form and add the info you want bypassing the language file altogether.

 

If you want to keep the osC structure then you would add the line I posted where you want the info to show up and then define it in your language file.

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

You first need to edit your catalog/contact_us.php file. You can just edit that and remove the form and add the info you want bypassing the language file altogether.

 

If you want to keep the osC structure then you would add the line I posted where you want the info to show up and then define it in  your language file.

 

ok, exactly what do I delete in the catalog/contact_us.php file? Im a newbie, but trying to learn..

 

Thanks for the help

Link to comment
Share on other sites

ok, exactly what do I delete in the catalog/contact_us.php file? Im a newbie, but trying to learn..

 

Thanks for the help

 

BACKUP YOUR FILE FIRST!!!!!

 

On or about line 107 you should see the following code. If you remove it your form should go away.

 

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="middleBox">

<tr class="middleBox">

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

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

</tr>

<tr>

<td class="main"><?php echo tep_draw_input_field('name'); ?></td>

</tr>

<tr>

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

</tr>

<tr>

<td class="main"><?php echo tep_draw_input_field('email'); ?></td>

</tr>

<tr>

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

</tr>

<tr>

<td><?php echo tep_draw_textarea_field('enquiry', 'soft', 50, 15); ?></td>

</tr>

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

BACKUP YOUR FILE FIRST!!!!!

 

On or about line 107 you should see the following code. If you remove it your form should go away.

 

<tr>

? ? ? ? <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="middleBox">

? ? ? ? ? <tr class="middleBox">

? ? ? ? ? ? <td><table border="0" width="100%" cellspacing="0" cellpadding="2">

? ? ? ? ? ? ? <tr>

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

? ? ? ? ? ? ? </tr>

? ? ? ? ? ? ? <tr>

? ? ? ? ? ? ? ? <td class="main"><?php echo tep_draw_input_field('name'); ?></td>

? ? ? ? ? ? ? </tr>

? ? ? ? ? ? ? <tr>

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

? ? ? ? ? ? ? </tr>

? ? ? ? ? ? ? <tr>

? ? ? ? ? ? ? ? <td class="main"><?php echo tep_draw_input_field('email'); ?></td>

? ? ? ? ? ? ? </tr>

? ? ? ? ? ? ? <tr>

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

? ? ? ? ? ? ? </tr>

? ? ? ? ? ? ? <tr>

? ? ? ? ? ? ? ? <td><?php echo tep_draw_textarea_field('enquiry', 'soft', 50, 15); ?></td>

? ? ? ? ? ? ? </tr>

 

 

I found this:

 

<td class="main"><?php

// prefill first+last name and email address if customer is logged in

if (tep_session_is_registered('customer_id')) {

$customer_query_raw = "select customers_firstname, customers_lastname, customers_email_address from " . TABLE_CUSTOMERS . " where customers_id='" . $customer_id . "'";

$customer_query = tep_db_query($customer_query_raw);

$customer_array = tep_db_fetch_array($customer_query);

echo tep_draw_input_field('name', $customer_array['customers_firstname'] . " " . $customer_array['customers_lastname'],'readonly');

echo "</td></tr><tr><td class=\"main\">" . ENTRY_EMAIL . "</td></tr><tr><td class=\"main\">";

echo tep_draw_input_field('email', $customer_array['customers_email_address'],'readonly');

} else {

echo tep_draw_input_field('name');

echo "</td></tr><tr><td class=\"main\">" . ENTRY_EMAIL . "</td></tr><tr><td class=\"main\">";

echo tep_draw_input_field('email');

} ?></td>

</tr>

<tr>

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

</tr>

<tr>

<td><?php echo tep_draw_textarea_field('enquiry', 'soft', 50, 15); ?></td>

</tr>

 

 

 

 

do I delete anything of this or?

Link to comment
Share on other sites

It looks like your contact us file has been modified. That look like the correct area of the file so I woould go ahead and delete it. Make sure you have a backup in case things go wrong and you need to try again.

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...