In the admin backstage ,all the orders, if not modified by default,are in accordance with the order id number, turn down the row.
But if done to modify the order number, the situation is different, because the number of orders after several modifications after the number is a random number, if you order more than one day, then the effect is not very satisfactory.
Zencart backstage press single time you want the latest order was at the top, or very simple.
Modification method:
1, open the file: admin / orders.php
Find: order by o.orders_id DESC modify the order by o.date_purchased DESC
Then find: order by orders_id DESC modify the order by date_purchased DESC
2, open the file: admin / index.php
Find: order by orders_id DESC limit 5 ");
Amended to: order by date_purchased DESC limit 10 ");
(This step is a preview of the main interface to achieve the background sort orders, and the main interface to modify the number of orders)
Then refresh the page, you can see the effect.
Feature Label Area
2014年4月5日星期六
2014年4月4日星期五
Zencart Simple browsing history plugin
Description: Every customer to browse a product detail page, the code will write down the product, so the product will not only help each other station chain, but also to enhance the customer experience.
Tagged under: zencart plugin
2014年4月3日星期四
Zencart homepage random products scrolling plugin
Today we want to share a new plug-in:Zencart Home page Random products scrolling plugin.
First have a preview here
Download plugin here
Installation
1 YOUR_TEMPLATE changed the name of the folder of your template
Would end includestemplatesYOUR_TEMPLATEtemplatestpl_random_default.php file 21 <script type="text/javascript"src="includes/templates/YOUR_TEMPLATE/jscript/random.js"> </ script>
In YOUR_TEMPLATE changed the name of your template
3 upload files to your zencart website location
Put the following code into where you want to use it.1 <? Php2 require (. $ Template-> get_template_dir ('/ tpl_random_default.php', DIR_WS_TEMPLATE, $ current_page_base, 'templates') '/ tpl_random_default.php');?>
GOODLUCK !
Tagged under: zencart plugin
First have a preview here
Download plugin here
Installation
1 YOUR_TEMPLATE changed the name of the folder of your template
Would end includestemplatesYOUR_TEMPLATEtemplatestpl_random_default.php file 21 <script type="text/javascript"src="includes/templates/YOUR_TEMPLATE/jscript/random.js"> </ script>
In YOUR_TEMPLATE changed the name of your template
3 upload files to your zencart website location
Put the following code into where you want to use it.1 <? Php2 require (. $ Template-> get_template_dir ('/ tpl_random_default.php', DIR_WS_TEMPLATE, $ current_page_base, 'templates') '/ tpl_random_default.php');?>
GOODLUCK !
2014年4月1日星期二
Fresh naturex zencart template
Heare share a very Fresh naturex zencart template
Some features about this template:
1friendly usability
2,two column layout
Column Width - Left Boxes:180px
Column Width - Left:220px
3,Images buttons are included
4,easy to install
The screenshot here:
download template
Tagged under: zencart 1.39 templates, zencart free templates
Some features about this template:
1friendly usability
2,two column layout
Column Width - Left Boxes:180px
Column Width - Left:220px
3,Images buttons are included
4,easy to install
supports Zencart 1.3.9
The screenshot here:
download template
zencart free templates for Lingerie/Underwear Sale
Some features about this template:
1friendly usability
2,two column layout
3,Very Cool Slideshow Home Page Banner is included(managed via admin ‘Banner Manager’)
4,has four Ad showboxes which you can display your advertisement easily.(managed via admin ‘Banner Manager’)
5,Cross Browser HTML and CSS layouts (Internet Explorer 6+*, Firefox 3+, Google Chrome, Opera, Safari browsers compatible)
W3C XHTML valid
6,Dynamic horizontal EZPage CSS menu
7,Language/currency dropdown menu
8,Images buttons are included
Stylish category page design
Home page, category page and buttons PSD source files are included
No affection to core functionality
No changes in default database scheme
Readme file with all necessary instructions is included
Easy to install,Very detail installation guide included
supports Zencart 1.3.9
1friendly usability
2,two column layout
3,Very Cool Slideshow Home Page Banner is included(managed via admin ‘Banner Manager’)
4,has four Ad showboxes which you can display your advertisement easily.(managed via admin ‘Banner Manager’)
5,Cross Browser HTML and CSS layouts (Internet Explorer 6+*, Firefox 3+, Google Chrome, Opera, Safari browsers compatible)
W3C XHTML valid
6,Dynamic horizontal EZPage CSS menu
7,Language/currency dropdown menu
8,Images buttons are included
Stylish category page design
Home page, category page and buttons PSD source files are included
No affection to core functionality
No changes in default database scheme
Readme file with all necessary instructions is included
Easy to install,Very detail installation guide included
supports Zencart 1.3.9
The screenshot now:
2014年3月5日星期三
Brief introduction of the structure and system processes of zencart system
When doing
zencart development , we must first understand the structure of the
system how to work , and it is how that kind of a structure in the end? Here i dont want to say too
complex ,but give you a simple and overview of this systerm. Zencart belongs to a simple little MVC framework
structure , on the introduction and benefits of MVC do not want to say
more. He said there is a single entry is the entry procedure , what is the single entrance , this is very easy to understand. If
you do not install SEO plugin , then all of the URL of the page you see
are based on index.php? Main_page = do for the people , so that people
who do not understand that he is only one page ( also can be understood )
, in fact, it is precisely this structure where his advantage ,
index.php page as a portal , according to different parameters behind
the decision to enter the different procedures.And
this page will play a role in distributing tasks , all pages are
available through the back of the parameters to achieve it . This would solve the problem of complex and not easy to manage a multi- entry program. And it is this structure is particularly suitable for modular development , and this system is actually the case. If
you want to modify the contents of the product to achieve the page, you
can find the page related code module, which is product_info zencart
this module if you want to modify, you can quickly find the module
information of the page, in fact, is the main module inside query the database for information.The module is placed in the file includes / modules directory. And
if it is the page to find the directory below pages / directory , and
if you can find the border sideboxes / directory , the other as the name
suggests it. In accordance with this understanding can accelerate the understanding of zencart system. Get
inside information from the module file inside after going to the front
display , so the next step is to includes / templates / find the
corresponding tpl_ files in your templates / templates directory ,
modify the template file is modified to achieve our goal . This is about the process .Understanding the flow of the system , the next will be conducive to the development of the secondary template .The default zencart page consists of 5 parts , namely,Page header - template file for the includestemplates your template name commontpl_header.phpBody of the page - the template file includestemplates your template name commontpl_main_page.php
Under the main page is divided into left , center and right three parts.
Left border - module file for the includesmodulescolumn_left.php
The middle part of the module - includestemplates your template name commonmain_template_vars.php
Right border - module file for the includesmodulescolumn_right.phpBottom of the page - the template file includestemplates your template name commontpl_footer.phpIn doing zencart template secondary development , if they knew the words , and will be helpful for your zencart development .
Tagged under:
Under the main page is divided into left , center and right three parts.
Left border - module file for the includesmodulescolumn_left.php
The middle part of the module - includestemplates your template name commonmain_template_vars.php
Right border - module file for the includesmodulescolumn_right.phpBottom of the page - the template file includestemplates your template name commontpl_footer.phpIn doing zencart template secondary development , if they knew the words , and will be helpful for your zencart development .
2013年11月25日星期一
How to verify whether there is a currency type
How to verify whether there is a currency type?
The zencart zen_currency_exists test function is specified currency currency code exists to return the money if the currency code exists, if not, it returns false the first argument is the designated currency of code, such as U.S. dollar is usd
The second parameter is the default currency if the return is the site specified default currency exchange rate of 1
Function prototype code
function zen_currency_exists ($ code, $ getFirstDefault = false) {
global $ db;
$ code = zen_db_prepare_input ($ code);
$ currency_code = "select code
from ". TABLE_CURRENCIES."
where code = '".. zen_db_input ($ code)"' LIMIT 1 ";
$ currency_first = "select code
from ". TABLE_CURRENCIES."
order by value ASC LIMIT 1 ";
$ currency = $ db-> Execute (? ($ getFirstDefault == false) $ currency_code: $ currency_first);
if ($ currency-> RecordCount ()) {
return strtoupper ($ currency-> fields ['code']);
} Else {
return false;
}
}
Tagged under: zencart currency, zencart plugin
The zencart zen_currency_exists test function is specified currency currency code exists to return the money if the currency code exists, if not, it returns false the first argument is the designated currency of code, such as U.S. dollar is usd
The second parameter is the default currency if the return is the site specified default currency exchange rate of 1
Function prototype code
function zen_currency_exists ($ code, $ getFirstDefault = false) {
global $ db;
$ code = zen_db_prepare_input ($ code);
$ currency_code = "select code
from ". TABLE_CURRENCIES."
where code = '".. zen_db_input ($ code)"' LIMIT 1 ";
$ currency_first = "select code
from ". TABLE_CURRENCIES."
order by value ASC LIMIT 1 ";
$ currency = $ db-> Execute (? ($ getFirstDefault == false) $ currency_code: $ currency_first);
if ($ currency-> RecordCount ()) {
return strtoupper ($ currency-> fields ['code']);
} Else {
return false;
}
}
订阅:
博文 (Atom)





