Hot answers tagged

6

The answer from @Rafael CorrĂȘa Gomes (and any to the point that mentions either 'cron_run' => false or 'consumers' => ['async.operations.all'] in the configuration are quite outrageous because they make many folks copy-paste and destroy their message queues from functioning. cron_run set to false in configuration means that the message consumers are ...


4

Edit the /app/etc/env.php file to configure the cron job consumers_runner. <?php return [ // ... 'cron_consumers_runner' => [ 'cron_run' => true, 'max_messages' => 20000, 'consumers' => [ 'async.operations.all', ] ], ]; // return closing To get the list of all your queue consumers that ...


4

Try with below code. type StoreHolidayInfo { dates: holidayDates, days: String, details: [holidayDetails] } type holidayDates { repetitive: [String] @doc(description: "holiday id"), normal: [String] @doc(description: "holiday id"), shipping_off_day: [String] @doc(description: "holiday id") } type holidayDetails { holiday_id: ...


3

Problem Summary: You have a PHP Array and you want to return it as a JSON Object. When you return your PHP Array, it gets converted to a JSON Array, which does not support non-sequential keys. So your keys get ignored and you end up with a sequential array of your values. Solution Summary: You need to return a PHP Object in order to have a JSON Object in ...


2

i'm not sure but just try out you will get idea type StoreHolidayInfo { dates: [holidayDates] days: String details: [holidayDetails] } type holidayDates { repetitive: [repetitive_list] normal: Int shipping_off_day: Int } type repetitive_list{ repetitive_list:int } i just gave for one element just try then change to all ...


2

The documentation should not say "in the Admin" instead it should say when the product is saved. If you save via API then it is being saved and indexing occurs "on save". The alternative, on schedule, will use triggers to place the changed data in a queue and then update indexing via a cron. Either way if a product is saved the index should be updated - ...


2

Please, check that interceptor class on your server: ls -la generated/code/Magento/Webapi/Model/Cache/Type/Webapi/Interceptor.php (from Magento root dir.) In case it has a wrong permissions change it according your needs (usually make it accessible by web-server user is enough). Another case that interceptor class used somewhere in your code directly (or ...


2

There is no payment API specific to paypal, you can set the payment using the the generic payment API and pass the neccessary parameters in it. You'll need to set the payment using (POST) /V1/carts/mine/set-payment-information and (POST) /V1/carts/mine/payment-information endpoint and retrieve it using (GET) /V1/carts/mine/payment-information. Check out ...


1

Can you be more specific please? How do you plan to verify the shipping address? As far as i know magento does not do this out-of-the-box


1

It seems like your track array field format is wrong. Please try this below : { "entity":{ "order_id":70, "items":[ { "order_item_id":94, "qty":1 } ], "tracks":[ { "carrier_code":"UPS", "order_id":70, "title":"ground", "...


1

In addition to the accepted answer: the reason why merging your custom xml config over the existing one does not produce the desired effect is because ref is the idAttributefor <resource> nodes, and so what the xml merger does is append the new node to the list of <resources>


1

I know this question is quite old, but there is one quite simple solution for this: You either need to replace the Json-Renderer Magento\Framework\Webapi\Rest\Response\Renderer\Json or you write a Plugin for it. Here a little example of a plugin: In your di.xml <type name="Magento\Framework\Webapi\Rest\Response\Renderer\Json"> <plugin name="...


Only top voted, non community-wiki answers of a minimum length are eligible