Shopify API: Creating a Hidden Product Option

Is it possible to create an unpublished / hidden version of the product through the Shopify API? I know that you can create a hidden product by specifying product['published'] = false in the POST request, but I just want to create a hidden option that can be added to the cart.

I am trying to create a sale item that is accessible to only one user with a specific cart. I can create a product variant through node.js and I can use AJAX to actually add the product to the cart on the client side, but I will never have access to the storeโ€™s toolbar, so I canโ€™t mask product variants through collections, related variants and etc.

Any help is much appreciated!

+4
source share
1 answer

It is not possible to hide a specific option at the API level, but you can do this using Liquid or client code.

See how http://apps.shopify.com/quantity-breaks implements this and you should have a better idea.

+3
source

All Articles