I have created a custom API endpoint for adding products to a specific customers cart. When running it through postman I get this error: Invalid state change requested This is my code: declare(strict_types=1); namespace SulmanTransferBasketModel; use MagentoCatalogModelProductFactory; use MagentoCustomerModelSession; use MagentoQuoteApiCartManagementInterface; use MagentoQuoteApiCartRepositoryInterface; use MagentoStoreModelStoreManagerInterface; use MagentoCustomerModelCustomerFactory; use SulmanTransferBasketApiTransferBasketInterface; class […]
Magento2
I’m trying to create an invoice using the Magento REST API (/rest/default/V1/order/{orderId}/invoice) and I’m getting the following error: "message": ""%fieldName" is not supported. Correct the field name and try again.", "parameters": { "fieldName": "AdditionalData" } Here’s the payload I’m sending: { "appendComment": true, "items": [ { "order_item_id": 144, "qty": 1.000000, […]
i’m trying to change the column data type from int to decimal for this table – magento_reward (This table is exclusive for Enterprise edition) for the column called – points_balance , so this is how the below column structure in core file looks like (originally) – <column xsi:type="int" name="points_balance" unsigned="true" […]
Setting up Magento would have never been so easy as it is now with Easypanel. Let’s make a straight dive into it. Continue reading on Medium »
I need to create an admin user using an API, but I’m not sure about the correct process or how to. My Questions: What API endpoint and parameters should be used to create an admin user? How do I assign admin roles/permissions during user creation? Are there any security best […]
Multi-vendor marketplaces will shape the future of eCommerce. In short, businesses can take it as a golden opportunity to bring customers… Continue reading on Medium »
I have created a custom entity type Product Inventory and added it to System → Data Transfer → Export. However, when I attempt to export the data, the CSV file only contains the header row, and no actual data is exported. I need the following fields in the exported CSV: […]
I am working with the Minimog theme on our Magento 2.4 site and have encountered an issue with the sub-category slider on the top of category pages. This feature, which should display and allow scrolling through sub-categories, seems to be inactive. Issue Description: After inspecting the frontend, I noticed that […]
Field that retrieves the data, but there is no label and the issue with width <field name="custom_category_footer_description"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <item name="class" xsi:type="string">MagentoCatalogUiComponentCategoryFormElementWysiwyg </item> <item name="formElement" xsi:type="string">wysiwyg</item> <item name="label" xsi:type="string" translate="true">Custom Category Footer Description</item> <item name="wysiwyg" xsi:type="boolean">true</item> <item name="dataScope" xsi:type="string">custom_category_footer_description</item> <item name="sortOrder" xsi:type="number">36</item> </item> </argument> <formElements> <wysiwyg […]