Using Magento 2.4. I want to add some custom JS in the admin area. appcodeClientQuoteAdminThemeviewadminhtmlrequirejs-config.js var config = { map: { '*': { adminTheme: 'ClientQuote_AdminTheme/js/client-admin' } }, paths: { 'custom-script': 'ClientQuote_AdminTheme/js/client-admin' } }; I can see the above in the source of /static/adminhtml/Magento/backend/en_US/requirejs-config.js appcodeClientQuoteAdminThemeviewadminhtmlwebjsclient-admin.js define([ 'prototype' ], function () { […]
Daily Archives: September 13, 2023
In Magento 2.4, I want to create a cart rule and that can not be applied if any product in the cart with 0 price. For Example, I have created a coupon code that allows a 20% discount on the total of the cart, and it is working fine. Now […]
I’m currently working on a Magento 2 project and encountering issues with the “custom logger” when attempting to use it in developer mode. I’m hoping someone can help me troubleshoot this problem. "custom logger" Magento 2 version: 2.4.6 Logger used: $this->logger->debug()
I am making a custom module and I want to get 5 random product skus. So far I tried: $objectManager = ObjectManager::getInstance(); /** * @var ProductRepository */ $productRepository = $objectManager->create(ProductRepository::class); /** * @var SearchCriteriaBuilder */ $searchCriteria = $objectManager->create(SearchCriteriaBuilder::class); $searchCriteria->addSortOrder(new SortOrder()); $skus = $productRepository->getList($searchCriteria)->getItems(); But how I can define that I […]
I made my own command to seed a table: namespace MageGuideFirstModuleConsoleCommand; use MageGuideFirstModuleModelBlogPost; use MageGuideFirstModuleModelResourceModelBlogPostResource; use MagentoFrameworkAppObjectManager; use SymfonyComponentConsoleCommandCommand; use SymfonyComponentConsoleHelperProgressBar; use SymfonyComponentConsoleInputInputInterface; use SymfonyComponentConsoleOutputOutputInterface; /** * Seed Multiple Blogposts with Skus */ class BlogpostSeeder extends Command { const BLOGPOSTS_NUM=10000; protected function configure(): void { $this->setName('db:seed:blogposts')->setDescription('Seed Multiple Blogposts'); parent::configure(); } […]
I have a PC that has 3 partitions which are C(Windows 11), D(Windows 10) and E(Documents) in dual boot setup. I’ve bought a new SSD because of capacity issues and I created 2 new partitions as F and G. Now, I would like to move “partition C” to the new […]
I use a USB Internet stick of this kind: To connect to the Internet, I simply insert a SIM card into this stick and then insert the stick into a USB port of my laptop. Based on my experience of participating in Zoom video conferences with this Internet stick, it […]
I want to use the Autotext templates from the command line. The location are this: %APPDATA%LibreOffice4userautotextmytexts.bau C:Program FilesLibreOfficeshareautotexten-US template.bau C:Program FilesLibreOfficeshareautotexten-US standard.bau C:Program FilesLibreOfficeshareautotexten-US crdbus50.bau I’m trying to access that file without success. Any idea?
After one wrong click I got the upgrade to Windows 11 and now my bluetooth drivers does not work anymore. I’m trying to reinstall them, but although my user is Adminstrator I get the following message when I try to open Device Manager: Operation canceled due to existing restrictions on […]