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 […]
Magento2
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 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 = […]
After upgrading magento to 2.3.4 my checkout page is now broken, giving me an error POST mydomain/checkout/ 404 (not found) as well as defaultCaptcha.js cannot read property ‘timestamp’ of undefined’; and misc.js cannot read property of ‘status’ undefined.
I am using $this->checkoutSession->getQuote() in one of my module. When I change the price of the product already added in the one-page checkout, from the admin and reload the one-page checkout $this->checkoutSession->getQuote() throwing error.
I want to sort a repository by more than one attribute. Any ideas of how to achieve this? What I have so far is this: public function getLatestPosts() { return $this->postRepository ->getList($this->buildSearchCriteriaForLatestPosts()) ->getItems(); } private function buildSearchCriteriaForLatestPosts() { $this->prepareSearchCriteriaBuilder(); $this->searchCriteriaBuilder->setPageSize(1); return $this->searchCriteriaBuilder->create(); } private function prepareSearchCriteriaBuilder() { /** @var MagentoFrameworkApiSortOrder […]
I have a template from a customer’s Magento 1 theme that I need to move to M2. The theme isn’t the same but the template does what I need it to on M1 and I need this in Magento 2. < ?php $parentCategoryId = 20; $cat = Mage::getModel('catalog/category')->load($parentCategoryId); $subcats = […]
EDIT: I noticed that I can’t change any setting anymore! It just resets after save to the old value. No error message is shown. Old Title: Theme does not change, even though database value changes If I change the theme in Content -> Design -> Configuration Then it always changes […]
I want to replace the text of “The confirmation request has been sent”, what is the best way to do it? create an module and overwrite this controller? If yes, what is the correct path I should app/code or app/design? thanks /magento/module-newsletter/Controller/Subscriber/NewAction.php private function getSuccessMessage(int $status): Phrase { if ($status […]