3 votes

How to get email template content using template id in magento 2?

Using the below helper method you can get the template data <?php namespace [Vendor]\[Module]\Helper; use Magento\Framework\App\Helper\AbstractHelper; use Magento\Framework\App\Helper\Context; use ...
Grazitti Dev's user avatar
1 vote

How to update product salable quantity in Magento 2.4 programmatically?

Magento latest version uses the MSI inventory module for managing the inventory. Also providing provisions to create multiple inventory sources. By default, It will use the default source. If you want ...
Jitendra Patel's user avatar
1 vote

Magento 2 - Edit order programmatically without canceling

In Magento 2, you can programmatically edit an order without canceling or creating a new one by using the order repository and service classes. Here are the general steps you can follow: Use the \...
DJ Dev's user avatar
  • 499
1 vote

Magento 2 Set Shipping Method Programatically

Use the out-of-the-box Magento 2 code to set/reset the Shipping method, which resets the old Delivery method in the cart to the new one. use Magento\Checkout\Api\Data\ShippingInformationInterface; use ...
Santhosh Oppath's user avatar

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