- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2020
03:47 AM
07-31-2020
03:47 AM
Place order for disabled product
I want to create an order(programmatically) for a product that is disabled in Magento 2.3.4-p2 from the admin section.
I am getting the following error:
Product that you are trying to add is not available.
Can anyone help me? How can I place an order for the disabled product?
Thanks in advance.
Labels:
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2020
04:15 AM
07-31-2020
04:15 AM
Re: Place order for disabled product
Hello @dragon
for a disabled product, you can not able to do that.
But you may change product visibility nonvisible and enable product so it will work for you
Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2020
06:16 PM
07-31-2020
06:16 PM
Re: Place order for disabled product
Hi @Sunil Patel
Thanks for your reply. I understand that default Magento does not allow to place order of disabled product. But is there any hook or any customisation through which we can place order for disabled product.