There is a table which hold all product after promo rule
catalogrule_product_price
The table look like this
product_id | rule_price |
---|---|
604 | 287.1 |
It is a observer of CatalogRule module to get apply the promo price to product data final_price
Magento\CatalogRule\Observer\ProcessFrontFinalPriceObserver
it hooks on the event
catalog_product_get_final_price
the builder which reponse for read/write catalogrule_product_price
Magento\CatalogRule\Model\Indexer::applyAllRules
temporarily change createTemporaryTable to createTable in
\Magento\Framework\Search\Adapter\Mysql\TemporaryStorage::createTemporaryTable
Magento\Checkout\Model\PaymentInformationManagement::savePaymentInformationAndPlaceOrder
Endpoint for placing order, it performs:
Magento\Payment\Gateway\Command\GatewayCommand::execute
this method has 1 array parameter which contain:
file_put_contents(BP . '/var/log/events.log', "$eventName\n", FILE_APPEND);
$arr = ['zzz', 'aaaa'];
file_put_contents('/home/mobelari/public_html/var/log/arr.log', print_r($arr, true), FILE_APPEND);
$e = new Exception();
$e->getTraceAsString();
file_put_contents(BP . '/var/log/hieu.log', print_r($e->getTraceAsString(), true), FILE_APPEND);