Skip to main content
3 votes
Accepted

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 Programmatically Adjust Out-of-Stock Threshold for Products in Magento 2

I found it. In StockItemInterface you can use setMinQty. $stockItem->setUseConfigMinQty(false); $stockItem->setMinQty($outOfStockThreshold); $stockItem->save(); Note : You absolutely need to ...
gcollet's user avatar
  • 21
1 vote

Get product's related products based on rule

The catalog target rules operate totally independently from the related product links as you discovered. They are based on an indexing-based system so they don’t update in real-time. The related ...
fantasticrice's user avatar

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