We need to get concrete error message when MagentoCatalogModelProductRepository throws CouldNotSaveException during saveProduct() private function saveProduct($product): void { try { $this->removeProductFromLocalCacheBySku($product->getSku()); $this->removeProductFromLocalCacheById($product->getId()); $this->resourceModel->save($product); } catch (ConnectionException $exception) { ... } catch (Exception $e) { throw new CouldNotSaveException( __('The product was unable to be saved. Please try again.'), $e ); } […]
Magento
is there a way that we can capture payment for an order but only invoice the order later? In our case, we sell in-person training and these events are sold many months in advance. We wish to capture payment at time of purchase however only invoice the order once the […]
I’ve uploaded some product images both with csv import and backend interface of magento 2.3 and I noticed that the file size on the frontend is 3x the size of the file I uploaded. For example, I uploaded a 1200x1200px image (with custom Huffman lossless compression) around 600Ko. After Magento […]
I have attribute that values are dynamically mapped from custom tables. So attribute don’t have values by it self. I’d like to get mapped values every time getValue() is called. But i don’t want affect core magento files with additional “if’s”. For admin panel i created backend_model for this attribute […]
Im developing a magento 2 site using WSL on windows 11. And for some reason my configuration page is not loading. Area in question is stores->configuration. Things i have tried: disabling all external modules and compiled setting correct permissions to all files setting correct ownership of files ran bin/magento setup:upgrade […]
Ever since I did a setup:upgrade I’ve been having some issues with the Admin not doing what it’s supposed to do, particularly on the Catalog > Categories section. As you can see, on the backend I’m not including it on the menu. But it still shows up regardless. I’m able […]
I am working on a requirement to add a custom parameter in the configurable product page URL. This will have the simple SKU to preselect the color in the swatches, something like this: https://site.test.com/product-page-url.html?v=simplesku The user requires this way because these URLs will be generated by the marketing team and […]
Magento 2.4.4 running on Xampp Windows 10. Luma Child Custom Theme Grunt not copying js files When i do a normal “deploy” from cli its fine. php bin/magento setup:static-content:deploy when i run grunt and visit the website i get 404 for couple of js files when i look at the […]
In Page Builder, I can add a Banner component and set its link to a category (or a product etc.). This does not set the banner image nor the (translateable) banner title to the respective attributes of the category (or product) I just selected. Is there a simple way to […]