2

You need to override getAddToCartUrl() function of Magento\Catalog\Block\Product\AbstractProduct. So let's create one Plugin for it. Create di.xml file here in your custom module app/code/Vendor/Module/etc/frontend/di.xml Content for this file is.. <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...


1

After create or update product attribute programmatically (like tier price , etc..) by mistake product has_option set with false value. check in "catalog_product_entity" table. select entity_id, has_options, sku from `catalog_product_entity` where sku = {sky of yourproduct} So update it if has_options value is zero or null. UPDATE `...


1

I also faced the issue. After doing some investigation I found that has_options column has 0 but product have at least one option associated in the product options table. I didn't find a scenario to reproduce but it seems the product options were imported by any third party extension or migrated from an older version of Magento. Re-saving product resolves ...


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