http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=760
zencart按照属性分类
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=329
zencart问答插件
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=760
zencart按照属性分类
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=329
zencart问答插件
<a href=”<?php echo zen_href_link(zen_get_info_page($_GET['products_id']), zen_get_all_get_params(array(‘action’))); ?>”>页面标题</a>
记录下
User-agent: *
Disallow: /cache/
Disallow: /contrib/
Disallow: /docs/
Disallow: /extras/
Disallow: /htmlarea/
Disallow: /stats/
Disallow: /sitemap/
Disallow: /graphics/
Disallow: /login.html
Disallow: /privacy.html
Disallow: /conditions.html
Disallow: /contact_us.html
Disallow: /gv_faq.html
Disallow: /discount_coupon.html
Disallow: /unsubscribe.html
Disallow: /shopping_cart.html
Disallow: /ask_a_question.html
Disallow: /popup_image_additional.html
Disallow: /product_reviews_write.html
Disallow: /tell_a_friend.html
Disallow: /pages-popup_image.html?
Disallow: /popup_image_additional.html?
Disallow: /login.html
Disallow: /index.php?main_page=shippinginfo
Disallow: /index.php?main_page=privacy
Disallow: /index.php?main_page=conditions
Disallow: /index.php?main_page=unsubscribe
Disallow: //index.php?main_page=login
Disallow: /index.php?main_page=product_reviews_write
Disallow: /index.php?main_page=featured_products
Disallow: /index.php?main_page=products_new
Disallow: /index.php?main_page=popup_image
Disallow: /index.php?main_page=product_info&cPath
Disallow: /index.php?main_page=product_info&products_id
Disallow: /index.php?main_page=tell_a_friend
Disallow: /*sort=
User-agent: Googlebot-Image
Disallow: /
我写了一个,别人又添油加醋(无贬义),直接复制过来。呵呵。
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指调用的最新文章数量
二、随机调用Blog文章
随机调用4篇Blog文章
<?php require(‘./wordpress所在目录/wp-blog-header.php’); ?>
<?php
$rand_posts = get_posts(‘numberposts=4&orderby=rand’);
foreach( $rand_posts as $post ) :
?>
<li><a href=”<?php the_permalink(); ?>”><?php the_title(); ?></a></li>
<?php endforeach; ?>
清空商品商品、属性、分类
TRUNCATE TABLE categories;
TRUNCATE TABLE categories_description;
# 清空商品和属性
TRUNCATE TABLE media_clips;
TRUNCATE TABLE media_manager;
TRUNCATE TABLE media_to_products;
TRUNCATE TABLE media_types;
TRUNCATE TABLE music_genre;
TRUNCATE TABLE product_music_extra;
TRUNCATE TABLE product_types_to_category;
TRUNCATE TABLE products;
TRUNCATE TABLE products_attributes;
TRUNCATE TABLE products_attributes_download;
TRUNCATE TABLE products_description;
TRUNCATE TABLE products_discount_quantity;
TRUNCATE TABLE products_notifications;
TRUNCATE TABLE products_options;
TRUNCATE TABLE products_options_types;
TRUNCATE TABLE products_options_values;
TRUNCATE TABLE products_options_values_to_products_options;
TRUNCATE TABLE products_to_categories;
TRUNCATE TABLE record_artists;
TRUNCATE TABLE record_artists_info;
TRUNCATE TABLE record_company;
TRUNCATE TABLE record_company_info;
# 清空客户评论
TRUNCATE TABLE reviews;
TRUNCATE TABLE reviews_description;
# 清空推荐商品
TRUNCATE TABLE featured;
# 清空厂家及资料
TRUNCATE TABLE manufacturers;
TRUNCATE TABLE manufacturers_info;
# 清空团体价格
TRUNCATE TABLE group_pricing;
# 清空促销商品
TRUNCATE TABLE salemaker_sales;
# 清空特价商品
TRUNCATE TABLE specials;