add zipcode form on Product Detail Page

I am currently to add a new tab just above add to cart button that will check the pin-code option but i failed to achieve this here is my code:- catalog_product_view.xml <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/Layout/etc/page_configuration.xsd”> <body> <referenceContainer name=”product.info.main”> <block class=”Learn\Module\Block\Catalog\Product\View\CheckDelivery” name=”textblock” as=”textblock” after=”-” template=”catalog/product/view/zipcode.phtml” /> </referenceContainer> </body> </page> vendor/module/Block/product/view/CheckDelivery.php <?php namespace Learn\Module\Block\Product\View; use Magento\Framework\Registry; use Magento\Framework\View\Element\Template;…

After bundling custom JS for custom module in admin area not getting called

I have custom built JS for custom admin module. When in developer mode, it works fine. When, in production and after bundling js, it’s not getting called. obj.myFunction() is not function This is what I have in my template: <script> require([“Module_MyModule/create/form”], function(){ obj.myFunction() }); </script> And, Module_MyModule/create/form.js define([ ‘jquery’, ‘My_MyModule/create/scripts’ ], function (jQuery) { ‘use…