I am trying to save product attributes in my Magento2 system and there may be 100 thousands of attributes. However, I see that the value specified as auto increment in the eav_attribute table is defined as smallint. In this case, I get an error when I reach the value 65535 […]
Magento
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 […]
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 […]
:[3r: 2[3r: 2[3r :[3 erg] et /er /er] g e[ erg[ er ]erg :er]g /er[g er]r[254 w]e [y6:7[i:87[i7 []/]s/g]fd gfd[ gse[r re rse tert/ e////////////////////////////////////////////////////////////////////////////////////////////// re.t .er.t .ert. e.rt .er.t e.rt e t e.rt e.r t.et .et .erte.te.t433.534 .3 This is that is . This is that is.This is that […]
Ban me now. Kill me now. Destroy me now. Nuke me now. I deserve to die painfully. I deserve to have no happiness. 828 million people starving. I’m one of them. I have no friends, money, income, skills, or talents.