I have two(Product and ERP)databases that has some tables. One is for ERP and one is for Product. I am updating and saving data in both databases ERP and Product. In a particular time, i am syncing those database to middleware same schema. All goes well,But i want to show […]
Magento1
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 […]
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
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 […]
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 […]
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 […]
in magento in MagentoQuoteModelQuoteItemProcessor.php $candidate->getCartQty() is fetching wrong quantity for some products I searched the whole codebase for “getCartQty()” and I couldn’t find it ! it is supposed to be coming from “MagentoCatalogModel Product::getCartQty” but it is not there! Where is it?
I am confused between is_salable and is_in_stock field. in product listing page I print $product object by $product->getData() and when I print this data there is a field called is_salable I put somewhere condition for product isinstock or outof stock so can I check the product with like this condition […]