I need to remove the cache from my Block class, even if it removes the cache from the entire page. How could I do it?
Blog
I created a new template var using email_order_set_template_vars_before observer and it works when I send email new order through the Magento admin. But it does not trigger when new order is placed. Here is my code. events.xml < ?xml version="1.0"?> SaveEmailVariables.php namespace FoobarShipperHQDeliveryDateObserver; use MagentoFrameworkEventObserverInterface; class SaveEmailVariables implements ObserverInterface { […]
when I use this method to get custom attributes $objectManager = MagentoFrameworkAppObjectManager::getInstance(); $_product = $objectManager->get('MagentoCatalogModelProduct')->load($block->getItem()->getProductId()); echo '' . $_product->getData('custom_attribute'). ''; in this place design/fronend/theme/Magento_Checkou/templates/cart/item/default.phtml (page checkout/cart, list products), this method repeat custom attribute. When a product has no attribute, it takes from the previous product.
I am using Private Internet Access (PIA) on my Windows 7 virtual machine and am having trouble getting on to the local network or even pinging it for that matter. When PIA is disabled, I can get access to the network so I know that it has something to do […]
I’m having an issue while trying to generate key on my smart card after installing the Minidriver. Basically, im using NCryptCreatePersistedKey to create the key and then i use NCryptFinalizeKey to finish the process. The issue is that when i call NCryptFinalizeKey, i get presented with all the connected readers […]
I had a free version of AVG antivirus on my Windows 10 machine that I removed a half a year ago. Today I opened Chrome with another profile and I mentioned that AVG SafePrice extention was added to Chrome. This extension was removed immediately. The question is how to catch […]
Can anyone help me get this done. I need to create a batch file, that will add specific text in start/beginning of the file content, like if my txt file content start from first line bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla […]
I’ve installed ubuntu 20.04 on WSL2 and I started a VM with qemu and kvm,running mac os x as guest os. It works great,except for the configuration of the net. Infact it is not able to connect to internet. Sometime from WSL I get a 192.x.x.x ip number,like : 192.168.69.65 […]
Nowadays, developers tend to move away from jQuery and its handy methods for DOM manipulation and Ajax requests that made it hugely popular. Regarding the Ajax requests, the Fetch API, or alternatively, the Axios library, are now more popular tools for performing asynchronous operations. That said, jQuery is still very […]