I spotted this pattern in Doctrine codebases. E.g.: https://github.com/doctrine/data-fixtures/blob/b528aa964b5965d958f0f533df2ed611520dad5c/lib/Doctrine/Common/DataFixtures/FixtureInterface.php Why is that interface_exists call done at the end of the file? What does it achieve? Is it some optimization or just a safeguard for certain situations? There are other similar spots in the Doctrine codebases, not sure if it is […]
Monthly Archives: January 2020
Is there any functionality in magento 2 that will force the user to register when passing the checkout. If the user does not have an account, do not allow him to buy
When I try to install Magento on local configuration with Docker, I get into trouble when trying to use custom port for HTTP. Frontend part works with no problems, but trying to load admin page ends up with redirection loop. Every configuration is tested on newly installed Magento, fresh database […]
Klarna Payment method is activated in the checkout. It works fine as long as you don’t use a coupon code. If you do, the checkout page breaks with the following error: main.ERROR:Order line totals do not total order_amount – 530 != 490 Here is what I did already: Deactivated ALL […]
I’m trying to add 5000 customers using the csv uploader. I used the API to add all 5000 customer codes, but when I try to use the csv uploader, it says: Value for group_id attribute contains incorrect value, see acceptable values on settings specified for Admin I’ve reindexed and cleared […]
I’m trying to put qty to 0 if qty < 0, but it's not working for me i all time have qty on minus my code don’t working for me public function salesOrderSaveAfter($event) { $order = $event->getOrder(); $orderIncrementId = $order->getIncrementId(); foreach ($order->getAllVisibleItems() as $item) { $oldQty = (int)$item->getProduct()->getStockItem()->getQty(); $qtyOrdered = […]