Is there a way to load different fonts for different products in Magento2.4 ? The fonts will be self hosted in /web/fonts, but I want them to load only to specific products. Could be done in a block inside a product, something like <style>font-face {font-family: 'custom';src: url('fonts/custom.woff2');</style> ?
Monthly Archives: February 2024
Magento 2.4.6 I am trying to get an orders surcharge amount which was added by the Fooman Surcharge extension. In Magento 1 it worked with $order->getFoomanSurchargeAmount();, in Magento 2 it doesnt work this way. Any ideas how to get the amount from an order object? Thanks!
I am configuring/building a CMake project (Google Test) in Visual Studio. I want to see the full command that is run to perform the build (I’m interested in verifying the state of the --config flag in the cmake.exe invocation, as related to this question). The CMake output is already verbose […]
I am a consultant with multiple customers. Most of them uses AnyConnect VPN. In my business something is easier with Windows. But also i run a Macbook. So my idea was to buy a Windows Cloud PC subscription and then use the Cloud PC when Windows is required. But i […]
I try to use Firequalizer filter as audio equalizer in my video. I want the filter to be applied on the first 30 seconds of each minute in the video and disabled for the next 30 seconds. It will have no effect on the video for the seconds it is […]
I have an extremely important and necessary file which is just 1 byte and had no file extension until I renamed it to .txt (I did this in Windows 10) and the file like this (14-past rename to 14-past.txt) and then when I used cat command on it (on Debian), […]
I use Dual boot with two instances of windows, one 11 and another 10. I had less space in the windows 10 partition so i shrank my extra data partition for about 50GB and added that 50GB to the windows 10 partition using AOMEI software while using windows 10. The […]
I am trying to move the top.links to the header-wrapper as in the picture in order to create some fancy icons instead of just text links. I was able to do that adding this line to the default.xml file on my custom theme. <move element="header.links" destination="header-wrapper"/> But when i do […]
I hava created an observer with this event file. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd"> <event name="sales_order_save_after"> <observer name="purchase_sales_order_place_after" instance="MaxselPurchaseOrderObserverSalesOrderSaveAfter" /> </event> </config> and this is the observer file * @var LoggerInterface */ protected $logger; /** * @param ResourceConnection $resourceConnection * @param LoggerInterface $logger */ public function __construct(ResourceConnection $resourceConnection, LoggerInterface $logger) { $this->logger […]