When Creating a Customer registration I am getting this error “We can’t save the customer” on front end(website). Just Migrated from magento 1.9.1.1 to magento 2.3.3. This is error log:Exception message: Class MagentoEavModelAttributeDataDatetime does not exist
Magento2
Google Page Speed told us, that we have rendering blocking CSS. Now we try to solve this with CSS Critical Path activated. We have created a Critical.css file We have integated the same in our Theme. All works fine, we try which styles are important and which CSS can load […]
For a configurable product, the following code will list the configurable’s childs prices only for the childs that are in stock: if ($_product->getTypeId() == 'configurable') { $_children = $_product->getTypeInstance()->getUsedProducts($_product); foreach ($_children as $child){ echo $child->getPrice(); } } When all childs are out of stock, the code above will not show […]
We are unable to get any Shipping Methods to show on customer check out. Checking out as a guest (call to estimate-shipping-method) or as a registered user (call to estimate-shipping-method-by-address-id) are returning empty arrays. According to this... I am missing the email and region_code as required in the payload. On our […]
I am trying to understand functionality of plugin method. for that i have created a custom module and i added below code in di.xml and model class code is namespace AdhikariStudyPluginModel; class StudyPlugin extends MagentoFrameworkModelAbstractModel { public function getName($name){ return $name; } } after that my plugin method code is […]
Currently, Magento 2.2.7 is showing the discount amount in the invoice and orders, if coupon gets applied. But I need to show the discount amount also for a specially priced product. Suppose if any coupon gets applied, the discount should be the sum of applied coupon discount amount + special […]
I need to remove products from the order, after which, removed products can be added to the order $backOrdersIds = array(); $this->getQuote()->getItemsCount(); foreach ($this->getQuote()->getAllItems() as $item) { $oldQty = (int)$item->getProduct()->getStockItem()->getQty(); $qtyOrdered = (int)$item->getQty(); $differenceQty = $oldQty - $qtyOrdered; //remove backorder items from Quote Mage::log('first foreach' . $item->getProductId()); if($differenceQty < = […]
How correctly update status for order? i have this code, but it’s not working for me public function salesOrderSaveAfter($event){ //check for fires twice if(!Mage::registry('backorder_daniilkrok_observer')){ $order = $event->getOrder(); $orderIncrementId = $order->getIncrementId(); Mage::register('backorder_daniilkrok_observer',true); Mage::log('i here'); foreach ($order->getAllVisibleItems() as $item){ $oldQty = (int)$item->getProduct()->getStockItem()->getQty(); $qtyOrdered = (int)$item->getQtyOrdered(); $differenceQty = $oldQty - $qtyOrdered; //increase the […]
I created a new order status called Printed that has to be assigned after the mass action Print invoices on sales_order_grid. I created all the custom logic to achieve the result. The only problem is that the controller returns an instance of MagentoFrameworkAppResponseHttpFileFactory which sets in the headers 200 as […]