0

I use Magento 2.3.2
Added into header.phtml

<div class="zalo-share-button" data-href="https://magento.com/" data-oaid="579745863508352884" data-layout="2" data-color="blue" data-customize=false></div>

And

<script src="https://sp.zalo.me/plugins/sdk.js"></script>

=> Not load js from sdk.js, and cannot create iframe.
It working in html
https://codepen.io/huuquyasb/pen/yLBvGbr
http://prntscr.com/p3oi2a

Hopefully somebody can help.
Thanks for reading this.

  • check console log – Devidas Sep 9 '19 at 12:36
  • I checked. It has nothing error or warning – Tom David Sep 10 '19 at 1:20
0

Try This :-

Create default.xml in Vendor/Moduleview/frontend/layout/default.xml

<?xml version="1.0"?>
<!--
/**
* Copyright © 2015 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <head>
        <script src="https://sp.zalo.me/plugins/sdk.js" src_type="url"/>
    </head>
</page>

Cretae iframe in html

<iframe src="https://sp.zalo.me/plugins/sdk.js" height="300" width="400">  </iframe>
| improve this answer | |
  • It not working. other solution ? – Tom David Sep 9 '19 at 9:38
  • check updated answer – Rk Rathod Sep 9 '19 at 10:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.