The Stack Overflow podcast is back! Listen to an interview with our new CEO.

New answers tagged


Not sure, but the first thing I noticed in your code is that you write plugin for \Magento\Quote\Api\CartRepositoryInterface but should be for \Magento\Quote\Api\GuestCartTotalRepositoryInterface Upd #1: The following works for me: extension_attributes.xml <?xml version="1.0"?> <config xmlns:xsi="" xsi:...


For any reason if you need to fetch order collection, a search criteria has to be amended to the URL. If you need to fetch all the orders, please use empty search criteria. Example : http://magento213/index.php/rest/V1/orders?searchCriteria Swagger contains more details. Please explore


You need to create "Around" Plugin in your custom extension. app/code/MageKnight/Quote/etc/module.xml <config xmlns:xsi="" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd"> <module name="MageKnight_Quote"> <sequence> <module name="Magento_Quote"/...


i got the answer, you should have to use below code to update customer custom attribute $customAttributeValues=array("attributeCode" => "mobilenumber", "value" => "918985552230"); $customerData = [ 'customer' => [ 'id' => 5, "email" => "", "firstname" => "Magecomp", "lastname" => "...

0 OR Use the below steps: Method - PUT {URL}/rest/V1/guest-carts/{guest-card-id} Param - { "customerId": 3, "storeId": 1 } Authorization -"Bearer {user-token}" It will assign the guest cart to a logged-in user OR Please follow this: OR According magento,...


Create your own REST API endpoint and get there shipping methods. Get active shipping methods and other info you need and thats all.


I got the answer myself: Its working fine with below Api: Body: { "entity":{ "store_id":1, "items":[{"orderItemId":19,"qty":1}] }, "tracks": [ { "track_number": "1Y-9876543210", "title": "Custom", "carrier_code": "SomeCarrierCode" } ] }


As Magento DevDocs said you can not edit this setting. You have one Option Also Step 1: Set the value as non trace able value for ex: 7856467. Step 2: Search this value directly in DB, then edit and Save this value as 0.5 Here code is set according to hours, so if you want to set it for 15mins then, you need to calculate with formula n/60 = value for ...


You can get the information of the file exploding the "option_value", first element: File extension second element: File Name third: Download link (prepend: base_url + "media/") eg: File extension: png File name: abu.png Download link: /media/custom_options/quote/a/b/2f25a9e4bb5afd53ad4e097c024289b6.png


Summary of the proposed solutions. 1) From @sathish answer - I've created my own REST API. You can check the following commit or simply use extension. 2) From @renga comment, it is possible to get Magento version from So I used the following code to get the Magento version in my React Native app. const getMagentoVersion = ...


By default Magento there is no API endpoints to get the version. Based on your needs, you can create new API class then inject ProductMetadataInterface or inject ProductMetadataInterface in existing class wherever needs. public function __construct( \Magento\Framework\App\ProductMetadataInterface $productMetadata ) { $this->productMetadata = $...

Top 50 recent answers are included