Want to Display “No Results Page” When There Are No Results for a Particular Month

I have very minimal experience with PHP and am looking for a way to redirect to a “No Results” page when a date is selected with no results. Currently, when you select a date with no results, all results display. Here is the code: <?php ?> <select name=”date” class=”dropdown-select”> <option value=”0″>All Dates</option> <?php $years =…

Get Order details from “woocommerce_order_details_after_order_table”

I want to show “Order details” with certain statuses (2) of the order in short code taken from “woocommerce_order_details_after_order_table”. After login, the client is directed to a dashboard where details are displayed. To save him the ability to open orders-> see. We have created “custom-shortcodes.php” in the theme. Thanks in advance for any help.

Slow Query Magento 2.3.0

One of the query is taking 1,197.66ms as per the DB profiler. SELECT COUNT(DISTINCT e.entity_id) FROM `catalog_product_entity` AS `e` INNER JOIN `catalog_category_product_index_store1` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id=1 AND cat_index.visibility IN(2, 4) AND cat_index.category_id=’53’ INNER JOIN `catalog_product_entity` AS `product` ON product.entity_id = e.entity_id INNER JOIN `inventory_stock_1` AS `stock_status_index` ON product.sku = stock_status_index.sku INNER JOIN `catalog_product_index_price`…