Info Pages

From Phoenix Cart User Guide
Back
Administration

From admin go to Adminnavbartools.png Tools → Info Pages - you will see this:

Infopages.png


There are already 3 Info Pages created that show as links in your shop footer: Privacy & Cookie Policy, Terms & Conditions and Shipping & Returns.


Additional Info Pages can be created giving each a unique slug name and sort order.

For example, make a new Info Page named Example Page.

  • Click Add a New Page to see this:

Infopagesnew.png

  • Click the Status Published button.
  • Enter Example in the Navbar Title input box - this is a short title that could be used in the navigation bar of your shop.
  • Enter Example Page in the Title input box.
  • Enter the text you want to show on the page in the Page Text input box.
  • Enter example in the Slug input box.
  • Enter a sort order for the page in the Sort Order input box.
  • Click Save

Links to these Info Pages would take the form of info.php?pages_id=x where x is the ID number shown after the Info Page is created.

So after the above Info Pages have been created you will see this with the ID shown in the column on the left:

Infopagesexample.png

The links to new Info Pages can be shown in the shop by appending to an existing content module or new content modules can be created to display them.

For example, using the Example Page, add a link to the page to the list of Information links shown in the footer.

From admin go to Adminnavbartools.png Tools → Define Languages

Find and open modules/content/footer/cm_footer_information_links.php

After

'contact_us.php' => 'Contact Us',

Add

'info.php?pages_id=4' => 'Example Page',

This then shows on your shop like:-

Infolinksexample.png


The 3 Info Pages in core have had pages made to display them.

As shown in the example above, that is not necessary to display Info Pages but if required, read How to Make a New Page to see how that is done.

Read How to Make a New Content Module to see how that is done.




A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.

The term slug derives from the days of hot-metal printing, when printers set type by hand in a small form called a stick. Later huge Linotype machines turned molten lead into casts of letters, lines, sentences and paragraphs. A line of lead in both eras was known as a slug.


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