Four Methods for adding a new page to Zen cart

Source: Internet
Author: User

There are four ways to add a new page to Zen cart:

First, manual addition requires a certain HTML basis:
First, create your own template file.
The additional page is in the directory des/ages/sChinese/. The file names are page_2.php, page_3.php, and page_4.php.
Create a new directory named your_template under schemdes/schemages/sChinese/, and then copy the three PHP files to the schemdes/schemages/sChinese/your_template directory, you can modify it at will.
For more pages, just copy the file and name it page_5, page_6, and so on.
You also need to add header files to the additional page.
Open the page_x directory and the files in the directory, and rename your page.
Now open the file des/filenames. php and modify the file according to the same naming rules.
Add a new page to the primary des \ ages \ English \ html_primary des.
Finally, create a template page for the additional page in the directory of includes/templates/your_template/templates. Copy the tpl_page_x_default.php file and rename it according to the same naming rules.
To modify or add a new page in the "more information" box, set/supported des/ages/sChinese. copy the PHP file to the template directory, find the section that defines the more_information box, modify "More information" as needed, and modify the Link name.
The rest is to add the link to the box. Copy the/shortdes/modules/sideboxes/more_information.php file to the template directory, add your link in the same mode, and go to the Management page. Choose tools> visual control to set the file.

Second, you can use the module to add a new page, which can be used only after being downloaded and installed on the official website. : Add_pages_to_more_information_sidebox_2

Third, use ezpage to directly add a new page. This method is the simplest and is recommended.
First, create your own template file.
The additional page is in the directory des/ages/sChinese/. The file names are page_2.php, page_3.php, and page_4.php.
Create a new directory named your_template under schemdes/schemages/sChinese/, and then copy the three PHP files to the schemdes/schemages/sChinese/your_template directory, you can modify it at will.
For more pages, just copy the file and name it page_5, page_6, and so on.
You also need to add header files to the additional page.
2 Z 'a. D & U "T8 ^ '^ + R open Des/modules/pages, copy all the page_x directories and files in the directories you need, and rename your pages.
Now open the file des/filenames. php and modify the file according to the same naming rules.
Finally, create a template page for the additional page in the directory of includes/templates/your_template/templates. Copy the tpl_page_x_default.php file and rename it according to the same naming rules.
To modify or add a new page in the "more information" box, set/supported des/ages/sChinese. copy the PHP file to the template directory, find the section that defines the more_information box, modify "More information" as needed, and modify the Link name.
The rest is to add the link to the box. Copy the/shortdes/modules/sideboxes/more_information.php file to the template directory, add your link in the same mode, and go to the Management page. Choose tools> visual control to set the file.
Zencart 1.3 and later versions can be used to create new pages and links in a simpler way.
Background-tools-multilingual simple page, click: Install multilingual simple page &
2. backend-tools-simple Page Management, which allows you to add or delete pages at will
I have created a new link, but the webpage to which the link is linked has no header, no sidebox, no header, no footer, and so on.
I hope that the new page will be consistent with the whole site style. What should I do?
Add a webpage with a new link under tool-simple Page Management in the background Code
Thank you very much, Jack...
In fact, I also searched for posts on new pages in the Forum before, but they are all unclear, and many new users are confused. Let's talk about them here.
In fact, there are three ways to choose a simple page:
Whole Site Style
Here, you can enter the HTML code to maintain the style of the whole site, with a header and footer border or something. You do not need to create a new file.
Internal link URL
This field is used to reference the internal address. The style can also be maintained. The original file is required.
3. External link URL external address connection
Whether the style can be maintained depends on your code. Generally, the style cannot be maintained without adding special code. Create a file.
Next, the most important thing is that I did not know it. The above three can only be filled in.
Can I capture and paste the content of your simple page settings.
After searching for a long time, they all say they can be added or deleted. They are added and do not know how to set options.
Solved. After adding a page in simple page settings, you also need to open ezpages in layout boxes controller.

Fourth, install a Wordpress blog.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.