Hot answers tagged

4

When the order is placed, the quote is deactivated. The field is_active is set to 0. There is a cron that removes all the inactive quotes that are older than X days. The cron is sales_clean_quotes and it maps to Magento\Sales\Cron\CleanExpiredQuotes::execute(). What happens to order if associated quote removed and vice versa? Nothing. The order is valid if ...


2

Please follow the below steps to get the shipping method and its details in phtml file. app/code/Test/RoomDelivery/view/adminhtml/layout/sales_order_view.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/...


1

You can do this by plugin. Create this class: <?php namespace NameSpace\ModuleName\Plugin\Sales\Block\Adminhtml\Order; use Magento\Sales\Block\Adminhtml\Order\View as OrderView; use Magento\Framework\UrlInterface; use Magento\Framework\AuthorizationInterface; class View { /** @var \Magento\Framework\UrlInterface */ protected $_urlBuilder; /*...


1

{{block class="Magento\Sales\Block\Order\Recent" template="Magento_Sales::order/recent.phtml"}} Your code is right. please check with cache flush and also check that you are logged in user. If you still getting issue then check log files in developer mode.


1

I agree with the comments, extend and reuse the core code as much as possible. You either are having issues with how you form the cancel link or it is something in the controller, the code below works fine. app/code/StackExchange/CancelOrder/Controller/Adminhtml/Order/Cancel.php namespace StackExchange\CancelOrder\Controller\Adminhtml\Order; use Magento\...


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