I want to call my custom phtml file in virtual product's view page. That file will call within form of that page so my data are post on add to cart.
I already develop a code for this purpose and working fine on add to cart page.But when I am on update cart page of this product that time file is not calling.
Please have a look :
namespace/mymodule/view/frontend/layout/catalog_product_view_type_virtual.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="Namespace\Modulename\Block\Product\View\Type\Virtual" template="Namespace_Modulename::product/view/type/virtual.phtml"/>
</referenceContainer>
</body>
</page>
product/view/type/default.phtml
?