网络营销电子商务研究中心  
How to buy the best prescription safety glasses in Canada? Let's study!
Go Back   网络营销电子商务研究中心 > 网站建设 > ZenCart
User Name
Password
 
FAQ Members List Calendar Cheap Glasses

Reply
 
Thread Tools Display Modes
  #1   IP: 153.99.80.189
Old 2016-08-17, 04:52 PM
Mantua Mantua is offline
初级会员
 
Join Date: 2007-03-08
Posts: 1
Mantua 现在声名狼藉
Default zen cart中如何增加页面?

我们以About Us为例讲解一下zencart中如何新建页面!

1.在includes/languages/english/html_includes目录中新建文件define_about_us.php

2.在includes/templates/Your_template/templates目录中新建文件 tpl_about_us_default.php
并在此文件中增加如下代码:
<div id=”aboutUs”>
<h1 id=”aboutUsHeading”><?php echo HEADING_TITLE; ?></h1>
<div id=”aboutUsMainContent”>
<?php
require($define_page);
?>
</div>
<div><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . ‘</a>’; ?></div>
</div>
3.在includes/modules/pages目录中新建about_us目录

4.在新建的about_us目录中新建文件header.php,并在文件中增加如下代码:
<?php
require(DIR_WS_MODULES . zen_get_module_directory(‘require_languages.php’));
$breadcrumb->add(NAVBAR_TITLE);
$define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . ‘/html_includes/’, FILENAME_DEFINE_ABOUT_US, ‘false’);
?>

5.在includes/filenames.php文件增加如下代码:
define(‘FILENAME_DEFINE_ABOUT_US’, ‘define_about_us’);

6.在includes/languages/english目录中新建文件about_us.php,并在文件中增加如下代码:
<?php
define(‘NAVBAR_TITLE’, ‘About Us’);
define(‘HEADING_TITLE’, ‘About Us’);

define(‘TEXT_INFORMATION’, ‘About Us information goes here.’);
?>
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Prescription-glasses.com offers prescription glasses online at discount prices.
All times are GMT +8. The time now is 09:12 AM.


Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.