Check for not NULL not working in meta query

My code: if ($sri) { $sri = intval($sri); $args = [ ‘post_type’ => ‘notification’, ‘numberposts’ => -1, ‘meta_query’ => [ ‘relation’ => ‘AND’, [ ‘key’ => ‘send_at’, ‘value’ => Ut::getMysqlTimestamp(‘now’), ‘compare’ => ‘<=’, ], // array( // ‘key’ => ‘was_sent’, // ‘value’ => ‘1’, // ‘compare’ => ‘=’, // ), [ ‘key’ => ‘related_post_id’, ‘value’…

Magento2 – How to get Product Id in FinalPriceBox Plugin

How to get Product Id in FinalPriceBox Plugin in magento 2 Using FinalPriceBox Plugin to hide price in all page how to get a product id within this plugin. /app/code/Vendor/Module/etc/di.xml <type name=”Magento\Catalog\Pricing\Render\FinalPriceBox”> <plugin name=”vendor_module_finalpricebox” type=”Vendor\Module\Plugin\FinalPriceBox”/> </type> /app/code/Vendor/Module/Plugin/FinalPriceBox.php <?php namespace Vendor\Module\Plugin; use Vendor\Module\Block\Button; use Vendor\Module\Helper\HidePrice; use Magento\Catalog\Pricing\Render\FinalPriceBox as FinalPriceBoxRenderer; use Magento\Framework\App\Config\ScopeConfigInterface; use Magento\Store\Model\ScopeInterface; use function strstr;…

how to send data to ajax from controller

here is my phtml file check_delivery.phtml <script> require([ ‘jquery’, ‘mage/mage’ ], function ($) { var dataForm = $(‘#check-delivery-form’); dataForm.mage(‘validation’, {}); var dataFormMessage = $(‘#check-delivery-form .message’); dataFormMessage.removeClass(‘success’).removeClass(‘error’).hide(); $(‘.action-check-delivery’).on(‘click’,function () { var formData = new FormData(); formData.append(‘postcode’, $(‘#check-delivery-form input[name=”postcode”]’).val()); $.ajax({ url: ‘<?php echo $this->getUrl(‘checkDelivery/postcode/check’,[‘id’=> $product->getId()]) ?>’, data: formData, processData: false, contentType: false, showLoader: true, type: ‘POST’, dataType:…

Magento2 – Added footer reference block in default.xml Now want to show it

<referenceBlock name=”footer_links_cms”> <block class=”Magento\Framework\View\Element\Html\Link\Current” name=”about-link”> <arguments> <argument name=”label” xsi:type=”string” translate=”true”>Returns and exchange</argument> <argument name=”path” xsi:type=”string”>Return and exchange</argument> </arguments> </block> <block class=”Magento\Framework\View\Element\Html\Link\Current” name=”career-link”> <arguments> <argument name=”label” xsi:type=”string” translate=”true”>Shipping</argument> <argument name=”path” xsi:type=”string”>Shipping</argument> </arguments> </block> <block class=”Magento\Framework\View\Element\Html\Link\Current” name=”terms-link”> <arguments> <argument name=”label” xsi:type=”string” translate=”true”>Terms and Conditions</argument> <argument name=”path” xsi:type=”string”>Terms and Conditions</argument> </arguments> </block> <block class=”Magento\Framework\View\Element\Html\Link\Current” name=”terms-link”> <arguments> <argument name=”label”…

Check for not NULL not working in meta query

My code: if ($sri) { $sri = intval($sri); $args = [ ‘post_type’ => ‘notification’, ‘numberposts’ => -1, ‘meta_query’ => [ ‘relation’ => ‘AND’, [ ‘key’ => ‘send_at’, ‘value’ => Ut::getMysqlTimestamp(‘now’), ‘compare’ => ‘<=’, ], // array( // ‘key’ => ‘was_sent’, // ‘value’ => ‘1’, // ‘compare’ => ‘=’, // ), [ ‘key’ => ‘related_post_id’, ‘value’…