我们的使命

助力跨境卖家高效建立全球销售网络

喜报2021年我司获《江苏省国家高新技术企业》认定

分类目录

文章标签

热门推荐

相关咨讯

opencart列表,magento分类页

2022-09-02 10:23:09 - 米境通跨境电商

  
    在进行Magento的相关操作的时候,你可能都想在产品分类页面添加上这一类产品的推荐产品(FeaturedProducts),这类产品一般是销售比较好的,或者是你的利润比较大的产品,那我们应该怎么样添加上这类产品呢?下面是描述如何显示一组推荐产品(FeaturedProduct)。Featured产品需要在后台为产品增加一个Featured属性。当管理员在Featured属性上选择Yes时,该产品就以Block的形式显示在产品列表页。

    步骤1)创建一个”Featured”属性

    进入后台Catalog>Attributes>ManageAttributes>AddNewAttribute.添加一个新的属性

    AttributeProperties

    AttributeIdentifier:featured

    Scope:StoreView

    CatalogInputTypeforStoreOwner:Yes/No

    UniqueValue(notsharedwithotherproducts):No

    ValuesRequired:No

    InputValidationforStoreOwner:None

    ApplyTo:AllProductTypes

    FrontEndProperties

    Useinquicksearch:No

    Useinadvancedsearch:Yes

    ComparableonFront-end:No

    UseInLayeredNavigation(Canbeusedonlywithcataloginputtype‘Dropdown’):No

    VisibleonCatalogPagesonFront-end:Yes

    ManageLabel/Options

    Default:FeaturedProduct

    English:FeaturedProduct

    然后保存,然后去Catalog→Attributes→ManageAttributesSets,把该属性加入到默认属性集。

    步骤2).加一个Block配置到catalog.xml

    打开app/design/frontend/default/default/layout/catalog.xml.我们在默认CategoryLayout标签的productlistblock上方加一个新的Block.差不多在该文件的73行

    Layerout代码

   

   

    …..

   

    联系我们
  • 24H客服
  • 联系电话:16651690460(龙经理)
  • 微信咨询:
南京天遥路联网络科技有限公司,版权所有 Copyright By ©米境通ERP4.0,2015-2025,苏ICP备:苏ICP备15044100号-4, 苏公网安备:32011402011043