zen-cart的一些总结

得到放大图地址,质量可以在后台设置.txt
<?php
/**
 * 得到缩略图的图片地址
 * var_dump(get_ih_src($random_featured_product->fields['products_image']));
 * @param unknown_type $image 原图片的地址
 * @param unknown_type $width 默认是大图
 * @param unknown_type $height
 */
    function get_ih_src($image, $width = LARGE_IMAGE_MAX_WIDTH, $height = LARGE_IMAGE_MAX_HEIGHT) {
        $img_div = zen_image(DIR_WS_IMAGES . $image, '', $width, $height);
        $t_match = preg_match('/src="([^"]*)"/', $img_div, $new_img_array);
        $new_img = $t_match ? $new_img_array[1] : '';

        return $new_img;
    }
?>


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

E:\XAMPP\htdocs\includes
product_listing.php:all listing输出(包括多选框)

E:\xampp\htdocs\includes\modules
meta_tags.php  所有标签控制

E:\xampp\htdocs\includes
database_tables.php 数据库表名重定义

E:\xampp\htdocs\includes\templates\lite_blue\common
tpl_header.php 显示头部导航

\includes\templates\lite_blue\common
tpl_main_page.php 首页版面布局(内容)

includes\templates\template_default\templates
tpl_index_categories.php   首页版面内容


\includes\templates\template_default\templates
tpl_index_product_list.php 产品分类页

\includes\modules
product_listing.php 显示产品列表

\includes\templates\lite_blue\templates
tpl_product_info_display.php 产品详细页

产品详细页数据调用程序
E:\XAMPP\htdocs\includes\modules\pages\product_info
main_template_vars.php

\includes\languages\english 
 meta_tags.php 定义各种页面的标签

addd13798\includes\modules\product
collect_info.php    添加(修改)产品页
collect_info_metatags.php   添加(修改)网页标签页

\includes\languages\lite_blue
english.php   定义了程序的所有常量

/includes/languages/english/html_includes/define_main_page.php
自定义页

E:\XAMPP\phpMyAdmin\
tbl_change.php  更改批量修改Keywords高度



tpl_main_page.php
<?php
 /**
  *  displays links sideboxe on home page
  */
   if ($this_is_home_page) {
     require(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/define_bottom_links.php');
    }
?>

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

1、语言包文件

box\boxt_extrabox\news_catalog_dhtml.php里添加菜单项

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

概念西瓜

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值