Blog
I’ve only recently started working with Magento and developement in general, so I am new at this. I need a (simple) product’s quantity for some custom logic. But I don’t know how to get it into my .phtml template. I used this function: $quantity = $_product->getExtensionAttributes()->getStockItem()->getQty(); and print_r($quantity); to see […]
I created a custom image role drop down. I am trying to save its value into ‘catalog_product_entity_media_gallery_value’ table by using the observer event ‘catalog_product_save_after’: <?php namespace HotcoffeeImageCustomRoleObserver; use MagentoFrameworkEventObserverInterface; class Productsaveafter implements ObserverInterface { protected $request; protected $resource; /** * * @param MagentoFrameworkAppRequestInterface $request * @param MagentoFrameworkAppResourceConnection $resource */ public […]
I know there is now this setting in Microsoft Edge: edge://flags/#enable-force-dark https://www.tenforums.com/tutorials/143927-enable-disable-dark-mode-websites-microsoft-edge-chromium.html You can enable dark mode which works well for many sites. But is there a way to do this on demands for certain sites? For example, there are certain websites I would like to use this dark mode […]
I want to put a computer in the basement for my recording studio. I also want to connect and operate the same computer whilst in the attic of the house. The connections for the keyboard, mouse and monitor in the studio can be made directly to the computer. The connection […]
On my Ubuntu machine, I’d like to create compressed archive files of 10mb size for Windows users. So that a 25MB myfile becomes something like: myfile1.rar myfile2.rar myfile1.rar I could not find any working example of that in rar tutorials on Linux like here. And for zip, a command that […]
How can I temp throttle my laptop? I’m on Windows 11. I want it to be as cool as possible. I don’t need performance, either when plugged in or on battery. Are there registry settings or a third party tool?
I have a 2009 Macbook Pro with El Capitan which a want to share remotely via SFTP. I did many attempts following many guides, using both terminal and the graphic process in MacOS Settings but I did not succeed to restrict a user to its folder. What I’ve done so […]
I had installed mageplaza banner slider followed their guide. but the slider wont show in my custom theme. this happen as well with the default magento 2 slider