随笔分类 -  zencart

update product id category id
摘要:#第一步:#18是分类个数update categories set categories_id = categories_id+18;update categories_description set categories_id = categories_id+18;update products_to_categories set categories_id = categories_id+18;update products set master_categories_id= master_categories_id+18 ;#有子类,1是有子分类的一级目录个数update catego 阅读全文

posted @ 2012-12-05 11:38 haven24 阅读(324) 评论(0) 推荐(0)

zencart Ultimate SEO URLs url里无 product id,category id
摘要:修改.htaccess新增RewriteRule ^(.*)admin\/$ adminair123\/index\.php?%{QUERY_STRING} [L]RewriteRule ^(.*)-p-(.*)$ index\.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L] 替换成:RewriteRule ^(.*)/$ index\.php?main_page=product_info&products_name=$1&%{QUERY_STRING} [L]RewriteRule ^ 阅读全文

posted @ 2012-12-05 11:30 haven24 阅读(477) 评论(0) 推荐(0)

去掉zen cart产品地址伪静态中的产品id的方法
摘要:以前用simple seo url模块 产品地址是这样的http://www.xxx.com/产品名-p-101.html通过下面方法我们改成这样的格式http://www.xxx.com/产品名/1.includes/modules/pages/product_info/header_php.php头部添加if(zen_not_null($_GET['products_name'])){$products_id_query=$db->Execute("select products_id from ".TABLE_PRODUCTS_DESCRIPTI 阅读全文

posted @ 2012-11-28 22:26 haven24 阅读(626) 评论(1) 推荐(0)

网站site map 只显示一级目录和二级目录
摘要:路径\includes\classes\site_map.php if (isset($this->data[$category_id]) && (($this->max_level == '0') || ($this->max_level > $level+1))) { $result .= $this->buildBranch($category_id, $level+1, $category_link . '_'); }换成 if($level<1){ if (isset($this->data[$ 阅读全文

posted @ 2012-11-24 10:20 haven24 阅读(326) 评论(0) 推荐(0)

日语伪静态出不来,sitemap乱码
摘要:class文件里面的 seo.url.php代码如下/////////////////////////////////////////////////////<?php/* +----------------------------------------------------------------------+ | Ultimate SEO URLs For Zen Cart, version 2.101 | +----------------------------------------------------------------------+ | | | Derrived 阅读全文

posted @ 2012-11-19 17:01 haven24 阅读(556) 评论(0) 推荐(0)

Zen Cart Error: Error loading stylesheet: A network error occurred loading an XSLT stylesheet:http://www.abc/includes/templates/abc/css/gss.xl
摘要:If you have upgraded to Zen Cart 1.3.9 and use the sitemap module to create a sitemapindex file then you may be getting the above error. Fix: Delete the old sitemap files(sitemapcategories.xml,sitemapezpages.xml,sitemapindex.xml,sitemapproducts.xml,sitemapreviews.xml) from the root directory. Edit.. 阅读全文

posted @ 2012-11-15 15:51 haven24 阅读(440) 评论(0) 推荐(0)

在zen cart后台订单中添加一张对应的商品图片和键接,在查看订单时就方便多了(转)
摘要:在zen cart后台订单中添加一张对应的商品图片和键接,在查看订单时就方便多了; ======================================== 1.打开文件:admin/orders.php(admin为后台的文件夹) 找到:<td colspan=”2″><?php echoTABLE_HEADING_PRODUCTS; ?></td> 在后台插入: <tdclass="dataTableHeadingContent">Products Images</td> 2.找到:<td val 阅读全文

posted @ 2012-11-14 14:56 haven24 阅读(428) 评论(0) 推荐(0)

图片比例问题
摘要:原因是权限问题 图片不按照比例进行展示解决办法:$image_size = @getimagesize($src);替换成: $image_size = @getimagesize("http://".$_SERVER['HTTP_HOST']."/".$src); 阅读全文

posted @ 2012-11-12 15:43 haven24 阅读(170) 评论(0) 推荐(0)

网站出现无法访问,问题如下图所示
摘要:This is the LxAdmin Default Page for abc.com If you are seeing this page, it means that the Domain has been successfully configured on the machine, but the files has not been uploaded yet. Please contact the adminstrator for the login information..htaccess添加如下代码 DirectoryIndex index.php 阅读全文

posted @ 2012-10-31 11:27 haven24 阅读(370) 评论(0) 推荐(0)

转移zencart网站时,后台出现空白页面
摘要:先开启后台错误输出:admin/includes/extra_configures/enable_error_logging.php@ini_set('display_errors', 0);设为@ini_set('display_errors', 1);错误排除后再设为原来的值如果出现这个session的错误:Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at admi 阅读全文

posted @ 2012-10-31 10:14 haven24 阅读(1494) 评论(0) 推荐(0)

错误 330 (net::ERR_CONTENT_DECODING_FAILED):未知错误解决办法 zencart
摘要:此为从服务器拷贝代码到本地,配置本地环境出现330错误:错误 330 (net::ERR_CONTENT_DECODING_FAILED):未知错误。方法1:打开后台控制面板:Configuration->Enable GZip Compression属性值 设为 0;方法2:打开/includes/init_includes/init_gzip.php找到源代码:if ($_GET['main_page'] != FILENAME_DOWNLOAD && GZIP_LEVEL =='1'&& $ext_zlib_loade 阅读全文

posted @ 2012-10-31 10:14 haven24 阅读(13416) 评论(0) 推荐(0)

145 Table '.whos_online' is marked as crashed
摘要:重新导入-- phpMyAdmin SQL Dump-- version 3.4.11.1-- http://www.phpmyadmin.net---- Host: localhost-- Generation Time: Oct 24, 2012 at 08:13 AM-- Server version: 5.1.65-- PHP Version: 5.2.6SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";SET time_zone = "+00:00";/*!40101 SET @OLD_CHARACTER_SET_CLI 阅读全文

posted @ 2012-10-25 08:03 haven24 阅读(357) 评论(0) 推荐(0)

大图变小图,因为ln
摘要:路径/public_html/includes/functions/html_output.php 大概198行 if (zen_not_null($width) && zen_not_null($height) and file_exists($src)) {file_exists($src)为false。导致图片大小被重置 阅读全文

posted @ 2012-10-24 11:55 haven24 阅读(194) 评论(0) 推荐(0)

后台重复单
摘要:路径www/includes/modules/pages/fec_confirmation/header_php.php 阅读全文

posted @ 2012-10-19 17:19 haven24 阅读(166) 评论(0) 推荐(0)

zc后台order打开时空白,打开报错也没提示
摘要:zc后台order打开时空白,打开报错也没提示后来发现是orders_status的language_id和网站默认的不一致。网站默认的language_id是1,orders_status里的是3, 改成1后,后台order就能显示了做个记录 阅读全文

posted @ 2012-10-10 09:49 haven24 阅读(177) 评论(0) 推荐(0)

本地同步过滤某个目录
摘要:rsync -avze --exclude "images" /home/test /home/bak/这个命令带有e参数后,无法过滤imagesrsync -avz --exclude "images" /home/test /home/bak/ 这个命令没有带e参数后,可以过滤images-a, –archive 归档模式,表示以递归方式传输文件,并保持所有文件属性,等于-rlptgoD-v, –verbose 详细模式输出-z, –compress 对备份的文件在传输时进行压缩处理-e, –rsh=COMMAND 指定使用rsh、ssh方式进行数据 阅读全文

posted @ 2012-10-09 09:20 haven24 阅读(185) 评论(0) 推荐(0)

zen cart模板 在Define Page Editer中怎么添加新页面
摘要:对于zen-cart模板,原文件中保留有page_2.php, page_3.php 和 page_4.php三个文件方便自己定义页面.个人建议先是在这三个文件的基础上改, 出于seo url考虑, 需要把以下相应地方的地方作修改:includes/filenames.phpdefine(‘FILENAME_DEFINE_PAGE_2′, ‘define_page_2′);define(‘FILENAME_DEFINE_PAGE_3′, ‘define_page_3′);define(‘FILENAME_DEFINE_PAGE_4′, ‘define_page_4′);includes/lan 阅读全文

posted @ 2012-09-18 16:35 haven24 阅读(452) 评论(0) 推荐(0)

由于网站数据过大,导致内存不足。终于找到解决办法
摘要:解决办法:清空 seo_cache (TRUNCATE seo_cache)在/includes/classes/seo.install.php中的前面加入链接数据库代码如下:$server = 'localhost';$link = mysql_connect($server, 'haven', '');$result = mysql_select_db('haven')or die("haven database does not exist");$sql="TRUNCATE seo_cache& 阅读全文

posted @ 2011-08-07 14:07 haven24 阅读(434) 评论(0) 推荐(0)

Step-by-step guide to installing the Automatic Image Slider w/ CSS & jQuery from Soh Tanaka in Zen Cart
摘要:http://www.kerrinhardy.com/2011/02/10/step-by-step-guide-to-installing-the-automatic-image-slider-w-css-jquery-from-soh-tanaka-in-zen-cart/Step 1 – Prepare imagesThe first step is to prepare the images you want to use in the slider. The images should all be the same dimensions (exactly) and optimise 阅读全文

posted @ 2011-03-18 16:23 haven24 阅读(358) 评论(0) 推荐(0)

flash image silde show
摘要:http://www.ruochigroup.com/main/2008/03/19/bcastr-40/插入代码直接写入参数<object type="application/x-shockwave-flash" data="bcastr4.swf?xml= <data> <channel> <item> <link>http://www.ruochi.com</link> <image>images/image1.jpg</image> <title>Bell 阅读全文

posted @ 2011-03-17 17:19 haven24 阅读(265) 评论(0) 推荐(0)

导航