This is my first attempt at anything like a contribution for zen cart,
and while it is working great for me (three columns of items with fairly
big thumbnails and no display of description) it may not work for you at
all, but ought to give you a jumping off point for making some
additional quick tweaks on your own. Furthermore, it has mostly been
hacked from the post by pjb923 on 19th April 2007,
https://www.zen-cart.com/forum/showthread.php?t=59938 but the forum also
shows many people still struggling with it (as I have) and likewise
probably searching contributions in vain as well.
These two files get placed in your overlay folder:
includes/templates/CUSTOM/templates/tpl_modules_products_all_listing.php
includes/templates/CUSTOM/templates/tpl_modules_products_new_listing.php
where CUSTOM is the name of your template.
They are hardcoded to three columns near the last line of the file;
$row_counter==3 actually counts three columns of items so if
you have tiny thumbs you might like to change this to a higher number
and change the width in the style applied to the class .new_products
when you add it to your stylesheet.
You will also need to make a tiny edit to the header files for these two
pages, includes/modules/pages/products_all/header_php.php
includes/modules/pages/products_new/header_php.php In the raw query
string, find "m.manufacturers_name" and add ", m.manufacturers_id"
after it to capture the data this mod needs for the manufacturer link.
Also I added these definitions to my stylesheet,
includes/templates/CUSTOM/css/stylesheet.css
h3.itemTitle {
margin-top: 0.1em;
margin-bottom: 0.1em;
}
.new_products {
float: left;
width: 32.5%;
text-align: center;
padding: 3px 1px;
}
I also found after many hours of trying to read code that the sequence
of the items shown and spaces after each are managed the zen way, in the
admin pages Configuration -> New Listing and Configuration -> All
Listing. I left a single space after all but the last item, and have
disabled the space after the item name since this is now tagged as an h3
header. The last item is to visit Configuration -> Maximum Values and
set New Products Listing- Number Per Page and Maximum Display of
Products All Page to some attractive multiple of your columns. I used 21.
zencart 的新进商品和所有商品列表多栏显示
4星 · 超过85%的资源 需积分: 32 9 浏览量
2011-12-21
09:19:25
上传
评论
收藏 7KB ZIP 举报
thinky2008
- 粉丝: 2
- 资源: 1
最新资源
- mybatis动态sql及其JAVA示例
- 微软常用运行库 游戏运行库 VC++各个版本
- 微信小程序开发教程.pptx
- MyBatis动态SQL是一种强大的特性,它允许我们在SQL语句中根据条件动态地添加或删除某些部分,从而实现更加灵活和高效的数据
- 锐捷网络认证中心网络管理.pdf
- MyBatis动态SQL是一种强大的特性,它允许我们在SQL语句中根据条件动态地添加或删除某些部分,从而实现更加灵活和高效的数据
- SD8233LF是一款用于单按键触摸及接近感应开关,其用途是替代传统的机械型开关芯片IC
- 基于YOLOv5的烟雾火焰检测算法研究
- 基于STM32的联合调试侦听设备解决方案原理图PCB源文件调试工具视频(大赛作品)
- MyBatis动态SQL是一种强大的特性,它允许我们在SQL语句中根据条件动态地添加或删除某些部分,从而实现更加灵活和高效的数据
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈