skip to Main Content

Magento 2 : Add custom script just after head tag

i want to add custom script just after the start of head tag. like. <head> <script>console.log("I'm loaded!");</script> i tried to add code in default_head_blocks.xml <referenceContainer name="head.additional"> <block class="CustomModuleBlockSuccess" template="Custom_Module::success/head.phtml"/> </referenceContainer> => output : <script>console.log("I'm loaded!");</script> </head> this code are using…

VIEW QUESTION

Need parser in Java from XML(SOAP) to JSON – Magento

i'm looking for a parser or SOAP client in Java to convert XML(WSDL) from Magento SOAP v1 API to JSON Object. Magento SOAP v1 API returns a XML which looks like this: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:Magento" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://xml.apache.org/xml-soap" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">…

VIEW QUESTION
Back To Top
Search