I would like to write a query like delete from inventory_reservation where JSON_EXTRACT(metadata, '$.object_increment_id') = '<increment_id>' So I created my expression in my code like $expression = "JSON_EXTRACT(metadata,'$.object_increment_id') = ?"; And then I try to invoke a delete action like this $this->resourceConnection->getConnection()->delete($table, [$expression, $order->getIncrementId()]); However the resulting query is this […]
Yearly Archives: 2022
strong textI am tryring to add WYSIWYG in the custom form in the sections I am trying this but In the form show only fielset not WYSIWYG Editor. Here is my code with path as well: <?php /** * Copyright © 2016 Magento. All rights reserved. * See COPYING.txt for […]
Reference Image Is there a way to automate the process of changing the windows password using a .bat file. The traditional way of changing the password will be like. Open Command Prompt, type net user Username * > press Enter key > Type New Password and Retype the New Password […]
I am trying to put 2 powershell commands into a .bat file so I can just click on the file and run them, without opening powershell, pasting in the commands, etc. The commands are: cd Downloads get-childitem *.mp4 | foreach { rename-item $_ $_.Name.Replace("yt5s.com-", "") } I currently have a […]
how are you guys? Thank you in advance! You may skip the following (context of the problem): I have a lot of files which are data points of a Nasa satellite (MERRA-2) of different cities. When I batch download them using wget, they all come with a fixed name, and […]
I have some data in an xls file. I want to export it to csv. I don’t want to save the file as csv, I just want to export it so I don’t have to then go back and “Save As…” the original filename (which prompts me to replace). Is […]
I’m interested in adding custom commands when right clicking on any file in Windows Explorer. On Windows 10 I was able to do that through regedit by adding the necessary entries to ComputerHKEY_CLASSES_ROOT*shell However, with the latest right click menu on Windows 11 such updated entries fall under Show more […]
I have set visibility catalog, search but still not showing simple, only showing parent configurable product in catalog search. After that i did 1)cache:clean 2)indexer:reindex does anyone know what the problem is? (attached below) Simple product attributes in backend