Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Privacy file


bugleman

Recommended Posts

I'd like to rename the privacy file to faq but I'm not sure where the privacy file is all linked to. I don't want to mess anything up. But I don't need a privacy file. I have a terms of use and customer service, etc. I made a frequently asked questions page and have it in the privacy file now but I need to rename it to faq. Any way to do this?

Link to comment
Share on other sites

The quick & dirty method:

 

In catalog/includes/languages/english.php look for :

 

define('BOX_INFORMATION_PRIVACY', 'Privacy Notice');

 

and change to:

 

define('BOX_INFORMATION_PRIVACY', 'FAQ');

However, your page name will still show in the URL as privacy.php.

 

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

 

The proper method (by Burt):

 

 

Download the following files:

 

catalog/conditions.php

catalog/includes/languages/english/conditions.php

 

Save them (on your Hard Drive as):

 

catalog/template.php

catalog/includes/languages/english/template.php

 

When you want a new page:

 

Open catalog/template.php (on your HD) and change the following:

 

CODE

 

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONDITIONS);

 

 

 

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONDITIONS, '', 'NONSSL'));

 

 

 

 

To:

 

CODE

 

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_NEW_PAGE);

 

 

 

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_NEW_PAGE, '', 'NONSSL'));

 

 

 

 

where NEW_PAGE is the name of your new page.

 

eg if you wanted a page called "about_us.php" the code would be:

 

CODE

 

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ABOUT_US);

 

 

 

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_ABOUT_US, '', 'NONSSL'));

 

 

 

 

Save and Upload both:

catalog/template.php

catalog/includes/languages/english/template.php

 

to their respective places on the live server, and then rename them BOTH to whatever, in the example: about_us.php

 

Set CHMOD 777 on your newly created and renamed:

 

catalog/includes/languages/english/about_us.php

 

Download, and open up application_top.php and add the following:

 

CODE

 

 

// New page about_us.php

 

define('FILENAME_ABOUT_US', 'about_us.php');

 

 

 

 

Save and upload includes/application_top.php

 

Now go Admin > Tools > Define Languages > about_us.php

 

Done. It sounds complicated but once you get the hang of it, it takes no longer than 2 minutes. It maintains the proper Osc structure.

Link to comment
Share on other sites

I'd like to rename the privacy file to faq but I'm not sure where the privacy file is all linked to.  I don't want to mess anything up.  But I don't need a privacy file.  I have a terms of use and customer service, etc.  I made a frequently asked questions page and have it in the privacy file now but I need to rename it to faq.  Any way to do this?

 

 

Rename catalog/privacy.php to faq.php. Open for editing, and change all instances of privacy to faq. Open catalog/includes/languages/english.php, find the define for BOX_INFORMATION_PRIVACY, change it to BOX_INFORMATION_FAQ, and change the label from Privacy Notice to FAQ. Find catalog/includes/languages/english/privacy.php, rename it to faq.php. Open it for editing, change all instances of privacy to faq, just like in the catalog/privacy.php.

Open catalog/includes/boxes/information.php, change two instances of PRIVACY to FAQ. Save the files, upload, and it should be good. Remeber to make backups of these files BEFORE you modify them!

 

Jeremy

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...