Yearly Archives: 2020
I’m using this plugin public function afterAddProduct($subject, $productInfo, $requestInfo = null) I’m trying to get the product Id of the product in this way: $productId = $subject->getId(); $productId = $productInfot->getId(); none of this works, i’m getting nothing, when I print with echo I get this: Product ID: I’m struggling a […]
I tried to migrate producs from magento 1.9.3 to magento 2.3, everything is okay until I check the configurable product. Then I found associated product on the configurable product is null but the simple product is already migrated like this below screenshot: So how I can migrated the links of […]
TL;DR How can I make a Module’s classes (e.g. Blocks, Helpers) reference different CollectionFactories based on which child Module calls it. Without hardcoding these into the parent. (parent module doesn’t know about children) The information has to be injected to the parent from outside. For more context This is the […]
I’m getting the values and labels for an specific attribute_code. query{ customAttributeMetadata( attributes: { attribute_code: "armazenamento" entity_type: "4" } ) { items { attribute_options{ label value } } } } result: "customAttributeMetadata": { "items": [ { "attribute_options": [ { "label": "16 TB", "value": "6380" }, { "label": "14 TB", "value": […]
Documentation at https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/tools/using_grunt.html states to install grunt using the -g (global) command, which requires elevated privileges. Unfortunately many shared hosting systems out there exist which cannot allow installing binaries globally. It appears that this may be required if you want to use grunt – and thus be able to output […]