I’m successfully import from a CSV file a massive number of SIMPLE products. Than I created the CONFIGURABLE products and assigned the simples by $configurableproduct_load->setCanSaveConfigurableAttributes(true); $configurableproduct_load->getTypeInstance()->setUsedProductAttributeIds(array(258,267,178), $configurableproduct_load); $configurableAttributesData = $configurableproduct_load->getTypeInstance()->getConfigurableAttributesAsArray($configurableproduct_load); $configurableproduct_load->setConfigurableAttributesData($configurableAttributesData); $configurableproduct_load->setAssociatedProductIds($associatedProductIds); $configurableproduct_load->save(); where 258, 267, 178 are the attributes id in the sort that I want. However, Magento create […]
Daily Archives: June 4, 2023
Response validation: Before accessing the items[0] property of the response object, it is important to check if the items array is empty to avoid errors. /** * @throws Exception */ private function getContact(ORNInterface $orn, $returnId=false) { try { $requestData = json_decode($orn->getRequest()); $queryUrl = "select id from contacts where contacts.emails.address='" . […]
Magento 2 – Checkout. Remove “New Address” Button from checkout billing/shipping address with module for B2B customers
I am getting the below error: main.CRITICAL: TypeError: str_replace(): Argument #3 ($subject) must be of type array|string, null given In the following code: public function beforeSendResponse(Http $subject) { if ($this->ampService->isAmp()) { return; } $store = $this->storeManager->getStore(); if (!$this->configProvider->getGeneralIsEnable($store) && !$this->configProvider->getIsPixelEnabled($store)) { return; } $content = $subject->getContent(); if ($this->configProvider->getGeneralIsEnable($store)) { $regularCode […]
I am using plugin <type name="MagentoCustomerModelAccountManagement"> <plugin name="custom_change_reset_password_link_token" type="VendorMobileAppPluginAccountManagementPlugin" sortOrder="10" disabled="false"/> </type> and using Around on method aroundChangeResetPasswordLinkToken but problem is it is working on APIs but when I try to access the reset link on web it always gives me error Your password reset link has expired. Here is […]
I have a .reg file with current user values. If I use reg.exe in a bat file to import it says “ERROR: Error accessing the registry.”. If I use regedit.exe there are no issues. For regedit.exe I use: regedit filename For reg.exe I use: reg import filename For regedit I […]
I have to upgrade the RAM of an old PC, for the same price and frequency (1600) do I get the best performance with 4 x 4GB CL11 modules in quad channel or 2 x 8GB CL9 modules in dual channel? Thank you.
I recently moved my sites from digitalocean to vpsdime. So I had to point to a different dns server. But for some reason Brave/Chrome/Edge don’t want to update the dns. Everything works just fine in Firefox and Opera. When I do a dns lookup at https://mxtoolbox.com/DNSLookup.aspx I get the correct […]
I’ve been fiddling around with my Pavilion dv6748us recently, and one of the times I disassembled it, I seem to have done something to the LAN circuitry, because now I get a message that says: [ 2.059606] forcedeth 0000:00:0a.0: Invalid MAC address detected: 00:00:00:00:00:00 - Please complain to your hardware […]