shopify

Shopify: How to make new products hidden by default?


I have a shopify site that is hooked up with Lightspeed via MerchantOS. I need new products added via MerchantOS to be hidden upon sync/creation. All help is appreciated.


Solution

  • The Shopify product creation via API allows you to define the product visiblity (published / hidden). You should dig into MerchantOS to make sure when doing a POST to create a product at your Shopify store, it has the following property:

    "published": false
    

    Create a new, but unpublished product:

    POST /admin/products.json
    {
      "product": {
        "title": "Burton Custom Freestlye 151",
        "body_html": "<strong>Good snowboard!<\/strong>",
        "vendor": "Burton",
        "product_type": "Snowboard",
        "published": false
      }
    }