skip to Main Content

How to pass an array in Magento 2 custom rest api?

Magento 2 custom rest api,I can not get an array in modalrepository, How can i pass an array as parameter ? Webapi.xml <route method="POST" url="/V1/topmarkens/productlists"> <service class="MeridianTopMarkenApiTopMarkenRepositoryInterface" method="productFilterByBrand"/> <resources> <resource ref="anonymous"/> </resources> <data> <parameter name="types" force="true">%types%</parameter> </data> </route> TopMarkenRepositoryInterface.php /**…

VIEW QUESTION

Override js file in the Magento2 checkout

I try to override a js file in the magento2 checkout. I want to override /vendor/magento/module-checkout/view/frontend/web/js/view/form/element/email.js. So I copied the file in my module to: /app/code/Myself/Test/view/frontend/web/js/view/form/element/email.js I did a small change in /app/code/Myself/Test/view/frontend/web/js/view/form/element/email.js: /** * Callback on changing email property…

VIEW QUESTION

Overwriting core block using plugin method – Magento

I have created a module in which i am overwriting core functionality of product listing widget. I can achieve this using preference but i want to understand plugin method.. Below is my code for frontend/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">…

VIEW QUESTION
Back To Top
Search