How can we add hidden product to cart ?

quicki
Excursionist
19 2 7

I am building a donation app which automatically create product in store and on cart page by checking check box product will be added to cart. Right now if i set product to hidden then on checkout page it gives out of stock error. How can i avoid that or any work around?

My Requirement: create hidden product on store using API that means product shouldn't be visible in any collection or product list but on cart page by selecting checkbox it will be added to cart and then checkout without " out of stock" error. 

 

Is there any specific status should i add in Product Creation API? Please let me know if anyone have any idea. Thanks 

0 Likes