2022 Developer Survey is open! Take survey.

New answers tagged

0 votes

Get All Pre orders from Magento

you can pass a query parameter to filter by status making the call like this: http://yoursite.com/index.php/rest/V1/orders?searchCriteria[filterGroups][0][filters][0][condition_type]=eq &...
user avatar
  • 1,107
0 votes

Magento 2 - Orders with deleted products ProductRepositoryInterface The product that was requested doesn't exist. Verify the product and try again

You could place $this->_productRepository->get calls in try/catch blocks, so you can capture that exception & let code flow continue For instance $configProduct = null; try { $...
user avatar
  • 3,317
0 votes

Magento2: How to get shipping address for order in REST API?

You can get an order with /V1/orders/<id> then check order["extension_attributes"]["shipping_assignments"][0]["shipping"]["address"]. This is for example ...
user avatar
  • 121
0 votes

Unable to Set Custom Price or Quantity in Admin Orders

I don't have enough reputation to comment, sorry. I'm having this problem all. If you post a list of the extensions you're using, I'll cross reference the ones I'm using and we'll see if there's any ...
user avatar
  • 1
0 votes

Shipping charges not showing on Totals admin order

we are looking for a (real) magento2 professional and your Profil attracted me quite a bit. Please contact me via our patient embio.it... ;-) Thank you! Stefan (it-pioneer since late 90ies but don't ...
user avatar
0 votes

catch order place after event magento2

<?php declare(strict_types=1); namespace Moazzam\LoyalCustomer\Observer; use Magento\Customer\Api\CustomerRepositoryInterface; use Magento\Customer\Model\Session; use Magento\Framework\Event\...
user avatar
  • 13
0 votes

catch order place after event magento2

<?php declare(strict_types=1); namespace Moazzam\LoyalCustomer\Observer; use Exception; use Magento\Customer\Api\CustomerRepositoryInterface; use Magento\Customer\Model\ResourceModel\...
user avatar
  • 13
0 votes

catch order place after event magento2

<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd"&...
user avatar
  • 13
0 votes

How to add backorder message to transactional emails

If using Magento 2 (tested on 2.4.3): copy below file vendor/magento/module-sales/view/frontend/templates/email/items/order/default.phtml into app/design/frontend/Vendor/theme/Magento_Sales/...
user avatar
  • 2,918
0 votes

How to find WHICH user account changed Order Status in Magento 2

If you have Magento 2 Community version it will not be possible out of the box and you will need to look at 3rd party extensions. If you are on Adobe Commerce (Enterprise Edition), you can follow the ...
user avatar
  • 23
2 votes

Order related emails are not being sent in Magento 2.4 (Resolved)

If you're facing issues only in the sales email, please check whether the sales order email is enabled or not once in the following path. Stores -> Configurations -> Sales -> Sales Email ->...
user avatar
  • 434
0 votes

Magento 2 – Item with the same ID already exists

Check your report result collection query, may be it would return multiple records with same id (primary key entity_id). Use group by for id ( primary key Id) in your result collection. Ex: getSelect()...
user avatar
  • 1,069

Top 50 recent answers are included