1

$hasRequired = false; $options = $_product->getOptions(); if (is_array($options)) { foreach ($_product->getOptions() as $option) { if ($option->getIsRequire()) { $hasRequired = true; break; } } } now check the value of $hasRequired; ($_product - is the product instance for which you are checking)


1

Please try below code create Event: Vendor\Addtocart\etc\events.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd"> <event name="sales_model_service_quote_submit_before"> <observer name="quote_to_order" instance=...


1

You need do only a test about giving sky something like this: /** * Product view template * * @see Mage_Catalog_Block_Product_View * @see Mage_Review_Block_Product_View */ ?> <?php $_product = $this->getProduct(); ?> <?php if($_product->getSku() == 66): ?> <b><?php echo $this->__('5 To 15 Business Days') ?></b&...


1

You are using wrong table join in your query. The name details for products are stored in catalog_product_entity_varchar table. First, make sure you have the correct attribute_id (75) value for name attribute. Use below query to achieve your requirements. UPDATE `catalog_product_entity_varchar` as pt LEFT JOIN `catalog_product_entity` as p ON p.`entity_id` ...


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