Questions tagged [sales-order]

Denotes questions related to Magento Sales module's order functionality.

Filter by
Sorted by
Tagged with
0
votes
1answer
14 views

Is there any extension Order Exchange with same product option or different products in Magento 2?

Is there any Magento 2 extension available for Customer order exchange with same item different Size/color And also Order Exchange with different Products. reference link Myntra
0
votes
0answers
11 views

Magento 2 - How to get product attribute in order api

I added two new product attributes to a product called netsuite_internal_id & ava_tax_code if I do a GET to /rest/V1/products/{sku}, I can see them in custom_attributes.attribute_code. When a ...
0
votes
0answers
15 views

custom customer attribute in customer welcome email template in magento 2.3.5-p2

How to get account_id custom customer attribute in customer welcome email template in magento 2.3.5-p2 This link already try but not working access custom customer attribute in email template The ...
0
votes
0answers
5 views

How to add a new section in the create order page in the admin side and save it on submitting the order in magento 2.3

I am trying to add a custom section under Address information in the create order page in the Magento admin section and save it on submitting the order. Anybody help me to solve this?
0
votes
1answer
12 views

Magento 2: Custom Order Date and Shipping Amount in Programmatically created Order

Below is code to create order Programatically , it is working fine , i want to set custom order date and custom shipping Amount , i can not find way to do same public function createMageOrder($...
0
votes
0answers
7 views

Can't override a renderer template in sales_order_item_renderer.xml

I have already checked a lot of posts about overriding item renderers (and some of them really work in places like e-mail and checkout), but I can't override a template in sales_order_item_renderers....
0
votes
1answer
96 views

Magento 2: How to show multiple discount coupon code separately in backend while creating order (order totals)

I using Magento 2.4.2. In the front end, After applying the multiple discount coupon, It will show you both coupon code separately which is fine, as shown in the below screenshot, In the backend, ...
1
vote
2answers
93 views

Magento 2 : Error “Unable to create credit memo for order”

I am getting this error while online refunding credit memo using a script. "Unable to create credit memo for order" error appear, this is due to this https://github.com/pepe1518/magento2/...
1
vote
0answers
15 views

Magento 2 : Store credit does not deducted on reorder from admin

Issue : When we reorder from admin, & pay using customer store credit balance then order gets placed but store credit doesn't get deducted. Using Magento/2.4 (Enterprise) Steps to replicate error ...
0
votes
1answer
11 views

Magento 2 - How to add custom customer attributes to sales order API?

I have created custom attributes in the customer table. I want to add those attributes in order API. How can I do this? Thanks.
0
votes
1answer
14 views

Adding magento 2 order attribute

I want to create an order attribute that creates a field in sales_order_item table also. I want to insert some product-related data in this table which I want to filter later in sales report.
0
votes
1answer
21 views

Asterisks in sales orders

I'm new to Magento and I'm on my learning curve. Recently I've installed on my test VM the latest and greatest ver. 2.4.2-p1. I did a few test orders and I can't find a reason why, when being logged ...
0
votes
1answer
17 views

How to apply cart rules directly on Order?

I have added a BIN promotion which is needed to be applied just before payment directly on order. I have found 2 methods that apply discount but require a quote object. \Magento\SalesRule\Model\...
0
votes
1answer
32 views

Tracking number in Email template magento 2 not working

I have use in the Email templates "New Shippment" the variable tracking numer detail The variable in BO magento 2 Email templates : {{block class='Magento\Framework\View\Element\Template' ...
0
votes
0answers
15 views

How to fix the «Undefined index: base_grand_total» error in the sales order grid in magento 2.3.5-p2

Notice: Undefined index: base_grand_total in /var/www/html/vendor/magento/module-sales/Ui/Component/Listing/Column/Price.php on line 68 <?php /** * Copyright © Magento, Inc. All rights reserved. ...
0
votes
0answers
21 views

add purchase order number to sales order grid Magento 2

How to check/add Purchase Order Number set or not in Purchase Order payment method magento 2.4
0
votes
0answers
14 views

How to delete order from observer Magento 2

I'm trying to perform an order alteration when the customer clicked on the "Place Order" button. What I'm trying to do is, remove a bundled product and add it's child product back to the ...
0
votes
2answers
69 views

How to create new quote programmatically from old order after place the order in magento 2

I want to create a new quote based on the old order. I can create order programmatically but not able to just add to cart product in a new quote. I don't want to place the order. Need is only add to ...
0
votes
1answer
22 views

Magento 2 : Undefined variable: returnValue

<?php namespace StripeIntegration\Payments\Plugin\Sales\Model\Service; class OrderService { public function __construct( \StripeIntegration\Payments\Helper\Rollback $rollback, ...
0
votes
0answers
15 views

How can I reverse create Quote for Order in Magento 2?

I want to validate some data in the quote using rule conditions, but the quote gets delete after a period of time. How can I reverse create Order -> Quote programmatically?
0
votes
2answers
57 views

How to display Product Name in the subject of the Email(Order Confirmation Email)?

I want to display product name in the subject of the Order confirmation email. I want to display like this Your Order for LooMantha Refrigerator... has been successfully placed
0
votes
2answers
43 views

Magento 2 : Disable Sending email when order status change

Is their any way we can stop sending email when order status change from backend magento 2 ? any thoughts appreciated. Thanks
2
votes
3answers
41 views

Magento 2 : Change Order # Formatting for M2 Orders

I am trying to implement feature that Orders placed on M2 should start with a ' 3 ' instead of a ' 2 ' This will help me with easily identifying new orders while we move test orders to production and ...
0
votes
2answers
79 views

How to display sales_order (only pending orders) grid in custom module

How we can display sales_order grid in custom module with only pending status. For now I display sales_order_grid using ui component. I only want to display pending orders in this grid
0
votes
1answer
27 views

Magento 2 - How to display recent order on Homepage?

I know that the "recent orders" section is displayed on customer's dashboard. I am wondering if I can display this "recent orders" on the homepage as well? My website requires ...
0
votes
2answers
32 views

Magento 2 : Get product price as per order currency

I have placed order in euro & tried to get product price in phtml file of an email template using below code /** @var $_item \Magento\Sales\Model\Order\Item */ $_item = $block->getItem()...
0
votes
1answer
27 views

Magento 2 : How to refund as per payment method using credit memo?

Is their any way to refund online to payment method within credit memo ? Please share your thoughts on this.
0
votes
1answer
31 views

Magento salerule really slow query 2 minutes to execute

We run Magento with many sales rules as each user has a referral promo code that he can share with his friends. However this impact the performance of our magento server as it is really slow when ...
0
votes
0answers
16 views

Magento 2 : Create credit memo by Order

Is their any way we can create partial credit memo using order object & item ?
0
votes
1answer
68 views

magento 2 - different email template based on order status

I have multiple status like 1: Pending 2: Processing 3: cancelled 4: completed When order is cancelled used get defualt status notification email, instead i want to use different template when order ...
0
votes
1answer
18 views

Magento 2 : Make customer name optional while creating customer & saving address?

Is their any way we can make customer lastname as optional while creating & saving customer, also when we save customer address from $order->getBillingAddress()->getData() ? code for ...
0
votes
1answer
15 views

Item status in sales order view not showing backordered after invoice is created

When we receive an order containing an out of stock item (that's allowed to be backordered) it nicely shows "Backordered" at 'Item status' in the backend sales order view. magento item ...
2
votes
0answers
18 views

Magento 2 : Sales Order Service Class?

What is the alternative of below in magento 2 /** @var Mage_Sales_Model_Order_Creditmemo $creditmemo */ $creditmemo = $service->prepareInvoiceCreditmemo($invoice, $data);
0
votes
0answers
16 views

Magento 2 : From where is the order data gets set for credit memo, before issuing credit memo?

I am looking for a file from where is order is set for credit memo balance factory. Any thoughts from where its been set ? Thankyou
0
votes
0answers
23 views

Magento 2 : ERROR: Call to a member function getOrder() on null

I am not sure what is the issue, but i get this error ERROR: Call to a member function getOrder() on null in production site but not in local (i am using same version Magento ver. 2.4.1) I have ...
1
vote
1answer
41 views

Magento 2 Best way to merge specific DB tables and data from one database to another

We have two enviroments Staging and Production, for Magento 2.3.5. At the moment these two enviroments have different database structure, meaning that we can't just dump the entire DB and restore it ...
0
votes
0answers
54 views

Magento 2 : Override template file (sales order email - gift card product)

I have found that this file is used with _getGiftcardOptions() vendor/magento/module-gift-card/Block/Sales/Order/Item/Renderer.php that provides data to labels for gift card item in the Sales order ...
0
votes
2answers
33 views

Magento 2 : Get ordered item

I have used sales_order_place_after observer . i am trying to get product items but i get more items in data for exg. i have ordered 2 items but i am getting 4 items in data foreach ($order->...
0
votes
1answer
26 views

Add column and button magento 2

Is there any way to add a button and column at the backend order view items renderer? I have tried multiples solution but did not work. sales_order_view <?xml version="1.0"?> <...
0
votes
3answers
26 views

Magento 2 : Get ordered products in sales_order_after observer

Is their any way i can get the product names in sales_order_place_after observer ? I get the order object but not sure how to fetch the products. Any thoughts ?
0
votes
1answer
21 views

Magento 2 : how to show custom shipping address in email template?

I am trying to send & show custom shipping address on email template here is the code $ship_country_id = "US"; $ship_region_id = "CA"; $...
0
votes
0answers
25 views

Magento2: Apply taxes to existing orders

Customers created a lot of orders before client set up taxes. Now the client has wrong tax values in reports for that period. So I'm wondering has anybody ever recalculated all the existing orders ...
0
votes
0answers
10 views

How can I get current order's payment method and application_no in order view in Admin?

I want to display application_no if payment method is FN in order details page. I have created a block. class Custom extends \Magento\Framework\View\Element\Template { public function __construct( ...
1
vote
0answers
28 views

Magento 2 Admin Console - Performance Issues

For one of our big projects, our client is using the Magento backend Admin Console for their Project Managers to create orders/customers etc. Our Customer has time and again reported that the ...
0
votes
1answer
25 views

Observer checkout_submit_all_after not called on magento 2.3.3

This is my app/code/Nadine/Campaign/etc/events.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="...
1
vote
1answer
59 views

Override Magento_Sales::email/items/shipment/default.phtml Template (Magento 2)

I am trying to override Magento_Sales::email/items/shipment/default.phtml Here is my layout file app/code/Mod/Sales/view/frontend/layout/sales_email_order_shipment_renderers.xml <?xml version="...
0
votes
1answer
29 views

How to get customerId on sales_order_place_after observer?

I'm trying to get the CustomerId when an order is placed so that I can manipulate it before the order is saved to the DB. Vendor/Module/etc/frontend/events.xml <?xml version="1.0"?> &...
2
votes
0answers
28 views

How to determine refund type while issuing credit memo ? (Magento 2)

i am implementing an functionality where i need to determine refund type while issuing credit memo so based on that i can send different email template to customers. I have checked in Magento\Sales\...
0
votes
0answers
18 views

Magento 2 event observer before order confirmation email trigger

I have an Observer that updates a custom column in table sales_order_item. I have used this event checkout_onepage_controller_success_action Observer: <?php namespace Siva\OrderNotes\Observer; use ...
0
votes
0answers
12 views

Magento 2 order items comments

I have inserted a textarea in the checkout/cart page as shown in the image below. I want to insert this data when proceeding to checkout is clicked or when clicking on the update shopping cart in ...

1
2 3 4 5
27