Author: james

Reset MySQL root password in Ubuntu Linux

1. Stop MySQL sudo /etc/init.d/mysql stop 2. Start MySQL with the –skip-grant-tables option Ensure the directory /var/run/mysqld exists and correct owner set. sudo mkdir /var/run/mysqld sudo chown mysql /var/run/mysqld sudo mysqld_safe –skip-grant-tables & 3. Login to MySQL as root This will

read more

Court Booking Plugin – Install and Usage

Installation The court booking plugin is installed like all standard WordPress plugins. Simply unzip the files you have received and copy the two folders “tr2-core” and “tr2-court-booking” to your WordPress root folder/wp-content/plugins. Then login to the WordPress admin panel and

read more

How to get and update stock status in Magento 2.3 MSI

The Old Way The old way of getting stock info from Magento 2 was using stockRegistry and it would output or input an array. $productRepository = $objectManager->get(‘\Magento\Catalog\Api\ProductRepositoryInterface’); $stockRegistry = $objectManager->create(‘\Magento\CatalogInventory\Api\StockRegistryInterface’); $sku=”STARTNET_ITEM_123″; $product=$productRepository->get($sku); $stockdata = $stockRegistry->getStockStatus($product->getId(), 1); // for store id

read more