Difference between revisions of "Info Pages"

From Phoenix Cart User Guide
 
(24 intermediate revisions by the same user not shown)
Line 1: Line 1:
<span class="btn-grey"><historylink type="back">&#129032; Back</historylink></span>
+
<div class="btn btn-grey btn-back">{{#fas:arrow-left}} Back</div> <div class="btn btn-grey btn-admin">{{#fas:cog}} Administration</div>
<span class="btn-grey" style="color:#0088dd;">'''[[ADMINISTRATION|&#x1F809; ADMINISTRATION]]'''</span>
 
 
<hr>
 
<hr>
  
Line 8: Line 7:
 
</div>
 
</div>
  
This allows you to create a new page.
 
  
There are already 3 links in your shop footer: '''Privacy & Cookie Policy''', '''Terms & Conditions''' and '''Shipping & Returns'''.
+
There are already 3 Info Pages created that show as links in your shop footer: '''Privacy & Cookie Policy''', '''Terms & Conditions''' and '''Shipping & Returns'''.
  
You need to create these 3 pages.
 
  
The message at the top reminds you that these pages need to be created.
+
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 <span class="btn-red">Add a New Page</span> to see this:
 
*Click <span class="btn-red">Add a New Page</span> to see this:
Line 20: Line 19:
 
[[File:infopagesnew.png|link=|1500px]]
 
[[File:infopagesnew.png|link=|1500px]]
 
</div>
 
</div>
 
For example, to create the '''Privacy & Cookie Policy''' page:
 
  
 
*Click the '''Status''' '''Published''' button.
 
*Click the '''Status''' '''Published''' button.
*Enter '''Privacy''' in the '''Navbar Title''' input box - this is a short title that could be used in the navigation bar of your shop.
+
*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 '''Privacy & Cookie Policy''' in the '''Title''' input box.
+
*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 the text you want to show on the page in the '''Page Text''' input box.
*Enter '''privacy''' in the '''Slug''' input box.
+
*Enter '''example''' in the '''Slug''' input box.
*Enter a sort order for the page in the '''Sort Order''' input box - '''10''' is suggested for this page.
+
*Enter a sort order for the page in the '''Sort Order''' input box.
 
*Click <span class="btn-green">Save</span>
 
*Click <span class="btn-green">Save</span>
  
Create pages for the '''Terms & Conditions''' and '''Shipping & Returns''' pages entering the appropriate titles, text, slugs and unique sort orders.
+
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:
 +
 
 +
<div class="mainpage_box">
 +
[[File:infopagesexample.png|link=|1500px]]
 +
</div>
 +
 
 +
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.
 +
 
 +
This is done in the Language file for the module.
 +
 
 +
Read https://phoenixcart.org/phoenixcartwiki/index.php?title=Change_Language_Files to learn about changing language files.
 +
 
 +
Find and open '''modules/content/footer/cm_footer_information_links.php'''
 +
 
 +
After
 +
 
 +
<pre>'contact_us.php' => 'Contact Us',</pre>
 +
 
 +
Add
 +
 
 +
<pre>'info.php?pages_id=4' => 'Example Page',</pre>
 +
 
 +
This then shows on your shop like:-
 +
 
 +
[[File:infolinksexample.png|link=]]
 +
 
 +
 
 +
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 <big>'''[[How to Make a New Page]]'''</big> to see how that is done.
 +
 
 +
Read <big>'''[[How to Make a New Content Module]]'''</big> to see how that is done.
 +
 
  
 +
----
  
Additional pages can be created in a similar way giving each a unique slug name and sort order.
 
  
Links to these pages would take the form of '''info.php?pages_id=x''' where '''x''' is the ID number shown after the page is created.
+
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.
  
 
<hr>
 
<hr>
  
 
{{Contribute}}
 
{{Contribute}}

Latest revision as of 10:23, 1 November 2024

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.

This is done in the Language file for the module.

Read https://phoenixcart.org/phoenixcartwiki/index.php?title=Change_Language_Files to learn about changing language files.

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.

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