Difference between revisions of "How to Make a New Page"

From Phoenix Cart User Guide
Line 40: Line 40:
 
*Open the file in a file editor to see this:
 
*Open the file in a file editor to see this:
 
<div class="mainpage_box">
 
<div class="mainpage_box">
[[File:Vscprivacy.png|link=|1500px]]
+
[[File:Vscprivacytemp.png|link=|1500px]]
 
</div>
 
</div>
*There is only 1 reference to the file name '''privacy''' - seen on line 15.
+
*There are only 2 references to the file name '''privacy''' - seen on lines 13 and 16.
 
*Change '''privacy''' to the new file name - '''example''' is used here just as an example - note: do not use upper case and use an underscore instead of spaces in file names.
 
*Change '''privacy''' to the new file name - '''example''' is used here just as an example - note: do not use upper case and use an underscore instead of spaces in file names.
 
*In the file editor menu, go to and click '''File &rarr; Save as...'''
 
*In the file editor menu, go to and click '''File &rarr; Save as...'''
Line 52: Line 52:
 
<big>'''Language File'''</big>
 
<big>'''Language File'''</big>
  
*Now back in the downloaded and unzipped (extracted) CE Phoenix folder, go to '''includes &rarr; languages &rarr; english'''
+
*Now back in the downloaded and unzipped (extracted) CE Phoenix folder, go to '''/includes/languages/english/'''
 
*Find the '''privacy''' file.
 
*Find the '''privacy''' file.
 
*Open the file in a file editor to see this:
 
*Open the file in a file editor to see this:

Revision as of 08:40, 29 October 2021

Back
FAQ Tips & Tricks

It is a common requirement for shop owners to want additional information pages specific to their shop e.g. pages relating to products or services.

This is easily achieved by making an Info Page - read Info Pages to see how that is done.

It is not necessary but users might want to create a new page to display that new Info Page.

This can be done by creating a clone of an existing information page.

Each page has a main file, a template file and a language file so a clone is made of each.

In this example a new page is made to display a new Info Page (read Info Pages to see how that is done) by cloning the existing privacy.php page.




Main File

  • On your local computer, find and open the downloaded and unzipped (extracted) CE Phoenix folder or download and unzip a new one.
  • Find the privacy.php main file (it is located in the top folder/directory, the same folder that contains the admin directory).
  • Open the file in a file editor to see this:

Vscprivacy.png

  • There is only 1 reference to the file name privacy - seen on line 15.
  • Change privacy to the new file name - example is used here just as an example - note: do not use upper case and use an underscore instead of spaces in file names.
  • In the file editor menu, go to and click File → Save as...
  • Enter the new file name (example) and click Save



Template File

  • Now back in the downloaded and unzipped (extracted) CE Phoenix folder, go to /templates/default/includes/pages/
  • Find the privacy.php template file.
  • Open the file in a file editor to see this:

Vscprivacytemp.png

  • There are only 2 references to the file name privacy - seen on lines 13 and 16.
  • Change privacy to the new file name - example is used here just as an example - note: do not use upper case and use an underscore instead of spaces in file names.
  • In the file editor menu, go to and click File → Save as...
  • Enter the new file name (example) and click Save


Language File

  • Now back in the downloaded and unzipped (extracted) CE Phoenix folder, go to /includes/languages/english/
  • Find the privacy file.
  • Open the file in a file editor to see this:

Vscprivacylang.png

  • Copy and paste the following code before the first language define - so paste into line 12 in the example.
  • Change the text to your requirements.
  • This code will help the search engines to find the new page.
// seo
define('META_SEO_TITLE', 'Example Page Title');
define('META_SEO_DESCRIPTION', 'Example page description of about 30 words');
define('META_SEO_KEYWORDS', 'Example page, search terms, comma separated');
  • Change the 2 instances of Privacy Notice to the new page name e.g. Example
  • Change Put here your Privacy Notice information. to whatever is required to show in the new page contents.
  • In the file editor menu, go to and click File → Save as...
  • The popup navigation window should open in includes/languages/english but ensure the file is saved in that location.
  • Enter the new file name (example) and click Save




  • Using FTP software, upload the new files to the host server - ensure they are uploaded to the correct locations.



Construction.png
This page is in progress
Please visit again soon for additions and changes

Phoenix Cart User Guide, like CE Phoenix Cart, is free to use but is maintained by unpaid volunteers.
If you have found it useful, please donate to the coffee pot!
Use this link to donate whatever you want.

Donate with Paypal

Code references are licensed under a Commons Attribution-NonCommercial-ShareAlike 2.0 UK: England & Wales License.
All other content is the reserved Intellectual Property and Copyright of phoenixcart.org
PROTECTED BY COPYSCAPE ANTI-PLAGIARISM