Zen cart secondary development II

Source: Internet
Author: User
Tags zen cart

--- Modify the header ---

1. the header is divided into two parts:
1. Part 1: <HTML> Changes to this file in zencart/schemdes/templates/template_default/common/html_header.php

2. The second part mainly displays the page's header, including the login information, shopping cart, and navigation information below.
This file is changed in zencart/schemdes/templates/zccn/common/tpl_header.php

Modify the file zencart/DES/ages/sChinese/zccn/header. php where the Chinese font displayed in the header is located

2. Modify intermediate changes
D:/XAMPP/htdocs/zencart/effecdes/templates/template_default/templates/tpl_page_default.php

From this we can see that if something is common in both Chinese and English, it will be placed under template_default, if it is only a Chinese thing, it will be placed in zccn, and only things changed on the English page can be placed in zcen
--- Zen cart modify the header search to search only product names ---

Find includes/templates/template_default/sideboxes/tpl_search_header.php
Or define destemplates your template sideboxestpl_search_header.php

Modify zen_draw_hidden_field ('search _ in_description ', '1 ')
Zen_draw_hidden_field ('search _ in_description ', '0 ')

------

Main style sheet
Schemdes/templates/classic/CSS/stylesheet.css
Entire page Organization
D:/web/Zen-cart/schemdes/templates/template_default/common/tpl_main_page.php

 

Source code: <TD id = "navcolumnone" style = "width: 150px;">
Dynamic call width: <? PHP echo column_width_left;?> ">,
You can change column width/column width-left boxes in backend-configuration-layout.

Classification name of commodity changes: box_heading_categories,
"D:/web/Zen-cart/DES/ages/English. php" (): define ('box _ heading_categories ', 'categories ');

Modify the spooer name to define ('box _ heading_banner_box ', 'domainsors ')
Default template. The left Spooner pair corresponds to 'box _ heading_banner_box ', and the upper right spooer pair corresponds to 'box _ heading_banner_box_all'
The lower right spooer corresponds to box_heading_banner_box2

Processing on the left sidebar: only the supported des/templates/template_default/sideboxes/tpl_categories.php files are retained. Add
Image Link

Processing of the right sidebar:
1. Set the background to retain who's onlie (sideboxes/whos_online.php ),
Find the corresponding tpl_box_default_right.php. <? PHP echo $ title;?> Replace

2. Add the content of the left column and change tpl_box_default_right.php:

Central modification:
========================
/Schemdes/templates/template_default/templates/tpl_index_default.php

Remove the top part: <? PHP if (show_customer_greeting = 1) {?>
<H2> <? PHP echo zen_customer_greeting () ;?> </H2>
<? PHP }?>

Drop the welcome information:
<H1 id = "indexdefaultheading"> <? PHP echo heading_title;?> </H1>

Remove the top navigation bar:
/Shortdes/templates/template_default/common/tpl_main_page.php
<Div id = "navbreadcrumb"> <? PHP echo $ breadcrumb-> Trail (bread_crumbs_separator);?> </Div>

Modify the top of the dashboard:
======================
/Zen-cart/Includes/templates/template_default/common/tpl_header.php
<Div id = "navmain"> </div> adds a link.

<? PHP
/**
* Prepares and displays header output
*
*/
If (customers_approval_authorization = 1 & customers_authorization_header_off = 'true' and ($ _ session ['mers MERs _ authorization']! = 0 or $ _ session ['customer _ id'] = ")){
$ Flag_disable_header = true;
}
Require ($ template-> get_template_dir ('tpl _ header. php', dir_ws_template, $ current_page_base, 'common'). '/tpl_header.php');?>

The upper part is extracted from <Div id = "mainwrapper"> and placed in front of it for full-screen navigation.

Modify the search button on the top:
/Schemdes/templates/template_default/common/tpl_header.php:
<Div id = "navmainsearch"> <? PHP require (dir_ws_modules. 'sideboxes/search_header.php ');?> </Div>

Automatically generate navigation bar:
/Schemdes/templates/template_default/templates/tpl_modules_categories_tabs.php
Empty the code and add the navigation code again:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
<? PHP
/**
* Module template-categories_tabs
*
* Template stub used to display categories-Tabs output
*
* @ Package templatesystem
* @ Copyright Copyright 2003-2005 Zen cart Development Team
* @ Copyright portions Copyright 2003 oscommerce
* @ License http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @ Version $ ID: tpl_modules_categories_tabs.php 3395 21: 13: 00Z ajeh $
*/

Include (dir_ws_modules. zen_get_module_directory (filename_categories_tabs ));
?>
<? PHP if (categories_tabs_status = '1' & sizeof ($ links_list) >=1) {?>
<Div id = "navcattabswrapper">
<Div id = "navcattabs">
<Ul>
<? PHP for ($ I = 0, $ n = sizeof ($ links_list); $ I <$ N; $ I ++) {?>
<Li> <? PHP echo $ links_list [$ I];?> </LI>
<? PHP }?>
</Ul>
</Div>
</Div>
<? PHP }?>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Clear redundant log Background:
/Zen-cart/Includes/templates/template_default/common/tpl_header.php
<Div id = "tagline"> <? PHP echo header_sales_text;?> </Div>
Modify the navigation bar at the bottom:
/Shortdes/templates/template_default/common/tpl_main_page.php
<Div id = "bannersix"> <? PHP echo zen_display_banner ('static ', $ banner);?> </Div>

----- Modify meta author, generator ----

Modify zencart meta author, generator

The header contains the default Zen cart, which should be removed as follows:

<Meta name = "author" content = "the Zen cart & Trade; team and others "/> <meta name =" generator "content =" Shopping Cart program by Zen cart & Trade ;, http://www.zen-cart.com ecommerce "/> another place is <Div id =" logo "> <a href =" http://www.crazyprince.com/"> /> </A> </div> you need to change the following file: /shortdes/templates/your_template/common/html_header.php or/shortdes/templates/template_default/common/html_header.php/shortdes/ages/english/your_template/header. PHP is often and most easily overlooked. --------------

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.