How to hide add to cart button for particular products on all page in magento 2

How to hide add to cart button for particular products on all page in magento 2 To hide add to cart button all page using a below plugin: di.xml <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”/lib/internal/Magento/Framework/ObjectManager/etc/config.xsd”>     <type name=”Magento\Catalog\Model\Product”>         <plugin name=”hidebutton” type=”Vendor\Module\Plugin\HideButton” sortOrder=”10″ disabled=”false”  />     </type> </config> HideButton.php <?php namespace Vendor\Module\Plugin; use…

Received email pdf display no name

i have created custom form module that send the email with pdf, attachment sends but in email it shows no name, in image it shows error, My Code………. TransportBuilder.php app/code/Vendor/Module/Magento/Mail/Template <?php namespace Vendor\Module\Magento\Mail\Template; use Magento\Framework\Mail\MessageInterface; use Magento\Framework\Mail\MessageInterfaceFactory; use Magento\Framework\Mail\Template\FactoryInterface; use Magento\Framework\Mail\Template\SenderResolverInterface; use Magento\Framework\Mail\TransportInterfaceFactory; use Magento\Framework\ObjectManagerInterface; use Zend\Mime\Mime; use Zend\Mime\Part as MimePart; use Zend\Mime\PartFactory as MimePartFactory;…

Allow off-canvas dialog to be rendered on the left of the page in Drupal 8

this is my current code to display a custom block off-canvas. $build[‘link’] = [ ‘#title’ => ‘Select Sources’, ‘#type’ => ‘link’, ‘#url’ => Url::fromRoute(‘heritage_ui.sourcesmenu’, [‘textid’ => $textid]), ‘#attributes’ => [ ‘class’ => [‘use-ajax’], ‘data-dialog-type’ => ‘dialog’, ‘data-dialog-renderer’ => ‘off_canvas’, ‘data-dialog-options’ => Json::encode([‘width’ => 400]), ], ‘#attached’ => [ ‘library’ => [ ‘core/drupal.dialog.ajax’, ], ], ];…

How to load a internal page content within div?

I have following code in a basic page on drupal 7 <h2 id=”tabs”>Test Title</h2> <!– Nav tabs –> <ul class=”nav nav-tabs”> <li class=”active”><a href=”content/test” data-toggle=”tab”><i class=”fa fa-home”></i>Test Nav</a></li> </ul> <!– Tab panes –> <div class=”tab-content”> <div class=”tab-pane active” id=”home”> <p>Content of the above internal link should display here.</p> </div> </div> So, when I click “Test…

magento 1.9, how sort products by stock

i have this code $product_model = Mage::getModel(‘catalog/product’)->getCollection() ->setPageSize(5) ->setOrder(‘entity_id’, ‘DESC’) ->addAttributeToFilter(‘attribute_set_id’, array(‘in’ => array(‘4′, ’12’))) ->addAttributeToFilter(‘price’, array(‘gteq’=>80)) ->joinField( ‘qty’, ‘cataloginventory/stock_item’, ‘qty’, ‘product_id=entity_id’, ‘.stock_id=1’, ‘left’ ); $product_model->getSelect()->joinLeft( array(‘_inventory_table’ => $product_model->getTable(‘cataloginventory/stock_item’)), “_inventory_table.product_id = e.entity_id”, array(‘is_in_stock’, 0) ); I want to get all the products that out_of_stock How can this be done in my request? and how can…