You need to allow Backorders Stores -> Configuration -> Catalog -> Inventory Under Product Stock Options Backorders -> Allow Qty Below 0 The Product will now need to be set to "In stock" for it to show add to cart buttons


You can use a simple plugin: app/code/MageWorx/DisableFreeShipping/etc/di.xml <?xml version="1.0"?> <!-- /** * Copyright © 2018 MageWorx. All rights reserved. * See LICENSE.txt for license details. */ --> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/...


According to your question you need to hide free shipping method if 2nd value of postcode is 0, you can achieve it using below. app/code/VENDOR/MODULE/etc/di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <...

Only top voted, non community-wiki answers of a minimum length are eligible