Skip to content

Commit

Permalink
More details about define pages
Browse files Browse the repository at this point in the history
  • Loading branch information
scottcwilson committed Mar 7, 2022
1 parent 2d3c5fe commit 4585382
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/user/new_user_topics/language_files.md
Expand Up @@ -18,16 +18,16 @@ The information in these files can be placed into four categories as follows:
**Your Own Definitions** can contain text you might find necessary in your particular shop. This information is contained in `.php` files stored in the folder
`include/languages/english/extra_definitions/`.

**Define pages** are default pages used by Zen Cart and can be edited as necessary. You can also add your own pages if you find that necessary. These files are located in `includes/languages/english/html_includes/`.
**Define pages** are default pages used by Zen Cart and can be edited as necessary. You can also add your own pages if you find that necessary. These files are located in `includes/languages/english/html_includes/`. For more information on this topic, see [setting up Define Pages](/user/new_user_topics/setting_up_define_pages).

The information in these files is constructed using "define statements" which consist of a CONSTANT and the information contained in that CONSTANT as shown in the example below.
The information in language files (other than the define pages described above) is constructed using PHP "define statements," which consist of a CONSTANT and the information contained in that CONSTANT as shown in the example below.

```
define('MY_CONSTANT', 'This is my information');
```

The advantage of these "define statements" is that text information can be included in your template files using a constant rather than a hardcoded value,
allowing you to easily change templates but preserve your language customizations.
allowing you to easily change templates but preserve your language customizations. It also facilitates [making your store multi-language](/user/localization/languages/).

## **Examples and Usage**

Expand Down
17 changes: 17 additions & 0 deletions content/user/new_user_topics/setting_up_define_pages.md
@@ -0,0 +1,17 @@
---
title: Setting up Define Pages
description: Customizing define page content
category: new_user_topics
weight: 10
---

Define Pages are pieces of content that storeowners can easily add to their sites with the built-in HTML Editor in the Zen Cart Admin.

Filling in the define pages allow you to write about:
- your store's shipping policy
- your store's terms and conditions
- how coupons work in your store

and many other topics.

More details on define pages are provided in [the template document about Define Pages](/user/template/define_pages/).

0 comments on commit 4585382

Please sign in to comment.