magento循环如何控制从第二个产片开始显示出来

 我来答
匿名用户
2015-01-07
展开全部
magento中可以方便的设置前台产品的排序方式,我们可以设置sotr by为price,name,best value及其他一些attribute,以满足排序要求。magento默认的是Best Value,那到底什么是Best Value呢?

在官方手册上有么两段解释 version 1.7:
page 75./85. “Product Listing Sort By: The products are sorted, by default, by the selected attribute. The Best Value products are featured products as determined by the store administrator; for more information, see “Creating Categories,” page 83. The customer can select from the other options on a per-page basis. You can configure attributes to be used for sorting using the Used for Sorting in Product Listing setting of an attribute. For details, see “Managing Product Attributes,” page 92.”

page 88./98. “3. In the Position column, specify a whole number that indicates the order in which the product is listed when the products are sorted by Best Value. The product with a Position value of 1 is listed first, 2 is listed second, and so on. If more than one product has the same value for Position, the product with the lowest (that is, closest to 1) ID number is listed first.”

以管理员进入后台 (Catalog/Manage Categories),选择“Category Products” 这个tab,我们能看到这个分类下的所有产品,你会发现最后一个字段position,其实Best Value就是它决定的,position的值是一个整数,值是1的产品比值是2的产品优先显示,以此类推;如果多个产品的position相同,按产品ID由小到大优先显示,即product id接近1的产品先显示。
本回答被提问者采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式