I firmly believe that, in order to strike the optimal balance between minimalism and visual appeal, a user interface should display no more than what’s absolutely necessary while making those necessary elements look visually appealing. Keep it simple, but make the simple look amazing. But, what does simple look like […]
Daily Archives: May 7, 2020
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 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 { […]
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?
I created an order payment with Redsys. The status of the order is Pending. However I can’t cancel the order. Appears a message saying that “the order can’t be canceled” Why? In theory, I could cancel a order in pending. Anyone knows what happen? Thanks. I’m in Magento 2.3.1.
Load product by attribute i have using the following code $attribute =’test1′; $objectManager =MagentoFrameworkAppObjectManager::getInstance(); $product =$objectManager->get(‘MagentoCatalogModelProduct’); $product = $product->loadByAttribute(‘attributename’,$attribute]); but i have the format of values in attributename field like test1|test2|test3 then how do i check this loadByAttribute() method
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 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 […]