I'm trying to add an product tab which only functions as a link href predifined in a custom block. No tab content is needed.
I tried the following:
<referenceBlock name="product.info.details"> <block class="Customvendor\Custommodule\Block\Product\View\Customtab" name="product.tabs.custom" template="Customvendor_Custommodule::product/view/tab.phtml"/> </referenceBlock>
With which tab.phtml contains the clickable button html and the link which it gets from the customtab block.
However the only thing it outputs is a tab without a title/name, and the content of tab.phtml outputted in the content area below the tabs when you click on it.
If anyone could help me further with this it would be much appreciated!