Posted in Wordpress, Zen-cart on 03/10/2010 03:37 上午 by Marts
Zen-cart 有个WOZ的插件,作用就是调用Wordpress 的文章,将这个作为新闻系统来用。
其实,通过Wordpress自带的函数调用,完全可以达到同样的作用,下面介绍三种方法,第一种是调用最新的文章;第二种是随机调用Blog文章;第三种是调用最新留言。
首先,把WordPress安装到zen-cart一个子目录里,设置好固定连接等
一、调用最新文章
在合适的地方加入下面两行代码,一般会放在产品页面(/includes/templates/你使用的模板文件名/templates/tpl_product_info_display.php
<?php require(‘./wordpress所在目录/wp-blog-header.php’); ?> 这行调用WordPress自带函数,目录地址要随着WordPress安装目录变化而变化.如果你的Zen-cart不是根目录,那么前面就要打两个.['../wordpress所在目录/wp-blog-header.php']
<?php get_archives(‘postbypost’, 10); ?> 这里的10指调用的最新文章数量 Read the rest of this entry »
Incoming search terms:
- ZEN CART WORDPRESS
- zencart wordpress
- wordpress文章调用
- wordpress zen cart
- zencart 调用wordpress
- zencart 调用wordpress 最新文章
- zencart 添加文章
- zencart wordpress调用
- zencart wordpress插件
- zencart 调用
Posted in Zen-cart on 02/23/2010 09:19 下午 by Marts
Quick updates是个非常有用的插件,可以快速更改产品信息,但是我最喜欢的是他的复制功能。毕竟对于产品站来讲,很多产品的信息相差不大,所以完全可以批量复制后再作些小的修改就可以了。默认的一次最多可以复制10个。一定有象我一样的菜鸟希望一次复制更多,100个,500个,10000个…… Read the rest of this entry »
Posted in Zen-cart on 02/23/2010 06:33 下午 by Marts
此模板默认目录列表页的排序是按products_id,现在想改为按更新时间排。
感谢Radnows,感谢Jack,感谢MTV,CCTV ^_^ 问题圆满解决!
附完整步聚:
1.默认default:的 sql改为order by p.products_date_added DESC ,原来case5改为$product_sort = ” order by p.products_ordered DESC”; {文件地址:\includes\index_filters\default_filter.php}
2.修改product_listing.php的array(‘Bestselling’,'Item Name’,'Price(Low to high)’,'Price(High to low)’,'New Arrival’); 为
$nsort = array(‘New Arrival’,'Item Name’,'Price(Low to high)’,'Price(High to low)’,'Bestselling’); {文件地址:\includes\modules\product_listing.php} Read the rest of this entry »
Incoming search terms:
- Zen Cart lightinthebox
- zencart 产品排序
- zen cart 产品按更新日期排列
- zen cart 产品排序
- lightinthebox Sorted By: new arrival
- zencart 排序功能
- ZENCART 排序
- ZenCart 产品列表排序
- zen cart 目录产品按时间排序
- lightinthebox产品评论修改
Posted in Zen-cart on 02/05/2010 09:21 下午 by Marts
把WordPress安装到zen-cart一个子目录里吧,设置好固定连接等
这个文件/includes/templates/template_default/templates/tpl_product_info_display.php在合适的地方加入下面两行代码
<?php require(‘../wordpress所在目录/wp-blog-header.php’); ?> 这行调用WordPress自带函数,目录地址要随着WordPress安装目录变化而变化
<?php get_archives(‘postbypost’, 10); ?> 这里的10指调用的最新文章数量
Posted in Zen-cart on 12/13/2009 09:48 上午 by Marts
首先说明的是,这里只是说明复制网站模板的理论,用于学习用途,复制并使用未经授权的模板是非法的。
第一次写这类说明,没有经验,欢迎大家指正、补充。
这里以zen cart或者osc的模板为例,其他的模板也是同样的方法。 Read the rest of this entry »
Incoming search terms:
Posted in Zen-cart on 12/13/2009 08:27 上午 by Marts
在网站的根目录里设置一个以.htaccess的htaccess文件
然后,在文件里
随便哪一个地方,不过,尽量不要断开其他的语句(如果有的话)
而且在修改的时候,要先备份原来的文件!
输入:
order deny,allow {这些语句要在英文输入法下输入,尤其是那个逗号}
allow from 192.168.0.1 {这一行是允许访问的IP}
allow from 192.168.0.2/24 {这一行是允许访问的IP段}
allow from 192.168.0.3 {这一行是允许访问的IP}
deny from 192.168.0.4/24 {这一行是禁止访问的IP段}
如何屏蔽某个国家、地区的用户访问网站。下面这个网站,可以选择生成.htaccess文件,上传到您的网站后,就能屏蔽某个国家、地区的用户了http://www.blockacountry.com/
Incoming search terms:
- zencart禁用ip
- htaccess 只允许某个ip访问
- 禁止国内ip zencart
- zencart网站如何禁止ip段
- zencart 如何限制具体某ip访问
- zen cart设置禁止IP
- zen cart如何限制特定的IP访问
- zen cart 限制国内ip访问
- zen cart 阻止Ip
- zen cart 禁掉某个ip访问