在zen cart后台订单中添加一张对应的商品图片和键接,在查看订单时就方便多了

在zen cart后台订单中添加一张对应的商品图片和键接,在查看订单时就方便多了;

========================================

 

1.打开文件:admin/orders.php    (admin为后台的文件夹)
找到:<td colspan=”2″><?php echo TABLE_HEADING_PRODUCTS; ?></td>
在后台插入:

<td class="dataTableHeadingContent">Products Images</td>

2.找到:<td valign=”top” align=”right”>’ . $order->products[$i][‘qty’] . ‘&nbsp;x</td>’ . “\n” .
‘            <td valign=”top”>’ . $order->products[$i][‘name’];

修改为:

<td valign=”top” align=”right”>’ . $order->products[$i][‘qty’] . ‘&nbsp;x</td>’ . “\n” .
‘            <td valign=”top”>’ .'<a href=”‘ .zen_catalog_href_link(FILENAME_PRODUCT_INFO, ‘products_id=’ . $order->products[$i][‘id’]) . ‘ “target=”_blank”>’ . $order->products[$i][‘name’]. ‘</a>’. “\n” .
‘            <td valign=”top” width=”90″>’.zen_image(DIR_WS_CATALOG.DIR_WS_IMAGES . zen_get_products_image($order->products[$i][‘id’]),”,’60’,’60’) .'</td>’;
3.找到:<td align=”right” colspan=”8″><table border=”0″ cellspacing=”0″ cellpadding=”2″>

colspan=”8″改为9

=============================

源码:ZenCart后台订单详细页显示产品图片和链接

源码:ZenCart后台订单详细页显示产品图片和链接

原文地址:http://www.ximumu.cn/zencart/356.html

zencart 购买不同数量不同属性的产品插件

先来看下zencart批发插件的效果图:

201208150954538766

 

zencart 购买不同数量不同属性的产品插件下载地址zencart批发插件

 

安装步骤如下:

1.压缩文件包,将文件里边的YOUR_TEMPLATE改成你自己的模板名称

2.注意includes\templates\YOUR_TEMPLATE\templates\tpl_product_info_display.php文件,这个不要直接覆盖,找到下面的代码块:

<!–bof Add to Cart Box –>

<?php
if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == ”) {

………………………………

…………………………………

<?php } // display qty and button ?>
<?php } // CUSTOMERS_APPROVAL == 3 ?>
<!–eof Add to Cart Box–>

替换到你的模板下的tpl_product_info_display.php里头对应的<!–bof Add to Cart Box –>…<!–eof Add to Cart Box–>就行.弄好这个文件之后,把includes下的其它文件都上传好。

3.进入前台,进入属性管理,你可以看到多了一个属性Grid了,选择即可

201208150956401457

原文地址:http://www.ximumu.cn/zencart/377.html

转帖:zen-cart在后台直接修改主页的title,keywords和description

zen-cart在后台直接修改主页的title,keywords和description

上代码:

 

1、后台—》工具—》安装SQL脚本
执行以下SQL:
==================================================================
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function)

VALUES
(NULL, ‘Homepage title’, ‘HOME_PAGE_TITLE’, ‘你的网站标题title’, ‘set the home page title’, 1,210, NOW(), NOW(), NULL, NULL),
(NULL, ‘Homepage keywords’, ‘HOME_PAGE_META_KEYWORDS’, ‘你的关键词 keywords’, ‘set the home page keywords’, 1,211, NOW(), NOW(), NULL, NULL),
(NULL, ‘Homepage description’, ‘HOME_PAGE_META_DESCRIPTION’, ‘l你的网站描述 description’, ‘set the home page description’, 1,212, NOW(), NOW(), NULL, NULL);

 

========================================================================

 

2、修改includes\languages\english\meta_tags.php的内容:
======================================
// Home Page Only:
define(‘HOME_PAGE_META_DESCRIPTION’, HOME_PAGE_META_DESCRIPTION);
define(‘HOME_PAGE_META_KEYWORDS’, HOME_PAGE_META_KEYWORDS);
define(‘HOME_PAGE_TITLE’, HOME_PAGE_TITLE);
// NOTE: If HOME_PAGE_TITLE is left blank (default) then TITLE and SITE_TAGLINE will be used instead.
define(‘HOME_PAGE_TITLE’, HOME_PAGE_TITLE); // usually best left blank
========================================

3.在后台的,Configuration>My Store 进行修改。

原文抵制:http://www.ximumu.cn/zencart/374.html

(转帖)zencart促销倒计时(zencart特价倒计时插件)

zencart促销倒计时(zencart特价倒计时插件)

先上一个效果图下看一下:

201207312227032746

1。找到:includes\functions\functions_prices.php 插入以下代码:

======================================================

//get sale or special price expires time
function zen_get_promotion_price_time($products_id){
global $db;
//specials
$sql_expires_date = “select expires_date from ” . TABLE_SPECIALS . ” where products_id = ” . $products_id . ” and status =1″ ;
//echo $sql_expires_date;
$expires_date = $db->Execute($sql_expires_date);
if($expires_date ->RecordCount() > 0){
$specials_date_end = $expires_date->fields[‘expires_date’];
}
$sql_products_mcate = “select master_categories_id from “. TABLE_PRODUCTS . ” where products_id = “. (int)$products_id ;
//echo $sql_products_mcate;
$procuts_mcate = $db->Execute($sql_products_mcate);
$sql_sale1 = “select sale_specials_condition, sale_date_end from ” . TABLE_SALEMAKER_SALES . ” where sale_categories_all like ‘%,” . $procuts_mcate->fields[‘master_categories_id’] . “,%’ and sale_status = 1 order by sale_id limit 1″;
//echo $sql_sale;
$sale1 = $db->Execute($sql_sale1);
if($sale1 -> RecordCount() > 0 ){
if($sale1->fields[‘sale_specials_condition’] == 1){
if(!$specials_date_end){
return $sale1->fields[‘sale_date_end’];
}else{
return $specials_date_end;
}
}else{
return $sale1->fields[‘sale_date_end’];
}
}else{
return $specials_date_end;
}
}

======================================================

2。includes\templates\你的模板名\templates\tpl_product_info_display.php  在你想要显示的地方插入以下的代码

========================================================

<?php
$end_time = zen_get_promotion_price_time((int)$_GET[‘products_id’]). ” 00:00:00″;
$time_now = date(‘Y-m-d H:i:s’); //
$left_time = strtotime($end_time)- strtotime($time_now);
// echo $time_now.” ” . $end_time;
?>
<script language=”javascript” type=”text/javascript”>
var runTime = 0;
function CountDown(){
var nMs = <?php echo $left_time ?> * 1000 – runTime * 1000;
var nD = Math.floor(nMs/(1000*60*60*24));
var nH = Math.floor(nMs/(1000*60*60))%24;
var nM = Math.floor(nMs/(1000*60))%60;
var nS = Math.floor(nMs/1000)%60
if(nH<10){ nH = “0”+nH;}
if(nM<10){ nM = “0”+nM;}
if(nS<10){ nS = “0”+nS;}
//alert(nS);
//document.getElementById(‘productPrices’).innerHTML = nH+”:”+nM+”:”+nS+” left”;
$(“#productPrices #time1″).html( ((nD > 0) ? nD+((nD>1)? ” Days “:” Day “) :””) + nH+”:”+nM+”:”+nS+” left”);
runTime++;
}
window.onload = CountDown;
setInterval(“CountDown()”,1000);
</script>

========================================================

3.在CSS文件中加入下面的代码:

 

====================================================

#productPrices .off{
background: url(“../images/time.jpg”) no-repeat scroll 0 0 transparent;
color: #FFFFFF;
float: left;
height: 31px;
line-height: 31px;
padding-left: 52px;
width: 71px;
}
#productPrices .productPriceDiscount {
background: url(“../images/tbg.jpg”) no-repeat scroll right top transparent;
height: 31px;
margin-bottom: 10px;
margin-top:5px;
position: relative;
width: 275px;
font-size:12px;
}
#productPrices .off2 {
color: #FFFFFF;
display: block;
float: left;
height: 35px;
line-height: 30px;
text-align: center;
width: 145px;
}

====================================================

4。includes\templates\你的模板名\templates\tpl_product_info_display.php  在你想要显示的地方插入以下的代码

 

===================================================

<h2 id=”productPrices”>
<span>$195.14 </span>
<span>$99.00</span>
<div id=”timer_1″>
<div>49% off</div>
<div id=”time1″>12:46:21 left</div>
</div>
</h2>

===================================================

5。在includes\templates\你的模板\images   放入下面的两张背影图

201207312235070818

201207312235182016

=================这是一个分隔线=========================

 

如有需要上面的效果,却又做不出来的,请联系我QQ:1853880795(付费)

 

本文章转自http://www.ximumu.cn/zencart/375.html

本人不负责 以上交易带来的任何问题。谢谢。

If you are seeing this page, it means that web has not been configured for this domain on this server.

新版的kloxo的小问题

在添加域名的时候,一直未能生效,一直出现如下的一段英文

If you are seeing this page, it means that web has not been configured for this domain on this server.

This could be due to the following causes:

 

  • Kloxo has not restarted the web server yet after you added the domain. Please wait for the web server to restart.
  • The domain is pointing to the wrong Kloxo server. Ping the domain and make sure that the IP matches one of the IPaddress seen in admin home -> ipaddresses 
  • If you are seeing this page when you try to access an IP like http://192.168.1.1, then that means that the IP has not yet been mapped to a domain. Go to client home -> ipaddresses -> ipaddress home -> domain config and map an IP to a domain.
  • Once you map an IP to a domain, then you have to make sure that the domain pings back to the same IP. Otherwise, if you try to access the domain, you will get this page. So IP -> domain.com should mean that domain.com pings to the same IP.

解决方法如下:

admin登录kloxo后台

如图的不问切换apache 和lighttpd

最后切回到apache。一切OK。

推荐电影— 铁拳男人 Cinderella Man

铁拳男人的剧情简介   · · · · · ·

BT种子地址:Cinderella Man下载

中国第一轮抵制日货初战告捷

 中国第一轮抵制日货初战告捷,丰田8月份在中国市场销量为75300辆,同比下跌15.1%。为了给日本正在谋求的贸易战略再受打击,提议:从9月12日开始,为期一年的拒绝日货活动正式启动。在这个时候,你如果是中国人,如果你已经决定了购买日货的(尤其是汽车和索尼、佳能、尼康电器设备),请再花点时间考虑一下,能不能购买别的品牌,中国人的骨气需要你的支持,在抵制日货的同时,请你冷静,不要破坏已经购买的、属于中国人所有的日货。谢谢!如果你看到了这条消息,不管多忙,请转发到你的另外群,谢谢!
全国保钓群★甘肃分群:116340547
内蒙分群:137800162
新疆分群:137800249
宁夏分群:151989959
西藏分群:70087752
香港分群:106013594
澳门分群:106013640
台湾分群:106013551
湖北分群:120808210
江西分群:120808132
青海分群:120808276
海南分群:33151367
山西分群:142697387
湖南分群:153997333
上海分群:153997431
广东分群:153997547
浙江分群:101577863
陕西分群:134163701
贵州分群:158971887
安徽分群:158971914
广西分群:157309421
北京分群:90535002
上海分群:114891359
天津分群:120557814
重庆分群:59686683
江苏分群:164275950
云南分群:164276173
福建分群:147673262
四川分群:151897176
河北分群:147764644
山东分群:103201047
河南分群:48185039
黑龙江分群:220252223
吉林分群:12976881
辽宁分群:204077875

保钓行动从我做起,请大家推广全国保钓群