function returns quantity in magento2
I’m writing a function that returns quantity when an order is canceled by cron but I don’t know how it works. Can anyone help me? Thank you.
I’m writing a function that returns quantity when an order is canceled by cron but I don’t know how it works. Can anyone help me? Thank you.
”’ public function execute(Observer $observer) { $item = $observer->getEvent()->getData(‘quote_item’); $product = $item->getProduct(); if ($product->getFinalPrice() > 100 && !$this->customerSession->isLoggedIn()) { $this->messageManager->addError(‘You need to login for adding any product worth 100 or more’); $item->getQuote()->removeItem($item->getId()); } } } ”’ work this using checkout_cart_product_add_before… Read More »show an error message in adding item to the cart if the user is not logged and the item have price greater than 100 that item shouldnot added to cart
Hi, first post so go easy. Is it possible to build a server or rent one online and be anonymous and zero risk of that server being asked… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1909467&goto=newpost
How to prevent bundle products showing up in catalog search results where the bundle product itself does not match the search query? Running Magento 2.3.7, have observed the following behavior regardless of whether elasticsearch (v7) or mysql is the search… Read More »How to Stop Catalog Search from Indexing Bundle Products by their Children
I have created a shipping rule with certain products so that such products have free shipping, but for example when I delete the product in the checkout cart from the mini cart, the shipping cost is not updated until I… Read More »Magento 2 Update Shipping Rates when remove Products from Mini cart in Checkout Page via JS
I am trying to retrieve the Child Item of a Configurable Details in the Shipment email. I have overwritten the default template file in my theme at: app/code/design/MyTheme/theme/Magento_Sales/templates/email/items/order/default.phtml I did this in the Order Confirmation email using $product = $_item->getProduct().… Read More »Get Child Item In Shipment Email Template
For some reason we fetch the following deadlock, when we run php bin/magento indexer:reindex catalog_product_attribute Already tried reindex:reset and also performing a full reindex, but that does not solve the issue. It looks like it has something to do with… Read More »Reindex catalog_product_attribute Deadlock found when trying to get lock
I have mentioned in my one of extension in composer.json. Could anyone tell what does it mean. I think it means that the php version should be greater than 7.4.0 but less than 8.2.0 but when i installed it on… Read More »Facing issue in composer.json file for an extension
I am working on Magento 2 EE/ Adobe Commerce 2.4.3.p1. We have configured Reward Point System for users. But from a week now, magento is sending Reward point Expiry warning email every hour. We disabled it for now. Please help.
What is the best alternative for a KVM VPS that used most for a wp network/multisite on cPanel + AlmaLinux 8 + MariaDB + Nginx + Redis + php… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1909415&goto=newpost