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 […]
Yearly Archives: 2020
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 have a custom Luma theme I use for my store, for whatever reason sign in link is missing but I do have Create an Account on the header – where should I start looking to resolve this issue. I see system error report, “main.CRITICAL: Broken reference: No element found […]
< ?php if($_product->getTierPrice()){ $tierPrice = $_product->getTierPrice(); foreach ($tierPrice as $key => $value) { $qty = (int)$value['price_qty']; $price = $value['price']; $formattedTierPrice = $this->helper('MagentoFrameworkPricingHelperData')->currency(number_format($price, 2), true, false); $savePercentage = ceil(100 - ( (100 / $_product->getPrice())* $value['price']) ) ."%"; echo "Buy $qty for ".$formattedTierPrice." each and save ".$savePercentage.""; } } ?>**what we can […]
i’ve created an ecommerce store and created the analytics for this store, On Magento2 backend i’ve placed the Tracking Code and i start to check that the data is being sent into GA. The enhanced eCommerce is already enabled and collecting order data. The issue is the Shopping Analysis Behavior […]
Windows XP and later OSes have a NoStrCmpLogical API that allows sorting numerically rather than lexicographical. All references say this is not supported until after Windows 2000, yet, somehow that does not seem to be the case: On the left, you can see lexiographic (string) sorting, which Microsoft alleges is […]
I am trying to adjust power/seep settings on windows 10 using a .bat file. I found that you can easily import a power scheme using the powercfg -import however the issues is trying to set the power scheme as the active one. In order to use powercfg -setactive GUID However, […]
I’m not super conversant in AWS, but know just enough to get myself into trouble… I have a handful of .ebextensions configs that used to work (for a couple years) but appear to have stopped working in the past month or so. I have them setting the local time, yum […]
I need to know the “pages” of an chm file which contain a certain word, as one regularly does in pdfs or word docs using a regular search. The chm file does not allow me to do this. How should I proceed? I am on Windows 7.