【问题标题】:How do i make custom reordering for products in collection in shopify如何在 shopify 中对收藏的产品进行自定义重新排序
【发布时间】:2012-12-02 23:30:51
【问题描述】:

如何在 shopify 中为收藏的产品进行自定义重新排序。我的意思是例如我有“测试”系列,我想通过使用产品标签重新订购“测试”系列中的产品我的意思是我在“测试”系列中的某些产品中放置了一些标签,例如“firstshowup”,所以当客户点击“测试”时集合客户首先查看具有“firstshowup”标签的产品,然后查看其余产品,所以我在这里尝试的是使用自定义重新排序重新排序,而不是使用畅销书或 allpabetically 或创建日期的类似订单 提前谢谢你们了

【问题讨论】:

    标签: shopify


    【解决方案1】:

    您的收藏将由具有位置属性的Collect objects 组成。假设您使用的是 CustomCollection,您可以通过更新 CustomCollection 来修改收集的位置:http://api.shopify.com/customcollection.html#update

    从示例中,要更新集合,您可以使用:

    PUT /admin/custom_collections/#{id}.json
    

    使用以下有效负载:

    {
      "custom_collection": {
        "body_html": "<p>The best selling ipod ever</p>",
        "handle": "ipods",
        "id": 841564295,
        "published_at": "2008-02-01T19:00:00-05:00",
        "sort_order": "manual",
        "template_suffix": null,
        "title": "IPods",
        "updated_at": "2008-02-01T19:00:00-05:00",
        "image": {
          "created_at": "2012-12-11T12:01:29-05:00",
          "src": "http://cdn.shopify.com/s/files/1/0006/9093/3842/collections/ipod_nano_8gb.jpg?0"
        },
        "collects": [
          {
            "product_id": 921728736,
            "position": 1
          },
          {
            "id": 841564295,
            "position": 2
          }
        ]
      }
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-10-27
      • 1970-01-01
      • 2013-01-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多