Unfortunately, so far I am a complete beginner in creating a module in magento. I need to send an email after adding the item to the cart. As I understand it, I need to use the checkout_cart_product_add_after event I created some files, but I don’t understand how to send an […]
Daily Archives: August 9, 2021
Error: Call to undefined method MagentoSalesApiDataOrderItemExtension::setGuid() di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <type name="MagentoSalesApiOrderItemRepositoryInterface"> <plugin name="guid_extension_attribute" type="ConvertGUIDPluginOrderItemRepositoryPlugin" /> </type> </config> extension_attributes.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Api/etc/extension_attributes.xsd"> <extension_attributes for="MagentoSalesApiDataOrderInterface"> <attribute code="guid" type="string"/> </extension_attributes> </config> OrderItemRepositoryPlugin.php <?php namespace ConvertGUIDPlugin; use MagentoSalesApiDataOrderItemExtensionFactory; use MagentoSalesApiDataOrderItemExtensionInterface; use MagentoSalesApiDataOrderItemInterface; use MagentoSalesApiDataOrderItemSearchResultInterface; use MagentoSalesApiOrderItemRepositoryInterface; /** * Class […]
I wanted to thank and congratulate the creator of this amazing module and ask him for more detail about the installation. In fact I am not a confirmed developer and I am having trouble installing the module. Can you help me please? thanks in advance Jeans
When using the customer_account_create event, the session model in my class is not able to return the customer ID using $this->customerSession->getId();. However, for testing purposes, when using the customer_account_edited observer event, the session is returning the correct ID of the customer. I am guessing that the session is not fully […]
On the configuration page, I define the product id, now I need to call the url: http://localhost: 3000/custompoint/secret/addprizeproduct in the browser and add this product to the cart – this is necessary so that if a prize product is defined on the site, the user can click on the link […]
I write a lot of org-mode notes in several files in a git repo. I want to be able to use git log -p to support two types of queries: See what I wrote on a given date, or a given range of dates. Find when I wrote a given […]
In macOS, using command+right/left will go to the beginning or end of the current line of text. This was extremely useful when typing or coding in general, but in Windows, Alt+Left/Right has totally different behavior depending on the app. Is there any way to globally change this to only be […]
I have my OpenVPN connection fully configured and working with a US based dedicated IP. I am testing to ensure I don’t have any leaks but finding that my timezone on my router is still being set to my actual timezone, rather than my the timezone where the VPN connection […]
At my job, I work with an Excel spreadsheet that has a few columns with customer information, most importantly their state, and then another 10+ columns representing each warehouse we have, with the current available inventory of the product the customer is trying to purchase. There is one column between […]