Magento 2.X: Locate setCouponcode($string) method
-
11-03-2021 - |
Question
can someone help me Locate setCouponCode($string) method in magento2 ?
Solution
You can find the function under the below files.
/vendor/magento/module-sales/Model/Order.php
/vendor/magento/module-quote/Model/Cart/Totals.php
Hope it helps!!!
OTHER TIPS
This method is located in below classes
Magento\SalesRule\Model\ResourceModel\Report\Rule\CreatedatTest.php
Magento\Checkout_files\quote_with_coupon_saved.php
Magento\SalesRule\Model\ResourceModel\Report\Rule\CreatedatTest.php
Hope it would be helpful
Please find here
vendor\magento\module-quote\Api\Data\TotalsInterface.php
vendor\magento\module-quote\Model\Cart\Totals.php
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange