1 vote
Accepted

Magento 2 update custom column value in sales_order table in a controller file

Looks like some other module is loading the order object and setting some data and then calling save method causing the custom column value to reset. Try saving order object using Magento\Sales\Model\...
Lokesh Naik's user avatar
1 vote
Accepted

How to change order export file name Magento 2?

As mentioned previously, the class Magento\Reports\Controller\Adminhtml\Report\Sales\ExportSalesCsv is responsible for order report. Instead of rewriting the class controller, we can replace its ...
Ann's user avatar
  • 76
1 vote

How to change order export file name Magento 2?

To change the order export file name in Magento 2 from "export.csv" to "custom.csv," you would need to override the relevant controller responsible for generating the export file. ...
Chan.Gopi's user avatar
1 vote

How to change order export file name Magento 2?

The order export report exports the file with name "sales.csv", which is hard coded in the file /vendor/magento/module-reports/Controller/Adminhtml/Report/Sales/ExportSalesCsv.php. Similarly,...
Mohit Kumar Arora's user avatar
1 vote
Accepted

Magento 2 - How to add data from a field in sales-order-item table to the order items in order confirmation email

You need to override the items.phtml code Path:app/design/frontend/Theme/Magento_Sales/templates/email/items.phtml And you can add your custom attribute like below, <td class="item-...
Harish kuril's user avatar
1 vote
Accepted

Add a row count to the order sales view items table - Magento 2.4

There are 2 ways to achieve this: Lets start by creating a module Vendor_RowCounter, with the required files, and shared files for both solutions: Add registration.php: <?php use Magento\...
Ahmad's user avatar
  • 652
1 vote

Add Custom Field for creating new order from admin in Magento 2.4

emphasized textTo add a new field while creating a new order from the Magento admin in Magento 2, you can follow these steps: Create a custom module: Create the necessary module files and ...
Madhan V's user avatar
  • 228
1 vote
Accepted

Add Custom Field for creating new order from admin in Magento 2.4

you can try this way (module) or adding your theme also works: app/code/Vendor/Module/view/adminhtml/layout/sales_order_create_index.xml <?xml version="1.0" ?> <page xmlns:xsi=&...
leofs's user avatar
  • 26
1 vote
Accepted

magento 2 credit memo set "quantity to refund" column value as 0 by default

Please overwrite the below file and update the code. vendor/magento/module-sales/view/adminhtml/templates/order/creditmemo/create/items/renderer/default.phtml <?php /** * Copyright © Magento, Inc....
Msquare's user avatar
  • 9,093
1 vote

How to get order count month wise?

Inspired from Klaus: SELECT count(entity_id), MONTH(so.created_at) AS month_ordered FROM sales_order AS so WHERE year(so.created_at) = 2023 GROUP BY month_ordered;
Jens's user avatar
  • 11
1 vote

Magento 2: After uprgading magento version Order Items not adding from admin

Hit given below command php bin/magento config:set system/security/max_session_size_admin 512000 and after that hit these commands php bin/magento setup:static-content:deploy -f; php bin/magento ...
Shiv Om Mishra's user avatar
1 vote

Magento 2 : which tables is used for Related Products, Up-Sells, and Cross-Sells?

SELECT p1.sku AS product_sku, GROUP_CONCAT(DISTINCT p2.sku ORDER BY p2.entity_id SEPARATOR ',') AS related_skus FROM catalog_product_link AS l JOIN catalog_product_entity AS p1 ON l....
Peter Tivy's user avatar

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