I’ve been trying to get an offline payment option such as “Check / Money Order” or “Purchase Order” to put an order in the status of processing or completed. We are selling downloadable products and for a few of our customers we want them to be able to be invoiced […]
Magento2
I wrote a custom api for magento 2.3.1 When i call the endpoint that i was created i get the following error { "messages": { "error": [ { "code": 500, "message": "Server internal error. See details in report api/1560842508114" } ] } } Report detail: “Fatal Error: ‘Uncaught Error: Cannot […]
When I make a payment using both gift card and by redeeming points, both the payments go through but my gift card is charged the grand total instead of (grand total-rewards currency amount). On the cart calculations are done properly but this problem only arises after I press confirm order. […]
I’m struggling trying to ship an order just after the order is created. In the event sales_order_place_after I’m executing the following code: use MagentoSalesModelOrderShipmentTrackFactory; use MagentoSalesApiDataShipmentCommentCreationInterface; use MagentoSalesModelShipOrder; use MagentoSalesModelConvertOrder; use TransomPakkeLoggerLogger; use MagentoSalesApiDataOrderInterface; /** * Custom shipping model */ class CreateShipment { protected $trackingFactory; protected $commentInterface; protected $shipOrderService; protected […]
I found the following errors in the exception.log and debug.log files in /var/log folder: [2019-12-17 16:23:05] main.CRITICAL: The element "product.info.options" can't have a child because "product.info.options" already has a child with alias "default". {"exception":"[object] (Magento\Framework\Exception\LocalizedException(code: 0): The element "product.info.options" can't have a child because "product.info.options" already has a child with […]
How I should ‘Setup/update System/store Configuration values through setup script’? Trying with Setup/Patch/Data script using something like //app/code/Namespace/Module/Setup/Patch/Data/SetupConfigData.php namespace NamespaceModuleSetupPatchData; use MagentoFrameworkSetupModuleDataSetupInterface; use MagentoFrameworkSetupPatchDataPatchInterface; use MagentoFrameworkAppConfigMutableScopeConfigInterface; class SetupConfigData implements DataPatchInterface { const XML_PATH_STORE_NAME = 'general/store_information/name'; const XML_PATH_STORE_PHONE = 'general/store_information/phone'; const XML_PATH_ADMIN_ACCOUNT_SHARING = 'admin/security/admin_account_sharing'; const XML_PATH_ADMIN_URL_SECRET_KEY = 'admin/security/use_form_key'; const SCOPE_STORE = […]
I have found that the less files are not compiling in my custom theme. at all. originally I discovered the problem when I made changes to my _extend. less file and no changes occurred, but now I have found that none of the .less files in my app/…web/source/CSS folder are […]
With Magento’s new multi-source inventory system, various new tables have been introduced into the database. inventory_source_item contains the machine name of the source, SKU, quantity, and the status. inventory_stock_x is a table that exists for each source, containing the SKU, quantity, and if it’s salable. Why does the second table […]
In my layered navigation, I have items that are being sorted by quantity. For example the items with the most quantity are listed higher, and lower quantity are listed lower. What i am looking for Category A (2) B (32) C (1) what in currently getting is Category B (32) […]