HI I was reviewing the code. Does :void mean ignore this function in my override? example: private function clearIndexTable(): void When I do override, I copy the original file and modify. The original file has few functions, I only need to modify one of the function. So how do I […]
Magento2
I’m trying to modify the Source Selection algorithm based on the following condition: Sort by Sellable(available) Quantity (Descending) and then location sort priority I have tried many tutorials but it’s not working, I tried to override the following model MagentoInventorySourceSelectionModelAlgorithmsPriorityBasedAlgorithm but not work. Is there any way to override distance-based […]
I am trying to create a module that uploads Category image (as Category extension attribute) via REST API. The problem is that I can’t even fetch extension attributes in afterSave method of my Plugin with the lines of code below: $extensionAttributes = $category->getExtensionAttributes() ?: $this->categoryExtensionFactory->create(); Though, obviously, extension attribute is […]
There are multiple media folders missing in 2.4.3-p3 I have read this –> https://developer.adobe.com/commerce/php/tutorials/backend/modify-image-library-permissions/ Does anyone know exactly where to add/edit this file? Thank you
When trying to create an order from the admin panel, I get a page without menus/headers: I tried: php bin/magento cache:clean php bin/magento cache:flush php bin/magento setup:di:compile php bin/magento indexer:reindex php bin/magento setup:static-content:deploy -f that didn’t change anything, I also checked the logs, but didn’t find anything… Any help is […]
I am facing the following issue on elastic search. TOO_MANY_REQUESTS/12/disk usage exceeded flood-stage watermark, index has read-only-allow-delete block I tried “cluster.routing.allocation.disk.threshold_enabled” : false & “index.blocks.read_only_allow_delete”: null but still I get the same issue How to check free space available and the path of the elastic search storage? I tried df […]
I have a slider module which use EntityManager. I want to refactor code to use ResourceModel, but i have problem with many to many relations. With EntityManager i used EntityManagerOperationExtensionPool with Read/SaveHandlers. How to implement same functionality with ResourceModel?
I have a Magento 2.4.2 with 3 websites, 1 B2C and 2 B2B shops. I have setup the global customer setup to Share Customer Accounts -> Per Website But when I want to add an customer address the inputs is displaying Storeviews Where does this come from ?
When I disable MSI on Magento 2.4.5 I receive the following error when trying to open any product Cardinality violation: 1242 Subquery returns more than 1 row, query was: SELECT 1 AS `status`, `e`.`entity_id`, `e`.`attribute_set_id`, `e`.`type_id`, `e`.`created_at`, `e`.`updated_at`, `e`.`sku`, `e`.`name`, `e`.`short_description`, `e`.`price`, `e`.`special_price`, `e`.`special_from_date`, `e`.`special_to_date`, `e`.`image`, `e`.`small_image`, `e`.`thumbnail`, `e`.`news_from_date`, `e`.`news_to_date`, […]