Have added custom attribute to order API with following info here: https://www.atwix.com/magento-2/adding-custom-attribute-to-api-response-in-magento-2/ It adds the "customer_feedback": "this is my feedback" fine to api. How to add an Json object array ? E.G: "my_custom_object": { "Key1": "value!", "Key2": "value2" } Thanks
Blog
I’ve created an extension , while visiting magento.com/rest/V1/wishlist/1/2 it throws error. here are my files – 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"> <preference for="YourCompanyWishlistWebServiceApiWishlistManagementInterface" type="YourCompanyWishlistWebServiceModelWishlistManagement" /> </config> webapi.xml <?xml version="1.0" ?> <routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd"> <route url="/V1/wishlist/:customerId" method="GET"> <service class="YourCompanyWishlistWebServiceApiWishlistManagementInterface" method="getWishlistForCustomer"/> <resources> <resource ref="anonymous" /> </resources> </route> <route url="/V1/wishlist/:customerId/:productId" method="POST"> […]
I’ve got two fast Apple machines on the same LAN (they are ethernet wired, plugged into the same switch, sitting next to each other). The router is a UniFi Dream Machine Pro. Access to the outside internet is very fast. But when copying a folder with a ton of files […]
I am using Windows 11 and when I try to login it says your pin is no longer available due to a change to the security settings on this device. Click to set up your PIN again. So I click Set up my PIN but nothing happens. So I can’t […]
I’m an avid user of Video Speed Controller plug-in for Firefox and that has spoiled me. Being able to skim through content online at 8x speed without any hindrance is a bliss (no pitch change, lag, or delay). Although I’m usually browsing at 2x-4x speed. When it comes to VLC […]
I want to do something that sounds to me pretty simple: I have a single cell which contains a percentage value. I want to somehow visualize the percentage in the cell: show a progress bar, change the color, something. All I could find is that you can do it when […]
I just follow few liks, like this one: Cloning a 4K panel to a 1080p monitor to fake a 4k monitor into a 1080p display REASON: I want to have the 1080p monitor as second monitor, but APPs are too BIG, interfaces takes most of screen Actually I have a […]
This guide will introduce you to the top tools for Node.js development to you can streamline your workflow and create high-performance apps. Continue reading 20+ Tools for Node.js Development in 2024 on SitePoint.
I am trying to simple change the logo shown on the admin login page. After creating the following files i have run magento setup:upgrade magento setup:static-content:deploy -f magento setup:di:compile magento cache:clean app/design/adminhtml/Myvendor/mycustomadmintheme/theme.xml <theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd"> <title>My custom admin theme</title> <parent>Magento/backend</parent> </theme> app/design/adminhtml/Myvendor/mycustomadmintheme/registration.php <?php MagentoFrameworkComponentComponentRegistrar::register( MagentoFrameworkComponentComponentRegistrar::THEME, 'adminhtml/Myvendor/mycustomadmintheme', __DIR__ ); app/design/adminhtml/Myvendor/mycustomadmintheme/Magento_Backend/layout/default.xml <page […]