I have 3 Gbps fibre internet connected to my machine, through ethernet, and I never seem to get the full download speed no matter what, however the upload speed is always at maximum, which is weird. The speedtest, in the router always is always 3 Gbps, and averages around 3250 […]
Yearly Archives: 2023
I’m trying to add a route to bypass the VPN connection for 95.172.64.2 and just use the Wifi internet directly. I’m using Nord VPN and it doesn’t have a split tunneling option so I have to do it manually. Here is my code, but it shows an error while my […]
I have two sets of simple data in excel (name and amount) from two sources and the rows do not match. I would like to combine so that I get a total per name. How do I do so?
Learn about performance bottlenecks in .NET 6 applications, how to reproduce issues in your local dev environment, and how to tackle them. Continue reading Troubleshoot Performance Bottlenecks in .NET 6 Applications on SitePoint.
I implemented a custom plugin that loops through all products and generates a CSV file. Even if the execute() function has the same code in both files (cron job and controller), the CSV file generated is slightly different. The controller generates the CSV as expected, but the cron job is […]
I use the core API /V1/products/:sku to get the product using the SKU. for example, I have 2 stores, one in English and another in Japanese. My API Endpoint is like http://local.mystore.com/storefront/en-us/rest/V1/products/myproduct for the English store and http://local.mystore.com/storefront/en-us/rest/V1/products/myproduct for the Japanese. For both the API I am getting the same […]
Is there a way to update the Order ID prefix based on the user’s customer group? E.G. wholesale customer starts with 2 while retail starts with 1.
I have this method which is meant to save the product during an import script. protected function saveProduct($product, $urlKeySuffix = 0, $baseUrlKey = false) { $savedProd = null; try { if($urlKeySuffix) $product->setUrlKey($baseUrlKey . '_' . $urlKeySuffix); $savedProd = $this->productRepository->save($product); } catch (AlreadyExistsException $e) { $urlKeySuffix++; $baseUrlKey = $baseUrlKey ?: $product->getUrlKey(); […]
in my authorization request builder as apart of my payment method facade, I need to fetch the quote or order id to pass it to the client…. class AuthorizationRequestBuilder implements BuilderInterface { public function build($buildSubject) { // get order here (type of order is MagentoPaymentGatewayDataOrderOrderAdapter) // this order doesn't have […]