I’ve an extension which adding an extra fee for specific payment method. It’s appear in a row like shipping cost ( ex: extra fee – $5 ). What I’m looking for is to update the subtotal directly if there is an extra fee. Can I achieve that ? Thanks in […]
Daily Archives: January 23, 2025
I have a php variable which stores datetime in this format. next_run=”2025-01-17 09:41:26″ “y-m-d hh:mm:ss” I want to convert it into two custom formats. 1:- in this format the month name and day in numbers “Jan 17” 2:- in this format, this means 17 is the ay number in a […]
I created a observer : <?php namespace VendorModuleObserver; use MagentoFrameworkEventObserver; use MagentoFrameworkEventObserverInterface; use MagentoFrameworkAppRequestInterface; use PsrLogLoggerInterface; class SaveRefToQuote implements ObserverInterface { protected $logger; protected $request; /** * Constructor * * @param LoggerInterface $logger * @param RequestInterface $request */ public function __construct(LoggerInterface $logger, RequestInterface $request) { $this->logger = $logger; $this->request = […]
I would like to hide some articles in a certain category. So far I have solved this using a plugin: di.xml: <type name=“MagentoCatalogModelLayerCategoryCollectionFilter”> <plugin sortOrder=“1” name=“Vendor_Modulename::aroundProductCollection” type=“VendorModuleNamePluginCatalogCollectionFilter”/> </type> <?php namespace VendorModuleNamePluginCatalog; use MagentoCatalogModelLayerCategoryCollectionFilter as CategoryCollectionFilter; use MagentoCatalogModelResourceModelProductCollection as ProductCollection; use MagentoCatalogModelCategory as Category; class CollectionFilter { public function afterFilter( CategoryCollectionFilter […]
In GraphQL, if we enter wrong field name in search, its will suggest the alternative fields in the response. It creates some security issues in production. So we plan to disable that feature. unfortunately adobe commerce not having the out of box feature. Query: { products( filter: { sku: { […]
My boss needs some files from an old hard drive. We have it connected with a PATA to USB adapter. dmesg [1568641.572757] sd 4:0:0:0: [sdc] 12594960 512-byte logical blocks: (6.44 GB/6.00 GiB) [1568641.573263] sd 4:0:0:0: [sdc] Write Protect is off [1568641.573272] sd 4:0:0:0: [sdc] Mode Sense: 00 38 00 00 […]
I’ve been trying to set up a machine with the following requirement: accessible desktop environment both remote and local the same desktop environment in both both can run be in use simultaneously the local one and the remote one do not have to share the same content (not screen sharing). […]
I visited the zi.tools website, and some text in Latin characters are bunched up: Inspecting the site shows that it’s using the default sans-serif font for Google Chrome: This appears in Microsoft Edge as well, leading me to suspect that it could be a Windows font issue. Does anyone know […]
I have a server with Nginx installed. I know a top level domain and URI like TLD.com/part1/part2/part3/pages/<page_UUID>.txt How to extract all possible <page_UUID> locations (either where is it located in configuration)?