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

New answers tagged

0

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="http://www.w3.org/2001/XMLSchema-instance" xsi:...


0

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 http://devdocs.magento.com/swagger/


0

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


0

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" => "test@example.com", "firstname" => "Magecomp", "lastname" => "...


0

https://github.com/magento/magento2/issues/7542 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: https://magento.stackexchange.com/a/110117/81151 OR According magento,...


0

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


1

I got the answer myself: Its working fine with below Api: http://127.0.0.1/magento225/rest/V1/order/order_id/ship Body: { "entity":{ "store_id":1, "items":[{"orderItemId":19,"qty":1}] }, "tracks": [ { "track_number": "1Y-9876543210", "title": "Custom", "carrier_code": "SomeCarrierCode" } ] }


0

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 ...


0

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


2

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 www.website.com/magento_version. So I used the following code to get the Magento version in my React Native app. const getMagentoVersion = ...


5

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